model

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmListRequest

type AlarmListRequest struct {
}

type AlarmListResponse

type AlarmListResponse struct {
	Response *registry.Response  `json:"response,omitempty"`
	Alarms   []*model.AlarmEvent `json:"alarms,omitempty"`
}

type Cache

type Cache struct {
	Microservices   MicroserviceSlice               `json:"services,omitempty"`
	Indexes         MicroserviceIndexSlice          `json:"serviceIndexes,omitempty"`
	Aliases         MicroserviceAliasSlice          `json:"serviceAliases,omitempty"`
	Tags            TagSlice                        `json:"serviceTags,omitempty"`
	Rules           MicroServiceRuleSlice           `json:"serviceRules,omitempty"`
	RuleIndexes     MicroServiceRuleIndexSlice      `json:"serviceRuleIndexes,omitempty"`
	DependencyRules MicroServiceDependencyRuleSlice `json:"dependencyRules,omitempty"`
	Summaries       SummarySlice                    `json:"summaries,omitempty"`
	Instances       InstanceSlice                   `json:"instances,omitempty"`
}

type ClearAlarmRequest

type ClearAlarmRequest struct {
}

type ClearAlarmResponse

type ClearAlarmResponse struct {
	Response *registry.Response `json:"response,omitempty"`
}

type ClustersRequest

type ClustersRequest struct {
}

type ClustersResponse

type ClustersResponse struct {
	Response *registry.Response `json:"response,omitempty"`
	Clusters types.Clusters     `json:"clusters,omitempty"`
}

type DumpRequest

type DumpRequest struct {
	Options []string
}

type DumpResponse

type DumpResponse struct {
	Response     *registry.Response `json:"response,omitempty"`
	Info         *version.Set       `json:"info,omitempty"`
	AppConfig    map[string]string  `json:"appConf,omitempty"`
	Environments map[string]string  `json:"environments,omitempty"`
	Cache        *Cache             `json:"cache,omitempty"`
}

type Getter

type Getter interface {
	ForEach(i func(i int, v *KV) bool)
}

type Instance

type Instance struct {
	*KV
	Value *registry.MicroServiceInstance `json:"value,omitempty"`
}

func NewInstance

func NewInstance(kv *KV) *Instance

type InstanceSlice

type InstanceSlice []*Instance

func (*InstanceSlice) ForEach

func (s *InstanceSlice) ForEach(f func(i int, v *KV) bool)

func (*InstanceSlice) SetValue

func (s *InstanceSlice) SetValue(v *KV)

type KV

type KV struct {
	Key         string      `json:"key"`
	Rev         int64       `json:"rev"`
	Value       interface{} `json:"-"`
	ClusterName string      `json:"cluster"`
}

type MicroServiceDependencyRule

type MicroServiceDependencyRule struct {
	*KV
	Value *registry.MicroServiceDependency `json:"value,omitempty"`
}

func NewMicroServiceDependencyRule

func NewMicroServiceDependencyRule(kv *KV) *MicroServiceDependencyRule

type MicroServiceDependencyRuleSlice

type MicroServiceDependencyRuleSlice []*MicroServiceDependencyRule

func (*MicroServiceDependencyRuleSlice) ForEach

func (s *MicroServiceDependencyRuleSlice) ForEach(f func(i int, v *KV) bool)

func (*MicroServiceDependencyRuleSlice) SetValue

func (s *MicroServiceDependencyRuleSlice) SetValue(v *KV)

type MicroServiceRule

type MicroServiceRule struct {
	*KV
	Value *registry.ServiceRule `json:"value,omitempty"`
}

func NewMicroServiceRule

func NewMicroServiceRule(kv *KV) *MicroServiceRule

type MicroServiceRuleIndex

type MicroServiceRuleIndex struct {
	*KV
	Value string `json:"value,omitempty"`
}

func NewMicroServiceRuleIndex

func NewMicroServiceRuleIndex(kv *KV) *MicroServiceRuleIndex

type MicroServiceRuleIndexSlice

type MicroServiceRuleIndexSlice []*MicroServiceRuleIndex

func (*MicroServiceRuleIndexSlice) ForEach

func (s *MicroServiceRuleIndexSlice) ForEach(f func(i int, v *KV) bool)

func (*MicroServiceRuleIndexSlice) SetValue

func (s *MicroServiceRuleIndexSlice) SetValue(v *KV)

type MicroServiceRuleSlice

type MicroServiceRuleSlice []*MicroServiceRule

func (*MicroServiceRuleSlice) ForEach

func (s *MicroServiceRuleSlice) ForEach(f func(i int, v *KV) bool)

func (*MicroServiceRuleSlice) SetValue

func (s *MicroServiceRuleSlice) SetValue(v *KV)

type Microservice

type Microservice struct {
	*KV
	Value *registry.MicroService `json:"value,omitempty"`
}

func NewMicroservice

func NewMicroservice(kv *KV) *Microservice

type MicroserviceAlias

type MicroserviceAlias struct {
	*KV
	Value string `json:"value,omitempty"`
}

func NewMicroserviceAlias

func NewMicroserviceAlias(kv *KV) *MicroserviceAlias

type MicroserviceAliasSlice

type MicroserviceAliasSlice []*MicroserviceAlias

func (*MicroserviceAliasSlice) ForEach

func (s *MicroserviceAliasSlice) ForEach(f func(i int, v *KV) bool)

func (*MicroserviceAliasSlice) SetValue

func (s *MicroserviceAliasSlice) SetValue(v *KV)

type MicroserviceIndex

type MicroserviceIndex struct {
	*KV
	Value string `json:"value,omitempty"`
}

func NewMicroserviceIndex

func NewMicroserviceIndex(kv *KV) *MicroserviceIndex

type MicroserviceIndexSlice

type MicroserviceIndexSlice []*MicroserviceIndex

func (*MicroserviceIndexSlice) ForEach

func (s *MicroserviceIndexSlice) ForEach(f func(i int, v *KV) bool)

func (*MicroserviceIndexSlice) SetValue

func (s *MicroserviceIndexSlice) SetValue(v *KV)

type MicroserviceSlice

type MicroserviceSlice []*Microservice

func (*MicroserviceSlice) ForEach

func (s *MicroserviceSlice) ForEach(f func(i int, v *KV) bool)

func (*MicroserviceSlice) SetValue

func (s *MicroserviceSlice) SetValue(v *KV)

type Setter

type Setter interface {
	SetValue(v *KV)
}

type Summary

type Summary struct {
	*KV
	Value string `json:"value,omitempty"`
}

func NewSummary

func NewSummary(kv *KV) *Summary

type SummarySlice

type SummarySlice []*Summary

func (*SummarySlice) ForEach

func (s *SummarySlice) ForEach(f func(i int, v *KV) bool)

func (*SummarySlice) SetValue

func (s *SummarySlice) SetValue(v *KV)

type Tag

type Tag struct {
	*KV
	Value map[string]string `json:"value,omitempty"`
}

func NewTag

func NewTag(kv *KV) *Tag

type TagSlice

type TagSlice []*Tag

func (*TagSlice) ForEach

func (s *TagSlice) ForEach(f func(i int, v *KV) bool)

func (*TagSlice) SetValue

func (s *TagSlice) SetValue(v *KV)

Jump to

Keyboard shortcuts

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