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