Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ID string `json:"id"`
Type ServiceType `json:"type"`
Name string `json:"name"`
Endpoints EndpointList `json:"endpoints"`
Zones []string `json:"zones"`
ACLs acl.Policy `json:"acls"`
NoPublish bool `json:"no_publish"`
UseProxy bool `json:"use_proxy"`
Handler Handler `json:"-"`
}
func FromConsulInstances ¶
func FromConsulInstances(tags []string, instances []*api.CatalogService, extrCfg ExtractConfig) (*Config, error)
func (*Config) MarshalZerologObject ¶
func (*Config) UnmarshalJSON ¶
type EndpointList ¶
type EndpointList []Endpoint
func (EndpointList) MarshalZerologArray ¶
func (el EndpointList) MarshalZerologArray(a *zerolog.Array)
type ExtractConfig ¶
type Handler ¶
type Handler string
Handler names a built-in cadet handler that serves a service's route in place of reverse-proxying to its endpoints.
type Map ¶
func CombineServiceMaps ¶
type ServiceType ¶
type ServiceType string
const ( HTTP ServiceType = "http" TCP ServiceType = "tcp" UDP ServiceType = "udp" )
func (ServiceType) IsEmpty ¶
func (s ServiceType) IsEmpty() bool
func (ServiceType) IsValid ¶
func (s ServiceType) IsValid() bool
func (ServiceType) String ¶
func (s ServiceType) String() string
Click to show internal directories.
Click to hide internal directories.