Documentation ¶
Index ¶
- func HealthShutdown()
- func NewStreamLogger(logger *zap.Logger) grpc.StreamServerInterceptor
- func NewStreamPrometheus() grpc.StreamServerInterceptor
- func NewUnaryLogger(logger *zap.Logger) grpc.UnaryServerInterceptor
- func NewUnaryPrometheus() grpc.UnaryServerInterceptor
- func SetHealthStatus(serviceName string, status grpc_health_v1.HealthCheckResponse_ServingStatus)
- type EmptyGrpcService
- type FuncGrpcService
- type GrpcService
- type Healthz
- type Logger
- type Prometheus
- type Reflect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthShutdown ¶
func HealthShutdown()
func NewStreamLogger ¶
func NewStreamLogger(logger *zap.Logger) grpc.StreamServerInterceptor
func NewStreamPrometheus ¶
func NewStreamPrometheus() grpc.StreamServerInterceptor
func NewUnaryLogger ¶
func NewUnaryLogger(logger *zap.Logger) grpc.UnaryServerInterceptor
func NewUnaryPrometheus ¶
func NewUnaryPrometheus() grpc.UnaryServerInterceptor
func SetHealthStatus ¶
func SetHealthStatus(serviceName string, status grpc_health_v1.HealthCheckResponse_ServingStatus)
Types ¶
type EmptyGrpcService ¶
type EmptyGrpcService struct{}
EmptyServerOption does not alter the server configuration. It can be embedded in another structure to build custom server options.
func (EmptyGrpcService) RegisterService ¶
func (EmptyGrpcService) RegisterService(*grpc.Server)
type FuncGrpcService ¶
FuncServerOption wraps a function that modifies serverOptions into an implementation of the ServerOption interface.
func NewFuncGrpcService ¶
func NewFuncGrpcService(f func(*grpc.Server)) FuncGrpcService
func (FuncGrpcService) RegisterService ¶
func (f FuncGrpcService) RegisterService(s *grpc.Server)
type GrpcService ¶
A ServerOption sets options such as credentials, codec and keepalive parameters, etc.
type Logger ¶
type Logger struct {
FuncGrpcService
}
type Prometheus ¶
type Prometheus struct {
FuncGrpcService
}
func NewPrometheus ¶
func NewPrometheus() *Prometheus
type Reflect ¶
type Reflect struct {
FuncGrpcService
}
func NewReflection ¶
func NewReflection() *Reflect
Click to show internal directories.
Click to hide internal directories.