MCPcopy Create free account
hub / github.com/diillson/chatcli / SetBinding

Method SetBinding

cli/hub_sync_test.go:80–85  ·  view source on GitHub ↗
(_ context.Context, platform, userID, principal string)

Source from the content-addressed store, hash-verified

78}
79
80func (f *fakeHubClient) SetBinding(_ context.Context, platform, userID, principal string) error {
81 f.mu.Lock()
82 defer f.mu.Unlock()
83 f.bindings = append(f.bindings, models.HubBinding{Platform: platform, UserID: userID, Principal: principal})
84 return nil
85}
86
87func (f *fakeHubClient) ListBindings(_ context.Context, _ string) ([]models.HubBinding, error) {
88 f.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected