Documentation ¶
Overview ¶
Package discoverer
Package discoverer
Index ¶
- type Client
- type Option
- func WithAutoConnect(flg bool) Option
- func WithDiscoverDuration(dur string) Option
- func WithDiscovererAddr(addr string) Option
- func WithDiscovererClient(gc grpc.Client) Option
- func WithDiscovererHostPort(host string, port int) Option
- func WithErrGroup(eg errgroup.Group) Option
- func WithName(name string) Option
- func WithNamespace(ns string) Option
- func WithNodeName(nn string) Option
- func WithOnConnectFunc(f func(ctx context.Context, c Client, addr string) error) Option
- func WithOnDisconnectFunc(f func(ctx context.Context, c Client, addr string) error) Option
- func WithOnDiscoverFunc(f func(ctx context.Context, c Client, addrs []string) error) Option
- func WithOptions(opts ...grpc.Option) Option
- func WithPort(port int) Option
- func WithServiceDNSARecord(a string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Option ¶
type Option func(c *client) error
func WithAutoConnect ¶
func WithDiscoverDuration ¶
func WithDiscovererAddr ¶
func WithDiscovererClient ¶
func WithDiscovererHostPort ¶
func WithErrGroup ¶
func WithNamespace ¶
func WithNodeName ¶
func WithOnConnectFunc ¶
func WithOnDisconnectFunc ¶
func WithOnDiscoverFunc ¶
func WithOptions ¶
func WithServiceDNSARecord ¶
Click to show internal directories.
Click to hide internal directories.