consulx

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cli *api.Client) *client

Types

type Conf

type Conf struct {
	api.Config
	Default bool
}

func (*Conf) Conf

func (c *Conf) Conf() *api.Config

func (*Conf) Empty

func (c *Conf) Empty() bool

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func New

func New(client *api.Client) *Registry

func (*Registry) DeRegister

func (r *Registry) DeRegister(ctx context.Context, instance *registry.Instance) error

func (*Registry) Register

func (r *Registry) Register(ctx context.Context, instance *registry.Instance) error

func (*Registry) Watch

func (r *Registry) Watch(ctx context.Context, serviceName string) (registry.Watcher, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL