consul

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConsul

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

func NewDBConsul

func NewDBConsul(cfg *api.Config) (DB *DBConsul, err error)

func (*DBConsul) Get

func (d *DBConsul) Get(keyPath string) (data []byte, version uint64, err error)

func (*DBConsul) Unmarshal

func (d *DBConsul) Unmarshal(keyPath string, o interface{}) (err error)

func (*DBConsul) Watch

func (d *DBConsul) Watch(keyPath string, o interface{}, onChanged func(err error)) (err error)

Jump to

Keyboard shortcuts

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