registry

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulRegistry

type ConsulRegistry struct {
	sync.Mutex

	QueryOptions *consul.QueryOptions
	// contains filtered or unexported fields
}

func (*ConsulRegistry) GetService

func (c *ConsulRegistry) GetService(name string, opt ...GetOptions) ([]*iface.Service, error)

func (*ConsulRegistry) Init

func (c *ConsulRegistry) Init()

func (*ConsulRegistry) Register

func (c *ConsulRegistry) Register(service iface.Service)

func (*ConsulRegistry) UnRegister

func (c *ConsulRegistry) UnRegister(service iface.Service)

func (*ConsulRegistry) UnRegisterById

func (c *ConsulRegistry) UnRegisterById(id string)

type DeregisterOptions

type DeregisterOptions struct {
	Context context.Context
}

type GetOptions

type GetOptions struct {
	Context context.Context
}

type ListOptions

type ListOptions struct {
	Context context.Context
}

type Options

type Options struct {
	Addrs     []string
	Timeout   time.Duration
	Secure    bool
	TLSConfig *tls.Config
	// Other options for implementations of the interface
	// can be stored in a context
	Context context.Context
}

type RegisterOptions

type RegisterOptions struct {
	TTL time.Duration
	// Other options for implementations of the interface
	// can be stored in a context
	Context context.Context
}

type WatchOptions

type WatchOptions struct {
	// Specify a service to watch
	// If blank, the watch is for all services
	Service string
	// Other options for implementations of the interface
	// can be stored in a context
	Context context.Context
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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