Versions in this module Expand all Collapse all v0 v0.0.5 Jan 8, 2023 v0.0.4 Jan 6, 2023 v0.0.3 Jan 6, 2023 v0.0.2 Jan 6, 2023 v0.0.1 Jan 6, 2023 Changes in this version + type HealthKind string + const HealthKindGRPC + const HealthKindTTL + type Option func(Registrator) + type Options struct + Address string + ServiceDiscovery discovery.ServiceDiscoveryType + ServiceDiscoveryDcName string + ServiceDiscoveryNamespace string + type Registrator interface + DeRegister func(ctx context.Context, id string) + GetEndpointAddress func(ctx context.Context, serviceName string, tags []string) (string, error) + Query func(ctx context.Context, serviceName string, tags []string) ([]*Service, error) + Register func(ctx context.Context, s *Service) + StopWatch func(serviceName string) + Watch func(ctx context.Context, serviceName string, tags []string, opts WatchOptions) chan *ServiceResponse + WatchCh func(ctx context.Context, serviceName string, tags []string, opts WatchOptions, ...) + func New(ctx context.Context, config *rest.Config, o *Options) (Registrator, error) + type Service struct + Address string + HealthChecks []HealthKind + ID string + Name string + Port int + Tags []string + type ServiceResponse struct + Err error + ServiceInstances []*Service + ServiceName string + type WatchOptions struct + RetriveServices bool