Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface { Serve() error Stop() error GracefulStop(ctx context.Context) error Info() *ServiceInfo }
Server ...
type ServiceInfo ¶
type ServiceInfo struct { Name string `json:"name"` Scheme string `json:"scheme"` Address string `json:"address"` Group string `json:"group"` // Group 流量组: 流量在Group之间进行负载均衡 }
ServiceInfo represents service info
func ApplyOptions ¶
func ApplyOptions(options ...Option) ServiceInfo
Click to show internal directories.
Click to hide internal directories.