Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialGrpcService ¶
func DialGrpcService(ctx context.Context, opt *GrpcDialOptions) (*grpc.ClientConn, error)
DialGrpcService dials to a grpc service
Types ¶
type DbOptions ¶
type DbOptions struct { Name string Dialect string Address string User string Password string Schema string ConnPool *DbPoolSettings }
DbOptions contains parameters for connecting to a SQL database
type DbPoolSettings ¶
type DbPoolSettings struct { MaxIdleConns uint MaxOpenConns uint MaxLifetime time.Duration MaxIdleLifetime time.Duration }
DbPoolSettings contains options for customizing the connection pool
type GrpcDialOptions ¶
type GrpcDialOptions struct { ServiceName string Address string DialOptions []grpc.DialOption K8Service bool }
GrpcDialOptions contains options for dialing a grpc service
Click to show internal directories.
Click to hide internal directories.