Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Port int `json:"port" yaml:"Port"`
GinMode string `json:"ginMode" yaml:"GinMode"`
ReadTimeout time.Duration `json:"readTimeout" yaml:"ReadTimeout"`
WriteTimeout time.Duration `json:"writeTimeout" yaml:"WriteTimeout"`
IdleTimeout time.Duration `json:"idleTimeout" yaml:"IdleTimeout"`
MaxHeaderBytes int `json:"maxHeaderBytes" yaml:"MaxHeaderBytes"`
EnableCORS bool `json:"enableCors" yaml:"EnableCors"`
Debug debug.Config `json:"debug" yaml:"Debug"`
}
GlobalConfig represents global gateway settings
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶
func NewHTTPServer(cfg *Config, service *service.Service, env string) *HTTPServer
func (*HTTPServer) Name ¶
func (a *HTTPServer) Name() string
func (*HTTPServer) Shutdown ¶
func (a *HTTPServer) Shutdown(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.