Documentation ¶
Index ¶
- type Config
- type Option
- type Service
- func (s *Service) All(ctx context.Context) (node []servicer.Node, err error)
- func (s *Service) Done(ctx context.Context, node servicer.Node, err error) error
- func (s *Service) GetCaCrt() []byte
- func (s *Service) GetClientKey() []byte
- func (s *Service) GetClientPem() []byte
- func (s *Service) Name() string
- func (s *Service) Pick(ctx context.Context) (node servicer.Node, err error)
- func (s *Service) RegistryName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServiceName string `validate:"required"` RegistryName string Type uint8 `validate:"required,oneof=1 2"` Host string `validate:"required"` Port int `validate:"required"` Selector string `validate:"required,oneof=wr"` // TODO support others CaCrt string ClientPem string ClientKey string }
type Service ¶
func (*Service) GetClientKey ¶
func (*Service) GetClientPem ¶
func (*Service) RegistryName ¶
Click to show internal directories.
Click to hide internal directories.