storage

package
v0.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CONSUL_PATH string

Functions

func GetFileConfigVersion added in v0.2.2

func GetFileConfigVersion() string

func GetSequenceKey added in v0.1.7

func GetSequenceKey() string

Types

type ConsulConfigDao added in v0.2.2

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

func GetConsulConfigDao added in v0.2.2

func GetConsulConfigDao() *ConsulConfigDao

func (*ConsulConfigDao) GetConfigJson added in v0.2.2

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

func (*ConsulConfigDao) GetLatestVersion added in v0.2.2

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

func (*ConsulConfigDao) GetLatestVersionFor added in v0.2.2

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

func (*ConsulConfigDao) IsRepoPresent added in v0.2.2

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

func (*ConsulConfigDao) IsRepoPresentFor added in v0.2.2

func (dao *ConsulConfigDao) IsRepoPresentFor(subscriberKey string) bool

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 FileConfigDao added in v0.2.2

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

func GetFileConfigDao added in v0.2.2

func GetFileConfigDao() *FileConfigDao

func (*FileConfigDao) GetConfigJson added in v0.2.2

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

func (*FileConfigDao) GetLatestVersion added in v0.2.2

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

func (*FileConfigDao) GetLatestVersionFor added in v0.2.2

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

func (*FileConfigDao) IsRepoPresent added in v0.2.2

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

func (*FileConfigDao) IsRepoPresentFor added in v0.2.2

func (dao *FileConfigDao) IsRepoPresentFor(subscriberKey string) bool

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 interface {
	GetLatestVersion(sub *model.EnvoySubscriber) string
	GetLatestVersionFor(subscriberKey string) string
	IsRepoPresent(sub *model.EnvoySubscriber) bool
	IsRepoPresentFor(subscriberKey string) bool
	GetConfigJson(sub *model.EnvoySubscriber) (string, string)
}

func GetXdsConfigDao

func GetXdsConfigDao() XdsConfigDao

Jump to

Keyboard shortcuts

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