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

Function WithAPIRegion

client.go:94–98  ·  view source on GitHub ↗

WithAPIRegion sets the region for a given Client.

(region string)

Source from the content-addressed store, hash-verified

92
93// WithAPIRegion sets the region for a given Client.
94func WithAPIRegion(region string) ClientOption {
95 return func(c *Client) {
96 c.region = region
97 }
98}
99
100// WithAPIVersion sets the version for a given Client.
101func WithAPIVersion(version string) ClientOption {

Callers 2

TestConfigFunction · 0.85
NewFromEnvFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestConfigFunction · 0.68