Documentation ¶
Index ¶
- type CatalogueService
- type UserService
- func (u *UserService) CreateAddress(ctx context.Context, addr api.Address, userID string) (uuid.UUID, error)
- func (u *UserService) CreateCard(ctx context.Context, card api.Card, userID string) (uuid.UUID, error)
- func (u *UserService) GetAddresses(ctx context.Context, id string) (*api.Address, error)
- func (u *UserService) GetCard(ctx context.Context, id string) (*api.Card, error)
- func (u *UserService) GetUser(ctx context.Context, id string) (*api.User, error)
- func (u *UserService) GetUserAddresses(ctx context.Context, userID string) ([]api.Address, error)
- func (u *UserService) GetUserCards(ctx context.Context, userID string) ([]api.Card, error)
- func (u *UserService) GetUsers(ctx context.Context) ([]api.User, error)
- func (u *UserService) Login(ctx context.Context, username, password string) (*api.User, error)
- func (u *UserService) Register(ctx context.Context, user api.User) (uuid.UUID, error)
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 ¶
func (s *CatalogueService) ListSocks(ctx context.Context, req *api.ListSockParams) (*api.ListSockResponse, error)
type UserService ¶
type UserService struct { UserStore domain.UserStore CardStore domain.CardStore AddressStore domain.AddressStore TxBeginner db.TxBeginner Domain string }
func (*UserService) CreateAddress ¶
func (*UserService) CreateCard ¶
func (*UserService) GetAddresses ¶
func (*UserService) GetUserAddresses ¶
func (*UserService) GetUserCards ¶
Click to show internal directories.
Click to hide internal directories.