storage

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CONSUL_PATH string

Functions

This section is empty.

Types

type ConsulWrapper

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

func GetConsulWrapper

func GetConsulWrapper() ConsulWrapper

func (*ConsulWrapper) Delete

func (c *ConsulWrapper) Delete(key string) error

func (*ConsulWrapper) Get

func (c *ConsulWrapper) Get(key string) *consul.KVPair

func (*ConsulWrapper) GetInt

func (c *ConsulWrapper) GetInt(key string) int

func (*ConsulWrapper) GetString

func (c *ConsulWrapper) GetString(key string) string

func (*ConsulWrapper) GetUniqId

func (c *ConsulWrapper) GetUniqId() int

TODO add retry

func (*ConsulWrapper) Set

func (c *ConsulWrapper) Set(key string, value string)

type XdsConfigDao

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

func GetXdsConfigDao

func GetXdsConfigDao() *XdsConfigDao

func (*XdsConfigDao) GetConfigJson

func (dao *XdsConfigDao) GetConfigJson(sub *model.EnvoySubscriber) (string, string)

func (*XdsConfigDao) GetLatestVersion

func (dao *XdsConfigDao) GetLatestVersion(sub *model.EnvoySubscriber) string

func (*XdsConfigDao) IsACK

func (dao *XdsConfigDao) IsACK(sub *model.EnvoySubscriber, ack string) bool

func (*XdsConfigDao) IsListenerACK

func (dao *XdsConfigDao) IsListenerACK(sub *model.EnvoySubscriber, ack string) bool

func (*XdsConfigDao) IsRepoPresent

func (dao *XdsConfigDao) IsRepoPresent(sub *model.EnvoySubscriber) bool

func (*XdsConfigDao) RegisterSubscriber

func (dao *XdsConfigDao) RegisterSubscriber(sub *model.EnvoySubscriber)

func (*XdsConfigDao) RemoveListenerNonce

func (dao *XdsConfigDao) RemoveListenerNonce(sub *model.EnvoySubscriber, nonce string)

func (*XdsConfigDao) RemoveNonce

func (dao *XdsConfigDao) RemoveNonce(sub *model.EnvoySubscriber, nonce string)

func (*XdsConfigDao) SaveNonce

func (dao *XdsConfigDao) SaveNonce(sub *model.EnvoySubscriber, nonce string)

func (*XdsConfigDao) UpdateEnvoySubscriber

func (dao *XdsConfigDao) UpdateEnvoySubscriber(sub *model.EnvoySubscriber)

Jump to

Keyboard shortcuts

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