Documentation
¶
Index ¶
- func IsCreateFailed(err error) bool
- func IsEtcdKeyAlreadyExists(err error) bool
- func IsInvalidConfig(err error) bool
- func IsMultipleValuesFound(err error) bool
- func IsNotFound(err error) bool
- type Config
- type Service
- func (s *Service) Create(ctx context.Context, key, value string) error
- func (s *Service) Delete(ctx context.Context, key string) error
- func (s *Service) Exists(ctx context.Context, key string) (bool, error)
- func (s *Service) List(ctx context.Context, key string) ([]string, error)
- func (s *Service) Search(ctx context.Context, key string) (string, error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEtcdKeyAlreadyExists ¶
IsEtcdKeyAlreadyExists is an error matcher for the v2 etcd client.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsMultipleValuesFound ¶
IsMultipleValuesFound asserts multipleValuesError.
Types ¶
type Config ¶
Config represents the configuration used to create a service.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig provides a default configuration to create a new service by best effort.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides the actual service implementation.
Click to show internal directories.
Click to hide internal directories.