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

Method feedID

authenticator.go:51–56  ·  view source on GitHub ↗
(feed Feed)

Source from the content-addressed store, hash-verified

49}
50
51func (a authenticator) feedID(feed Feed) string {
52 if feed == nil {
53 return "*"
54 }
55 return fmt.Sprintf("%s%s", feed.Slug(), feed.UserID())
56}
57
58func (a authenticator) feedAuth(resource resource, feed Feed) authFunc {
59 return func(req *http.Request) error {

Callers 2

feedAuthMethod · 0.95
RealtimeTokenMethod · 0.80

Calls 2

SlugMethod · 0.65
UserIDMethod · 0.65

Tested by

no test coverage detected