Documentation ¶
Index ¶
- type Config
- func (s *Config) GRPCServerOption(opt ...grpc.ServerOption)
- func (s *Config) GatewayMuxOption(opt ...gwrt.ServeMuxOption)
- func (c Config) New() (*Server, error)
- func (s *Config) SetCORSRegistry(reg cors.PatternRegistry)
- func (s *Config) SetGRPCRegistry(reg endpoints.GRPCRegistry)
- func (s *Config) SetProxyRegistry(reg endpoints.ProxyRegistry)
- func (s *Config) UseTLS() bool
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SecureAddr string PlaintextAddr string APIDomain string CACertFile string CertFile string KeyFile string EnableCORS bool CORSOriginHost string CORSAllowSubdomain bool // contains filtered or unexported fields }
func (*Config) GRPCServerOption ¶
func (s *Config) GRPCServerOption(opt ...grpc.ServerOption)
func (*Config) GatewayMuxOption ¶
func (s *Config) GatewayMuxOption(opt ...gwrt.ServeMuxOption)
func (*Config) SetCORSRegistry ¶
func (s *Config) SetCORSRegistry(reg cors.PatternRegistry)
func (*Config) SetGRPCRegistry ¶
func (s *Config) SetGRPCRegistry(reg endpoints.GRPCRegistry)
func (*Config) SetProxyRegistry ¶
func (s *Config) SetProxyRegistry(reg endpoints.ProxyRegistry)
Click to show internal directories.
Click to hide internal directories.