Documentation ¶ Index ¶ Variables type UseCase func New(serverRepo repositories.ServerRepository) UseCase func (uc UseCase) Execute(ctx context.Context, publicAddr addr.PublicAddr) (server.Server, error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrInvalidAddress = errors.New("invalid address") ErrServerNotFound = errors.New("server not found") ErrServerHasNoDetails = errors.New("server has no details") ErrUnableToObtainServer = errors.New("unable to obtain server from repository") ) Functions ¶ This section is empty. Types ¶ type UseCase ¶ type UseCase struct { // contains filtered or unexported fields } func New ¶ func New( serverRepo repositories.ServerRepository, ) UseCase func (UseCase) Execute ¶ func (uc UseCase) Execute(ctx context.Context, publicAddr addr.PublicAddr) (server.Server, error) Source Files ¶ View all Source files getserver.go Click to show internal directories. Click to hide internal directories.