Documentation
¶
Index ¶
- Constants
- func GetContext(ctx context.Context, q sqlx.QueryerContext, dest interface{}, query string, ...) error
- func SelectContext(ctx context.Context, q sqlx.QueryerContext, dest interface{}, query string, ...) error
- type AddressStore
- type CardStore
- type SockStore
- func (s *SockStore) Count(ctx context.Context, tags []string) (int, error)
- func (s *SockStore) Create(ctx context.Context, sock domain.Sock) error
- func (s *SockStore) Get(ctx context.Context, id string) (domain.Sock, error)
- func (s *SockStore) List(ctx context.Context, tags []string, order string, limit, offset int) ([]domain.Sock, error)
- func (s *SockStore) Tags(ctx context.Context) ([]string, error)
- func (s *SockStore) Update(ctx context.Context, sock domain.Sock) error
- type UserStore
- func (u *UserStore) CreateAddress(ctx context.Context, addrID string, userID string) error
- func (u *UserStore) CreateCard(ctx context.Context, cardID string, userID string) error
- func (u *UserStore) CreateUser(ctx context.Context, user *domain.User) error
- func (u *UserStore) Delete(ctx context.Context, entity string, id string) error
- func (u *UserStore) GetAddress(ctx context.Context, id string) (domain.Address, error)
- func (u *UserStore) GetCard(ctx context.Context, id string) (domain.Card, error)
- func (u *UserStore) GetUser(ctx context.Context, id string) (domain.User, error)
- func (u *UserStore) GetUserAddresses(ctx context.Context, userID string) ([]domain.Address, error)
- func (u *UserStore) GetUserByName(ctx context.Context, uname string) (domain.User, error)
- func (u *UserStore) GetUserCards(ctx context.Context, userID string) ([]domain.Card, error)
- func (u *UserStore) GetUsers(ctx context.Context) ([]domain.User, error)
- func (u *UserStore) WithTx(db db.DB) domain.UserStore
Constants ¶
View Source
const ErrCodeDupe = 1062
Variables ¶
This section is empty.
Functions ¶
func GetContext ¶
func SelectContext ¶
Types ¶
type AddressStore ¶
type AddressStore struct {
// contains filtered or unexported fields
}
func NewAddressStore ¶
func NewAddressStore(db db.DB) *AddressStore
func (*AddressStore) CreateAddress ¶
func (*AddressStore) WithTx ¶
func (a *AddressStore) WithTx(db db.DB) domain.AddressStore
type CardStore ¶
type CardStore struct {
// contains filtered or unexported fields
}
func NewCardStore ¶
func (*CardStore) CreateCard ¶
type SockStore ¶
type SockStore struct {
// contains filtered or unexported fields
}
func NewSockStore ¶
type UserStore ¶
type UserStore struct {
// contains filtered or unexported fields
}
func NewUserStore ¶
func (*UserStore) CreateAddress ¶
func (*UserStore) CreateCard ¶
func (*UserStore) CreateUser ¶
func (*UserStore) GetAddress ¶
func (*UserStore) GetUserAddresses ¶
func (*UserStore) GetUserByName ¶
func (*UserStore) GetUserCards ¶
Click to show internal directories.
Click to hide internal directories.