Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "proto"
Name is the name registered for the proto compressor.
Variables ¶
This section is empty.
Functions ¶
func DefaultCodeToLevelGRPC ¶
func DefaultCodeToLevelGRPC(c codes.Code) grpc_logging.Level
DefaultCodeToLevelGRPC is the helper mapper that maps gRPC Response codes to log levels.
func InterceptorLogger ¶ added in v0.18.0
func InterceptorLogger(l log.Logger) grpc_logging.Logger
InterceptorLogger adapts go-kit logger to interceptor logger.
Types ¶
type Registerable ¶
type RegisterableFunc ¶
type Server ¶
Server is a wrapper around the http.Server.
func (*Server) ListenAndServe ¶
func (s *Server) ListenAndServe( ctx context.Context, logger log.Logger, uiFS fs.FS, addr string, readTimeout time.Duration, writeTimeout time.Duration, allowedCORSOrigins []string, pathPrefix string, registerables ...Registerable, ) error
ListenAndServe starts the http grpc gateway server.
Click to show internal directories.
Click to hide internal directories.