model

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMeta added in v0.2.0

type ConfigMeta struct {
	Key     string
	Topic   string
	Version string
}

type EnvoySubscriber

type EnvoySubscriber struct {
	Guid               string
	Cluster            string
	Node               string
	UpdateSuccess      int
	UpdateFailures     int
	LastUpdatedVersion string
	// LastUpdatedVersionV2 map[string]string // for ads
	LastUpdatedTimestamp time.Time
	SubscribedTo         string
	// SubscribedToV2       []string // for ads
	AdsList   map[string]*EnvoySubscriber
	IpAddress string
}

func (*EnvoySubscriber) BuildInstanceKey2 added in v0.2.0

func (e *EnvoySubscriber) BuildInstanceKey2() string

func (*EnvoySubscriber) BuildRootKey

func (e *EnvoySubscriber) BuildRootKey() string

func (*EnvoySubscriber) GetAdsSubscriber

func (e *EnvoySubscriber) GetAdsSubscriber(topic string) *EnvoySubscriber

func (*EnvoySubscriber) IsADS

func (e *EnvoySubscriber) IsADS() bool

func (*EnvoySubscriber) IsEqual

func (e *EnvoySubscriber) IsEqual(that *EnvoySubscriber) bool

func (*EnvoySubscriber) IsOutdated added in v0.2.0

func (e *EnvoySubscriber) IsOutdated(newVersion string) bool

func (*EnvoySubscriber) ToJSON

func (e *EnvoySubscriber) ToJSON() string

Jump to

Keyboard shortcuts

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