Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpointer ¶
Endpointer is registry endpoint.
type Option ¶ added in v1.2.1
type Option func(si *ServiceInfo)
func WithAddress ¶ added in v1.2.1
Address with ServiceInfo address.
func WithScheme ¶ added in v1.2.1
Scheme with ServiceInfo scheme.
type Server ¶
type Server interface { Start(context.Context) error Stop() error GracefullyStop(context.Context) error }
Server ...
type ServiceInfo ¶ added in v1.2.1
type ServiceInfo struct { Name string `json:"name"` Scheme string `json:"scheme"` Address string `json:"address"` }
ServiceInfo represents service info
func ApplyOptions ¶ added in v1.2.1
func ApplyOptions(opts ...Option) ServiceInfo
Click to show internal directories.
Click to hide internal directories.