Documentation ¶
Index ¶
- func Connect(config PostgresConfig) (*sqlx.DB, error)
- func NewRepository(config PostgresConfig) (*repository.Repository, error)
- type GetCount
- type JokeRepository
- func (rep *JokeRepository) Add(query interface{}) (uuid.UUID, error)
- func (rep *JokeRepository) Count(interface{}) (int, error)
- func (rep *JokeRepository) Edit(interface{})
- func (rep *JokeRepository) GetList(interface{})
- func (rep *JokeRepository) GetOne(query repository.JokeQuery) (repository.JokeDbDto, error)
- func (rep *JokeRepository) Remove(interface{})
- func (rep *JokeRepository) UpdateContext(id uuid.UUID, context string) error
- type PostgresConfig
- type StateRepository
- type UserRepository
- func (rep *UserRepository) Add(query repository.CreateUserDto) (uuid.UUID, error)
- func (rep *UserRepository) Edit(interface{})
- func (rep *UserRepository) GetList(query repository.UserListQuery) repository.UsersDbMetaDto
- func (rep *UserRepository) GetOne(query repository.UserQuery) (repository.UserDbDto, error)
- func (rep *UserRepository) Remove(interface{})
- func (rep *UserRepository) SetNewStateUUID(userUUID uuid.UUID, stateUUID uuid.UUID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(config PostgresConfig) (*repository.Repository, error)
Types ¶
type JokeRepository ¶
type JokeRepository struct {
// contains filtered or unexported fields
}
func NewJokeRepository ¶
func NewJokeRepository(db *sqlx.DB) *JokeRepository
func (*JokeRepository) Count ¶
func (rep *JokeRepository) Count(interface{}) (int, error)
func (*JokeRepository) Edit ¶
func (rep *JokeRepository) Edit(interface{})
func (*JokeRepository) GetList ¶
func (rep *JokeRepository) GetList(interface{})
func (*JokeRepository) GetOne ¶
func (rep *JokeRepository) GetOne(query repository.JokeQuery) (repository.JokeDbDto, error)
func (*JokeRepository) Remove ¶
func (rep *JokeRepository) Remove(interface{})
func (*JokeRepository) UpdateContext ¶
func (rep *JokeRepository) UpdateContext(id uuid.UUID, context string) error
type PostgresConfig ¶
type StateRepository ¶
type StateRepository struct {
// contains filtered or unexported fields
}
func NewStateRepository ¶
func NewStateRepository(db *sqlx.DB) *StateRepository
func (*StateRepository) Add ¶
func (rep *StateRepository) Add(query repository.CreateStateDto) (uuid.UUID, error)
func (*StateRepository) Edit ¶
func (rep *StateRepository) Edit(interface{})
func (*StateRepository) GetList ¶
func (rep *StateRepository) GetList(interface{})
func (*StateRepository) Remove ¶
func (rep *StateRepository) Remove(interface{})
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository(db *sqlx.DB) *UserRepository
func (*UserRepository) Add ¶
func (rep *UserRepository) Add(query repository.CreateUserDto) (uuid.UUID, error)
func (*UserRepository) Edit ¶
func (rep *UserRepository) Edit(interface{})
func (*UserRepository) GetList ¶
func (rep *UserRepository) GetList(query repository.UserListQuery) repository.UsersDbMetaDto
func (*UserRepository) GetOne ¶
func (rep *UserRepository) GetOne(query repository.UserQuery) (repository.UserDbDto, error)
func (*UserRepository) Remove ¶
func (rep *UserRepository) Remove(interface{})
func (*UserRepository) SetNewStateUUID ¶
Click to show internal directories.
Click to hide internal directories.