internal

package
v0.0.0-...-eb24ba2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	GetTraveller(ctx context.Context, id uuid.UUID) (Traveller, error)
}

type Traveller

type Traveller struct {
	ID        uuid.UUID
	FirstName string
	LastName  string
	Age       int
}

type Travellers

type Travellers struct {
	// contains filtered or unexported fields
}

func NewTravellers

func NewTravellers(db Storage) Travellers

func (Travellers) CreateTraveller

func (t Travellers) CreateTraveller(ctx context.Context, traveller Traveller) (uuid.UUID, error)

func (Travellers) DeleteTraveller

func (t Travellers) DeleteTraveller()

func (Travellers) GetTraveller

func (t Travellers) GetTraveller(ctx context.Context, id uuid.UUID) (Traveller, error)

Directories

Path Synopsis
adapters
cmd
app command
term command
ports
ftp

Jump to

Keyboard shortcuts

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