WithDialOptions sets the default dial options for connections to cluster peers.
(f func(ctx context.Context) []grpc.DialOption)
| 92 | |
| 93 | // WithDialOptions sets the default dial options for connections to cluster peers. |
| 94 | func 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. |
| 101 | func WithServices(services ...interface{ Roles() []ttnpb.ClusterRole }) Option { |
no test coverage detected