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"`
}
ServiceInfo represents service info
func ApplyOptions ¶
func ApplyOptions(options ...Option) ServiceInfo
Click to show internal directories.
Click to hide internal directories.