Documentation
¶
Index ¶
- type Repository
- func (mr *Repository) Add(ctx context.Context, svr servers.Server, onConflict func(*servers.Server) bool) (servers.Server, error)
- func (mr *Repository) Count(context.Context) (int, error)
- func (mr *Repository) CountByStatus(_ context.Context) (map[ds.DiscoveryStatus]int, error)
- func (mr *Repository) Filter(_ context.Context, fs servers.FilterSet) ([]servers.Server, error)
- func (mr *Repository) Get(_ context.Context, addr addr.Addr) (servers.Server, error)
- func (mr *Repository) Remove(_ context.Context, svr servers.Server, onConflict func(*servers.Server) bool) error
- func (mr *Repository) Update(ctx context.Context, svr servers.Server, onConflict func(*servers.Server) bool) (servers.Server, 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(c clock.Clock) *Repository
func (*Repository) CountByStatus ¶
func (mr *Repository) CountByStatus(_ context.Context) (map[ds.DiscoveryStatus]int, error)
Click to show internal directories.
Click to hide internal directories.