Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GRPCOptionFuncs []GRPCOptionFunc
GRPCOptionFuncs is a combination of multiple gRPC dial option.
Functions ¶
func Init ¶
Init initializes common connection options. It MUST be called prior to any other package functions.
func WithBasicAuth ¶ added in v0.12.0
func WithBasicAuth(username, password string) grpc.DialOption
WithBasicAuth configures basic authentication credentials for the connection.
Types ¶
type GRPCOptionFunc ¶
type GRPCOptionFunc func(vp *viper.Viper) (grpc.DialOption, error)
GRPCOptionFunc is a function that configures a gRPC dial option.
Click to show internal directories.
Click to hide internal directories.