kv

package
v0.0.0-...-af9a2c8 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2016 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVHandler

type KVHandler struct {
	*api.KV
	// contains filtered or unexported fields
}

KVHandler is used to manipulate the KV

func New

func New(config *config.ConsulConfig) (*KVHandler, error)

New creates new KV handler to manipulate the Consul VK

func (*KVHandler) HandleInit

func (h *KVHandler) HandleInit(repos []*repository.Repository) error

HandleInit handles initial fetching of the KV on start

func (*KVHandler) HandleUpdate

func (h *KVHandler) HandleUpdate(repo *repository.Repository) error

HandleUpdate handles the update of a particular repository by comparing diffs against the KV.

Jump to

Keyboard shortcuts

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