Documentation ¶
Index ¶
- Variables
- func GetFileConfigVersion() string
- func GetSequenceKey() string
- type ConsulConfigDao
- func (dao *ConsulConfigDao) GetConfigJson(sub *model.EnvoySubscriber) (string, string)
- func (dao *ConsulConfigDao) GetLatestVersion(sub *model.EnvoySubscriber) string
- func (dao *ConsulConfigDao) GetLatestVersionFor(subscriberKey string) string
- func (dao *ConsulConfigDao) IsRepoPresent(sub *model.EnvoySubscriber) bool
- func (dao *ConsulConfigDao) IsRepoPresentFor(subscriberKey string) bool
- type ConsulWrapper
- type FileConfigDao
- func (dao *FileConfigDao) GetConfigJson(sub *model.EnvoySubscriber) (string, string)
- func (dao *FileConfigDao) GetLatestVersion(sub *model.EnvoySubscriber) string
- func (dao *FileConfigDao) GetLatestVersionFor(subscriberKey string) string
- func (dao *FileConfigDao) IsRepoPresent(sub *model.EnvoySubscriber) bool
- func (dao *FileConfigDao) IsRepoPresentFor(subscriberKey string) bool
- type SubscriberDao
- func (dao *SubscriberDao) DeleteSubscriber(sub *model.EnvoySubscriber)
- func (dao *SubscriberDao) IsACK(sub *model.EnvoySubscriber, ack string) bool
- func (dao *SubscriberDao) RegisterSubscriber(sub *model.EnvoySubscriber)
- func (dao *SubscriberDao) RemoveNonce(sub *model.EnvoySubscriber, nonce string)
- func (dao *SubscriberDao) SaveNonce(sub *model.EnvoySubscriber, nonce string)
- type XdsConfigDao
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) GetInt ¶
func (c *ConsulWrapper) GetInt(key string) int
func (*ConsulWrapper) GetString ¶
func (c *ConsulWrapper) GetString(key string) string
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
Click to show internal directories.
Click to hide internal directories.