consul

package
v0.0.0-...-0c25fb7 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Storage accessor to consul

func New

func New(prefix, link string) (*Storage, error)

New storage connector

func (*Storage) Discovery

func (s *Storage) Discovery() service.Discovery

Discovery services

func (*Storage) Stop

func (s *Storage) Stop()

Stop supervisord

func (*Storage) Subscribe

func (s *Storage) Subscribe(f func(key string, value interface{}))

Subscribe config key updater

func (*Storage) Supervisor

func (s *Storage) Supervisor(interval time.Duration)

Supervisor of auto refresh

Jump to

Keyboard shortcuts

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