Documentation
¶
Index ¶
- type Repository
- func (r *Repository) DeleteMany(ctx context.Context, labels map[string]string) (int, error)
- func (r *Repository) DeleteOne(ctx context.Context, key string) error
- func (r *Repository) Get(ctx context.Context, key string) (data.ItemWithKey, error)
- func (r *Repository) List(ctx context.Context, labels map[string]string) ([]data.ItemWithKey, error)
- func (r *Repository) Replace(ctx context.Context, key string, item data.Item) (data.ItemWithKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Repository
func (*Repository) DeleteMany ¶
func (*Repository) DeleteOne ¶
func (r *Repository) DeleteOne(ctx context.Context, key string) error
func (*Repository) Get ¶
func (r *Repository) Get(ctx context.Context, key string) (data.ItemWithKey, error)
func (*Repository) List ¶
func (r *Repository) List(ctx context.Context, labels map[string]string) ([]data.ItemWithKey, error)
Click to show internal directories.
Click to hide internal directories.