Documentation
¶
Index ¶
- type Service
- func (s *Service) Create(ctx context.Context, svr servers.Server, onConflict func(*servers.Server) bool) (servers.Server, error)
- func (s *Service) CreateOrUpdate(ctx context.Context, svr servers.Server, onConflictDo func(*servers.Server)) (servers.Server, error)
- func (s *Service) FilterRecent(ctx context.Context, recentness time.Duration, q query.Query, ...) ([]servers.Server, error)
- func (s *Service) Get(ctx context.Context, address addr.Addr) (servers.Server, error)
- func (s *Service) 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 Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo servers.Repository) *Service
func (*Service) CreateOrUpdate ¶
func (*Service) FilterRecent ¶
Click to show internal directories.
Click to hide internal directories.