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, unaryInterceptors []grpc.UnaryServerInterceptor, ...) *grpc.Server
- type Adapter
- 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) *grpc.ClientConn
NewConnection provides new grpc connection
func NewServer ¶
func NewServer(cfg ServerConfig, unaryInterceptors []grpc.UnaryServerInterceptor, streamInterceptors []grpc.StreamServerInterceptor) *grpc.Server
NewServer provides new grpc server
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter is grpc server app adapter
func NewAdapter ¶
NewAdapter provides new primary adapter
type ConnectionConfig ¶
ConnectionConfig provides values for gRPC connection configuration
Click to show internal directories.
Click to hide internal directories.