MCPcopy Create free account
hub / github.com/GetStream/stream-go2 / CreateReference

Method CreateReference

users.go:58–60  ·  view source on GitHub ↗

CreateReference returns a new reference string in the form SU: .

(id string)

Source from the content-addressed store, hash-verified

56
57// CreateReference returns a new reference string in the form SU:<id>.
58func (c *UsersClient) CreateReference(id string) string {
59 return fmt.Sprintf("SU:%s", id)
60}
61
62// CreateUserReference is a convenience helper not to require a client.
63var CreateUserReference = (&UsersClient{}).CreateReference

Callers 2

TestCollectionRefHelpersFunction · 0.45
TestUserRefHelpersFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestCollectionRefHelpersFunction · 0.36
TestUserRefHelpersFunction · 0.36