Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResolver ¶
func NewResolver(client HealthAPI, service string, opts ...ResolverOption) naming.Resolver
Types ¶
type ResolverOption ¶
type ResolverOption func(*resolverOptions)
func WithDebug ¶
func WithDebug(debugf func(format string, args ...interface{})) ResolverOption
func WithLogger ¶
func WithLogger(logf func(format string, args ...interface{})) ResolverOption
type ServiceOption ¶
type ServiceOption func(*serviceOptions)
func WithHealthCheckFunc ¶
func WithHealthCheckFunc(fn func() error) ServiceOption
func WithHealthCheckInterval ¶
func WithHealthCheckInterval(interval time.Duration) ServiceOption
Click to show internal directories.
Click to hide internal directories.