registry

package
v0.0.0-...-25da3cc Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetChangeHandle

type NetChangeHandle func()

type Registry

type Registry struct {
	ServerUrl string
	*consul.ConsulClient
	OnServerOnline  NetChangeHandle
	OnServerOffline NetChangeHandle
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(regServer string) (*Registry, error)

func (*Registry) CreateLocker

func (r *Registry) CreateLocker(key string, value string, ttl string) (*consul.Locker, error)

CreateLocker create locker to registry with key/value

func (*Registry) Start

func (r *Registry) Start() error

func (*Registry) Stop

func (r *Registry) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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