Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GrpcAddr *Address GrpcInternalAddr *Address GatewayAddr *Address Servers []api.Server GrpcServerUnaryInterceptors []grpc.UnaryServerInterceptor GrpcServerStreamInterceptors []grpc.StreamServerInterceptor GatewayServerUnaryInterceptors []grpc.UnaryClientInterceptor GatewayServerStreamInterceptors []grpc.StreamClientInterceptor GrpcServerOption []grpc.ServerOption GatewayDialOption []grpc.DialOption GatewayMuxOptions []runtime.ServeMuxOption GatewayServerConfig *HTTPServerConfig MaxConcurrentStreams uint32 GatewayServerMiddlewares []middleware.HTTPServerMiddleware }
Config contains configurations of gRPC and Gateway server.
func CreateDefaultConfig ¶
func CreateDefaultConfig() *Config
func (*Config) ClientOptions ¶
func (c *Config) ClientOptions() []grpc.DialOption
func (*Config) ServerOptions ¶
func (c *Config) ServerOptions() []grpc.ServerOption
type HTTPServerConfig ¶
type HTTPServerConfig struct { TLSConfig *tls.Config ReadTimeout time.Duration ReadHeaderTimeout time.Duration WriteTimeout time.Duration IdleTimeout time.Duration MaxHeaderBytes int TLSNextProto map[string]func(*http.Server, *tls.Conn, http.Handler) ConnState func(net.Conn, http.ConnState) }
func (*HTTPServerConfig) ApplyTo ¶
func (c *HTTPServerConfig) ApplyTo(s *http.Server)
Click to show internal directories.
Click to hide internal directories.