app

package
v0.0.0-...-05ef5cd Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogueService

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

func NewCatalogueService

func NewCatalogueService(s domain.SockStore) *CatalogueService

func (*CatalogueService) ListSocks

type UserService

type UserService struct {
	UserStore    domain.UserStore
	CardStore    domain.CardStore
	AddressStore domain.AddressStore
	TxBeginner   db.TxBeginner
	Domain       string
}

func (*UserService) CreateAddress

func (u *UserService) CreateAddress(ctx context.Context, addr api.Address, userID string) (uuid.UUID, error)

func (*UserService) CreateCard

func (u *UserService) CreateCard(ctx context.Context, card api.Card, userID string) (uuid.UUID, error)

func (*UserService) GetAddresses

func (u *UserService) GetAddresses(ctx context.Context, id string) (*api.Address, error)

func (*UserService) GetCard

func (u *UserService) GetCard(ctx context.Context, id string) (*api.Card, error)

func (*UserService) GetUser

func (u *UserService) GetUser(ctx context.Context, id string) (*api.User, error)

func (*UserService) GetUserAddresses

func (u *UserService) GetUserAddresses(ctx context.Context, userID string) ([]api.Address, error)

func (*UserService) GetUserCards

func (u *UserService) GetUserCards(ctx context.Context, userID string) ([]api.Card, error)

func (*UserService) GetUsers

func (u *UserService) GetUsers(ctx context.Context) ([]api.User, error)

func (*UserService) Login

func (u *UserService) Login(ctx context.Context, username, password string) (*api.User, error)

func (*UserService) Register

func (u *UserService) Register(ctx context.Context, user api.User) (uuid.UUID, error)

Jump to

Keyboard shortcuts

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