Documentation
¶
Index ¶
- type Repository
- func (r *Repository) Add(_ context.Context, instance instances.Instance) error
- func (r *Repository) Count(_ context.Context) (int, error)
- func (r *Repository) GetByAddr(_ context.Context, insAddr addr.Addr) (instances.Instance, error)
- func (r *Repository) GetByID(_ context.Context, id string) (instances.Instance, error)
- func (r *Repository) RemoveByAddr(_ context.Context, insAddr addr.Addr) error
- func (r *Repository) RemoveByID(_ context.Context, id string) 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) RemoveByAddr ¶
func (*Repository) RemoveByID ¶
func (r *Repository) RemoveByID(_ context.Context, id string) error
Click to show internal directories.
Click to hide internal directories.