Documentation ¶ Index ¶ Variables type Request func NewRequest(query query.Query, recentness time.Duration, ...) Request type UseCase func New(serverRepo repositories.ServerRepository, clock clockwork.Clock) UseCase func (uc UseCase) Execute(ctx context.Context, req Request) ([]server.Server, error) Constants ¶ This section is empty. Variables ¶ View Source var ErrUnableToObtainServers = errors.New("unable to obtain servers from repository") Functions ¶ This section is empty. Types ¶ type Request ¶ type Request struct { // contains filtered or unexported fields } func NewRequest ¶ func NewRequest( query query.Query, recentness time.Duration, discoveryStatus ds.DiscoveryStatus, ) Request type UseCase ¶ type UseCase struct { // contains filtered or unexported fields } func New ¶ func New( serverRepo repositories.ServerRepository, clock clockwork.Clock, ) UseCase func (UseCase) Execute ¶ func (uc UseCase) Execute(ctx context.Context, req Request) ([]server.Server, error) Source Files ¶ View all Source files listservers.go Click to show internal directories. Click to hide internal directories.