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

Function WithTLSConfig

pkg/cluster/cluster.go:112–116  ·  view source on GitHub ↗

WithTLSConfig sets the TLS config to use in cluster connections.

(tlsConfig *tls.Config)

Source from the content-addressed store, hash-verified

110
111// WithTLSConfig sets the TLS config to use in cluster connections.
112func WithTLSConfig(tlsConfig *tls.Config) Option {
113 return optionFunc(func(c *cluster) {
114 c.tlsConfig = tlsConfig
115 })
116}
117
118// CustomNew allows you to replace the clustering implementation. New will call CustomNew if not nil.
119var CustomNew func(ctx context.Context, config *Config, options ...Option) (Cluster, error)

Callers 2

initClusterMethod · 0.92

Calls 1

optionFuncFuncType · 0.70

Tested by

no test coverage detected