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

Function WithConn

pkg/cluster/cluster.go:87–91  ·  view source on GitHub ↗

WithConn bypasses the standard mechanism for connecting to the "self" peer.

(conn *grpc.ClientConn)

Source from the content-addressed store, hash-verified

85
86// WithConn bypasses the standard mechanism for connecting to the "self" peer.
87func WithConn(conn *grpc.ClientConn) Option {
88 return optionFunc(func(c *cluster) {
89 c.self.conn = conn
90 })
91}
92
93// WithDialOptions sets the default dial options for connections to cluster peers.
94func WithDialOptions(f func(ctx context.Context) []grpc.DialOption) Option {

Callers 1

initClusterMethod · 0.92

Calls 1

optionFuncFuncType · 0.70

Tested by

no test coverage detected