Documentation
¶
Index ¶
- type Config
- func (config *Config) Address() string
- func (config *Config) Build() *Server
- func (config *Config) WithHost(host string) *Config
- func (config *Config) WithName(name string) *Config
- func (config *Config) WithPort(port int) *Config
- func (config *Config) WithProxy(proxy *goproxy.ProxyHttpServer) *Config
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string
Port int
Name string
Network string
Proxy *goproxy.ProxyHttpServer
}
Config HTTP config
type Server ¶
Server ...
func (*Server) GracefulStop ¶
GracefulStop implements server.Server interface it will stop gin server gracefully
func (*Server) Info ¶
func (s *Server) Info() *server.ServiceInfo
Info returns server info, used by governor and consumer balancer
Click to show internal directories.
Click to hide internal directories.