Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnBuilder ¶
type ConnBuilder struct { // GatewayHostPorts is list of host:port Clymene Gates. GatewayHostPorts []string `yaml:"gatewayHostPorts"` MaxRetry uint TLS tlscfg.Options DiscoveryMinPeers int Notifier discovery.Notifier Discoverer discovery.Discoverer }
ConnBuilder Struct to hold configurations
func NewConnBuilder ¶
func NewConnBuilder() ConnBuilder
NewConnBuilder creates a new grpc connection builder.
func (*ConnBuilder) CreateConnection ¶
func (b *ConnBuilder) CreateConnection(logger *zap.Logger) (*grpc.ClientConn, error)
CreateConnection creates the gRPC connection
func (*ConnBuilder) InitFromViper ¶
func (b *ConnBuilder) InitFromViper(v *viper.Viper) *ConnBuilder
InitFromViper initializes Options with properties retrieved from Viper.
Click to show internal directories.
Click to hide internal directories.