structs

package
v0.0.0-...-9ce36fb Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogDefinition

type CatalogDefinition struct {
	Nodes    []*CatalogNode
	Services []*CatalogService
	Proxies  []*CatalogProxy
}

func (*CatalogDefinition) Sort

func (d *CatalogDefinition) Sort()

type CatalogNode

type CatalogNode struct {
	Node            string            `json:",omitempty"`
	Address         string            `json:",omitempty"`
	TaggedAddresses map[string]string `json:",omitempty"`
	NodeMeta        map[string]string `json:",omitempty"`
	Partition       string            `json:",omitempty"`
}

func (*CatalogNode) ID

func (n *CatalogNode) ID() util.Identifier2

func (*CatalogNode) ToAPI

func (n *CatalogNode) ToAPI(enterprise bool) *api.CatalogRegistration

type CatalogProxy

type CatalogProxy struct {
	CatalogService
	ProxyDestinationServiceName string                  `json:",omitempty"`
	ProxyLocalServicePort       int                     `json:",omitempty"`
	ProxyUpstreams              []*CatalogProxyUpstream `json:",omitempty"`
}

func (*CatalogProxy) ToAPI

func (p *CatalogProxy) ToAPI(enterprise bool) *api.CatalogRegistration

type CatalogProxyUpstream

type CatalogProxyUpstream struct {
	DestinationPartition string `json:",omitempty"`
	DestinationNamespace string `json:",omitempty"`
	DestinationPeer      string `json:",omitempty"`
	DestinationName      string `json:",omitempty"`
	Datacenter           string `json:",omitempty"`
	LocalBindPort        int    `json:",omitempty"`
}

type CatalogService

type CatalogService struct {
	Node      string `json:",omitempty"`
	Partition string `json:",omitempty"`
	//
	Service   string            `json:",omitempty"`
	Meta      map[string]string `json:",omitempty"`
	Port      int               `json:",omitempty"`
	Address   string            `json:",omitempty"`
	Namespace string            `json:",omitempty"`
	//
	CheckID  string `json:",omitempty"`
	TCPCheck string `json:",omitempty"`
}

func (*CatalogService) ID

func (s *CatalogService) ID() util.Identifier

func (*CatalogService) NodeID

func (s *CatalogService) NodeID() util.Identifier2

func (*CatalogService) ToAPI

func (s *CatalogService) ToAPI(enterprise bool) *api.CatalogRegistration

Jump to

Keyboard shortcuts

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