storage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CONSUL_PATH string

Functions

func GetSequenceKey added in v0.1.7

func GetSequenceKey() string

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 SubscriberDao added in v0.2.0

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

func GetSubscriberDao added in v0.2.0

func GetSubscriberDao() *SubscriberDao

func (*SubscriberDao) DeleteSubscriber added in v0.2.0

func (dao *SubscriberDao) DeleteSubscriber(sub *model.EnvoySubscriber)

func (*SubscriberDao) IsACK added in v0.2.0

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

func (*SubscriberDao) RegisterSubscriber added in v0.2.0

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

func (*SubscriberDao) RemoveNonce added in v0.2.0

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

func (*SubscriberDao) SaveNonce added in v0.2.0

func (dao *SubscriberDao) SaveNonce(sub *model.EnvoySubscriber, nonce 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) GetLatestVersionFor added in v0.2.0

func (dao *XdsConfigDao) GetLatestVersionFor(subscriberKey string) string

func (*XdsConfigDao) IsRepoPresent

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

Jump to

Keyboard shortcuts

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