ecc

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2014 License: MPL-2.0 Imports: 15 Imported by: 0

README

ecc

Embedded Consul Client

Documentation

Index

Constants

View Source
const (
	OK = iota
	OUTDATED
	ERROR
)
View Source
const CONSUL_BASE_URL = "http://localhost:8500/v1/"
View Source
const CONSUL_KV_BASE_URL = "http://localhost:8500/v1/kv/"
View Source
const Version = "0.4.1"

The main version number that is being run at the moment.

View Source
const VersionPrerelease = ""

A pre-release marker for the version. If this is "" (empty string) then it means that it is a final release. Otherwise, this is a pre-release such as "dev" (in development), "beta", "rc1", etc.

Variables

Commands is the mapping of all the available Consul commands.

View Source
var GitCommit string

The git commit that was compiled. This will be filled in by the compiler.

View Source
var GitDescribe string
View Source
var OfflineSupport bool = true

Functions

func ConsulGet

func ConsulGet(url string) (string, bool)

func Delete

func Delete(store string, key string) eccerror

func Execute

func Execute(args ...string) int

Execute function is borrowed from Consul's main.go

func Get

func Get(store string, key string) ([]byte, int, bool)

func GetAll

func GetAll(store string) ([][]byte, []int, bool)

func HasStarted

func HasStarted() bool

func Join

func Join(address string) error

func Leave

func Leave() error

func Put

func Put(store string, key string, value []byte, oldValue []byte) eccerror

func Start

func Start(serverMode bool, bootstrap bool, bindInterface string, dataDir string) error

Types

type Store

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

Directories

Path Synopsis
Godeps
_workspace/src/github.com/hashicorp/go-checkpoint
checkpoint is a package for checking version information and alerts for a HashiCorp product.
checkpoint is a package for checking version information and alerts for a HashiCorp product.
_workspace/src/github.com/hashicorp/go-msgpack/codec
High Performance, Feature-Rich Idiomatic Go encoding library for msgpack and binc .
High Performance, Feature-Rich Idiomatic Go encoding library for msgpack and binc .
_workspace/src/github.com/hashicorp/golang-lru
This package provides a simple LRU cache.
This package provides a simple LRU cache.
_workspace/src/github.com/hashicorp/hcl
hcl is a package for decoding HCL into usable Go structures.
hcl is a package for decoding HCL into usable Go structures.
_workspace/src/github.com/hashicorp/memberlist
memberlist is a library that manages cluster membership and member failure detection using a gossip based protocol.
memberlist is a library that manages cluster membership and member failure detection using a gossip based protocol.
_workspace/src/github.com/inconshreveable/muxado
muxado is an implementation of a general-purpose stream-multiplexing protocol.
muxado is an implementation of a general-purpose stream-multiplexing protocol.
_workspace/src/github.com/miekg/dns
Package dns implements a full featured interface to the Domain Name System.
Package dns implements a full featured interface to the Domain Name System.
_workspace/src/github.com/miekg/dns/idn
Package idn implements encoding from and to punycode as speficied by RFC 3492.
Package idn implements encoding from and to punycode as speficied by RFC 3492.
_workspace/src/github.com/mitchellh/mapstructure
The mapstructure package exposes functionality to convert an abitrary map[string]interface{} into a native Go structure.
The mapstructure package exposes functionality to convert an abitrary map[string]interface{} into a native Go structure.

Jump to

Keyboard shortcuts

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