Versions in this module Expand all Collapse all v0 v0.3.1 Jun 21, 2021 Changes in this version + func GetService(s string) *server.ServiceInfo + func GetServiceKey(prefix string, s *server.ServiceInfo) string + func GetServiceValue(s *server.ServiceInfo) string + type Configuration struct + Labels map[string]string + Routes []Route + type ConsumerConfig struct + Host string + ID string + Scheme string + type Endpoints struct + ConsumerConfigs map[string]ConsumerConfig + Nodes map[string]server.ServiceInfo + ProviderConfigs map[string]ProviderConfig + RouteConfigs map[string]RouteConfig + func (in *Endpoints) DeepCopy() *Endpoints + func (in *Endpoints) DeepCopyInfo(out *Endpoints) + type Event uint8 + const EventDelete + const EventUnknown + const EventUpdate + type EventMessage struct + Address string + Message interface{} + Name string + Scheme string + type Kind uint8 + const KindConfigurator + const KindConsumer + const KindProvider + const KindUnknown + func ToKind(kindStr string) Kind + func (kind Kind) String() string + type Nop struct + func (n Nop) Close() error + func (n Nop) ListServices(ctx context.Context, s string, s2 string) ([]*server.ServiceInfo, error) + func (n Nop) RegisterService(context.Context, *server.ServiceInfo) error + func (n Nop) UnregisterService(context.Context, *server.ServiceInfo) error + func (n Nop) WatchServices(ctx context.Context, s string, s2 string) (chan Endpoints, error) + type ProviderConfig struct + Deployment string + Enable bool + Host string + ID string + Metadata map[string]string + Region string + Scheme string + Zone string + type Registry interface + ListServices func(context.Context, string, string) ([]*server.ServiceInfo, error) + RegisterService func(context.Context, *server.ServiceInfo) error + UnregisterService func(context.Context, *server.ServiceInfo) error + WatchServices func(context.Context, string, string) (chan Endpoints, error) + type Route struct + Deployment string + Method string + WeightGroups []WeightGroup + type RouteConfig struct + Deployment string + Host string + ID string + Scheme string + URI string + Upstream Upstream + func (config RouteConfig) String() string + type ServerInstance struct + IP string + Labels map[string]string + Port int + Scheme string + type Upstream struct + Groups map[string]int + Nodes map[string]int + type WeightGroup struct + Group string + Weight int