Documentation
¶
Index ¶
- Constants
- Variables
- func ConsulGet(url string) (string, bool)
- func Delete(store string, key string) eccerror
- func Execute(args ...string) int
- func Get(store string, key string) ([]byte, int, bool)
- func GetAll(store string) ([][]byte, []int, bool)
- func HasStarted() bool
- func Join(address string) error
- func Leave() error
- func Put(store string, key string, value []byte, oldValue []byte) eccerror
- func RegisterForKeyUpdates(store string, key string, listener Listener)
- func RegisterForNodeUpdates(listener Listener)
- func RegisterForStoreUpdates(store string, listener Listener)
- func Start(serverMode bool, bootstrap bool, bindInterface string, dataDir string) error
- type Listener
- type NotifyUpdateType
- type Store
- type WatchType
Constants ¶
View Source
const ( OK = iota OUTDATED ERROR )
View Source
const ( NOTIFY_UPDATE_ADD = iota NOTIFY_UPDATE_MODIFY NOTIFY_UPDATE_DELETE )
View Source
const ( WATCH_TYPE_NODE = iota WATCH_TYPE_KEY WATCH_TYPE_STORE WATCH_TYPE_EVENT )
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 ¶
View Source
var Commands map[string]cli.CommandFactory
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 HasStarted ¶
func HasStarted() bool
func RegisterForKeyUpdates ¶
func RegisterForNodeUpdates ¶
func RegisterForNodeUpdates(listener Listener)
func RegisterForStoreUpdates ¶
Types ¶
type Listener ¶
type Listener interface { NotifyNodeUpdate(NotifyUpdateType, string) NotifyKeyUpdate(NotifyUpdateType, string, []byte) NotifyStoreUpdate(NotifyUpdateType, string, map[string][]byte) }
type NotifyUpdateType ¶
type NotifyUpdateType int
Click to show internal directories.
Click to hide internal directories.