MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / WithDialOptions

Function WithDialOptions

pkg/cluster/cluster.go:94–98  ·  view source on GitHub ↗

WithDialOptions sets the default dial options for connections to cluster peers.

(f func(ctx context.Context) []grpc.DialOption)

Source from the content-addressed store, hash-verified

92
93// WithDialOptions sets the default dial options for connections to cluster peers.
94func WithDialOptions(f func(ctx context.Context) []grpc.DialOption) Option {
95 return optionFunc(func(c *cluster) {
96 c.dialOptions = f
97 })
98}
99
100// WithServices registers the given services on the "self" peer.
101func WithServices(services ...interface{ Roles() []ttnpb.ClusterRole }) Option {

Callers 1

initClusterMethod · 0.92

Calls 1

optionFuncFuncType · 0.70

Tested by

no test coverage detected