cache

package
v0.0.0-...-b359386 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceCache

type ServiceCache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New(s discoverd.Service) (*ServiceCache, error)

func (*ServiceCache) Addrs

func (d *ServiceCache) Addrs() []string

func (*ServiceCache) Close

func (d *ServiceCache) Close() error

func (*ServiceCache) Instances

func (d *ServiceCache) Instances() []*discoverd.Instance

func (*ServiceCache) Leader

func (d *ServiceCache) Leader() []*discoverd.Instance

func (*ServiceCache) LeaderAddr

func (d *ServiceCache) LeaderAddr() []string

func (*ServiceCache) Watch

func (d *ServiceCache) Watch(ch chan *discoverd.Event, current bool) stream.Stream

Jump to

Keyboard shortcuts

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