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

Function WithAPIVersion

client.go:101–105  ·  view source on GitHub ↗

WithAPIVersion sets the version for a given Client.

(version string)

Source from the content-addressed store, hash-verified

99
100// WithAPIVersion sets the version for a given Client.
101func WithAPIVersion(version string) ClientOption {
102 return func(c *Client) {
103 c.version = version
104 }
105}
106
107// WithHTTPRequester sets the HTTP requester for a given client, used mostly for testing.
108func WithHTTPRequester(requester Requester) ClientOption {

Callers 2

TestConfigFunction · 0.85
NewFromEnvFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestConfigFunction · 0.68