model

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvoySubscriber

type EnvoySubscriber struct {
	Id                 int
	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
}

func (*EnvoySubscriber) BuildInstanceKey

func (e *EnvoySubscriber) BuildInstanceKey() 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) ToJSON

func (e *EnvoySubscriber) ToJSON() string

Jump to

Keyboard shortcuts

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