Documentation ¶
Index ¶
- Variables
- func BuildGRPCServerOptions(ctx context.Context, config *GRPCServerConfig) []grpc.ServerOption
- func DebugLoggingInterceptor() grpc.UnaryServerInterceptor
- func GetMaxConnectionIdle() time.Duration
- func NewServer(ctx context.Context, grpcConfig *GRPCServerConfig) (*grpc.Server, error)
- func SetCerds(ctx context.Context, creds credentials.TransportCredentials) context.Context
- func SetGrpcAuth(ctx context.Context, auth GRPCServerAuth) context.Context
- func SetMaxConnectionIdle(idle time.Duration)
- func SetSelfSignedCerds(ctx context.Context) context.Context
- type GRPCServerAuth
- type GRPCServerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var EnableAccessLog bool = false
Functions ¶
func BuildGRPCServerOptions ¶
func BuildGRPCServerOptions(ctx context.Context, config *GRPCServerConfig) []grpc.ServerOption
func DebugLoggingInterceptor ¶
func DebugLoggingInterceptor() grpc.UnaryServerInterceptor
func GetMaxConnectionIdle ¶
func SetCerds ¶
func SetCerds(ctx context.Context, creds credentials.TransportCredentials) context.Context
func SetGrpcAuth ¶
func SetGrpcAuth(ctx context.Context, auth GRPCServerAuth) context.Context
func SetMaxConnectionIdle ¶
Types ¶
type GRPCServerAuth ¶
type GRPCServerConfig ¶
type GRPCServerConfig struct { MaxMsgSize int `mapstructure:"max_msg_size,omitempty" json:"max_msg_size,omitempty"` MaxConcurrentStreams uint32 `mapstructure:"max_concurrent_streams,omitempty" json:"max_concurrent_streams,omitempty"` }
Config grpcboot config
Click to show internal directories.
Click to hide internal directories.