Documentation ¶
Index ¶
- func IsConnectionServing(ctx context.Context, service string, conn *grpc.ClientConn) bool
- func NewConnection(ctx context.Context, host string, port int, cfg ConnectionConfig, ...) *grpc.ClientConn
- func NewServer(cfg ServerConfig, logger *log.Logger, ...) *grpc.Server
- type ConnectionConfig
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsConnectionServing ¶
IsConnectionServing checks if GRPC connection status equals HealthCheckResponse_SERVING
func NewConnection ¶
func NewConnection(ctx context.Context, host string, port int, cfg ConnectionConfig, logger *log.Logger) *grpc.ClientConn
NewConnection provides new grpc connection
func NewServer ¶
func NewServer(cfg ServerConfig, logger *log.Logger, unaryInterceptors []grpc.UnaryServerInterceptor, streamInterceptors []grpc.StreamServerInterceptor) *grpc.Server
NewServer provides new grpc server
Types ¶
type ConnectionConfig ¶
ConnectionConfig provides values for gRPC connection configuration
Click to show internal directories.
Click to hide internal directories.