Documentation ¶
Index ¶
- func ContainsString(slice []string, value string) (index int, ok bool)
- func FilterNotContainsString(slice []string, filterElements []string) (filtered []string)
- func IntersectStringSlice(sliceA []string, sliceB []string) (intersect []string)
- func RemoveFromStringSlice(slice []string, value string) (removed []string)
- type Consul
- func (c *Consul) DeleteTreeIfExists(key string) (bool, error)
- func (c *Consul) GetKV(key string) (value string, ok bool, err error)
- func (c *Consul) GetKVBoolExactly(key string) (value bool, err error)
- func (c *Consul) GetKVExactly(key string) (value string, err error)
- func (c *Consul) GetKVIntExactly(key string) (value int, err error)
- func (c *Consul) GetKeys(prefix string, recurse bool) ([]string, error)
- func (c *Consul) GetSubKeyNames(prefix string) ([]string, error)
- func (c *Consul) PutKV(key string, value string) error
- func (c *Consul) PutKVBool(key string, value bool) error
- func (c *Consul) PutKVInt(key string, num int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterNotContainsString ¶
FilterNotContainsString removes all items in 'filterElements' from the 'slice'.
func IntersectStringSlice ¶
IntersectStringSlice returns intersections.
func RemoveFromStringSlice ¶
RemoveFromStringSlice removes a string entity from the string slice.
Types ¶
type Consul ¶
func (*Consul) DeleteTreeIfExists ¶
returns whether or not to delete
func (*Consul) GetKVBoolExactly ¶
returns an error if key doesn't exist
func (*Consul) GetKVExactly ¶
returns an error if key doesn't exist
func (*Consul) GetKVIntExactly ¶
returns an error if key doesn't exist
func (*Consul) GetSubKeyNames ¶
get keys which is first children of the prefix and removes the prefix
Click to show internal directories.
Click to hide internal directories.