Documentation ¶
Index ¶
- Variables
- func NewService(cfg Config, reqHandler io.IRequestHandler) (*Service, SuspendFunc)
- type ChildInfo
- type Config
- type ILimiter
- type ServerManager
- type Service
- func New(config Config, reqHandler io.IRequestHandler, listeners ...io.IListener) (service *Service)
- func NewWithLimiterAndListenFd(cfg Config, reqHandler io.IRequestHandler, limiter ILimiter, fds ...*os.File) (service *Service)
- func NewWithListenFd(cfg Config, reqHandler io.IRequestHandler, fds ...*os.File) (service *Service)
- type SuspendFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultListenerName = "default" DefaultConfig = Config{ ShutdownWaitTime: util.Duration{kDefaultShutdownWaitTime}, ThrottlingDelayTime: util.Duration{kDefaultThrottlingDelayTime}, IO: io.InboundConfigMap{ DefaultListenerName: io.DefaultInboundConfig, }, } )
Functions ¶
func NewService ¶
func NewService(cfg Config, reqHandler io.IRequestHandler) (*Service, SuspendFunc)
Types ¶
type Config ¶
type Config struct { Listener []io.ListenerConfig ShutdownWaitTime util.Duration ThrottlingDelayTime util.Duration IO io.InboundConfigMap }
func (*Config) GetIoConfig ¶
func (cfg *Config) GetIoConfig(lsnr *io.ListenerConfig) io.InboundConfig
func (*Config) IsSSLEnabled ¶
func (*Config) SetDefaultIfNotDefined ¶
func (cfg *Config) SetDefaultIfNotDefined()
func (*Config) SetListeners ¶
type ServerManager ¶
type ServerManager struct {
// contains filtered or unexported fields
}
func NewServerManager ¶
func (*ServerManager) Run ¶
func (s *ServerManager) Run()
type Service ¶
type Service struct { Zoneid int // contains filtered or unexported fields }
func NewWithListenFd ¶
func (*Service) GetListeners ¶
type SuspendFunc ¶
type SuspendFunc func(b bool)
Click to show internal directories.
Click to hide internal directories.