getserver

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL