Documentation ¶
Index ¶
- type ETCDRepository
- func (e *ETCDRepository) Delete(ctx context.Context, prefix string, key string) error
- func (e *ETCDRepository) Get(ctx context.Context, prefix string, key string) ([]byte, error)
- func (e *ETCDRepository) GetAll(ctx context.Context, prefix string) ([][]byte, error)
- func (e *ETCDRepository) GetClient() (*clientv3.Client, error)
- func (e *ETCDRepository) Put(ctx context.Context, prefix string, key string, value []byte) error
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ETCDRepository ¶
type ETCDRepository struct {
// contains filtered or unexported fields
}
type Interface ¶
type Interface interface { GetAll(ctx context.Context, prefix string) ([][]byte, error) Get(ctx context.Context, prefix string, key string) ([]byte, error) Put(ctx context.Context, prefix string, key string, value []byte) error Delete(ctx context.Context, prefix string, key string) error }
Interface is an abstraction over key value storage, gets and returns values serialized as byte slices It is up to the services to do data conversion from
func NewETCDRepository ¶
Click to show internal directories.
Click to hide internal directories.