Documentation ¶
Index ¶
- type CardBlock
- type CardSet
- type PostgresSetDao
- func (d *PostgresSetDao) Count() (int, error)
- func (d *PostgresSetDao) CreateBlock(block string) (*CardBlock, error)
- func (d *PostgresSetDao) CreateCardSet(set *CardSet) error
- func (d *PostgresSetDao) CreateTranslation(setCode string, t *Translation) error
- func (d *PostgresSetDao) DeleteTranslation(setCode string, lang string) error
- func (d *PostgresSetDao) FindBlockByName(blockName string) (*CardBlock, error)
- func (d *PostgresSetDao) FindCardSetByCode(code string) (*CardSet, error)
- func (d *PostgresSetDao) FindTranslations(setCode string) ([]*Translation, error)
- func (d *PostgresSetDao) UpdateCardSet(set *CardSet) error
- func (d *PostgresSetDao) UpdateTranslation(setCode string, t *Translation) error
- type Service
- type Translation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardSet ¶
type PostgresSetDao ¶
type PostgresSetDao struct {
// contains filtered or unexported fields
}
func NewDao ¶
func NewDao(db *postgres.DBConnection) *PostgresSetDao
func (*PostgresSetDao) Count ¶
func (d *PostgresSetDao) Count() (int, error)
func (*PostgresSetDao) CreateBlock ¶
func (d *PostgresSetDao) CreateBlock(block string) (*CardBlock, error)
func (*PostgresSetDao) CreateCardSet ¶
func (d *PostgresSetDao) CreateCardSet(set *CardSet) error
func (*PostgresSetDao) CreateTranslation ¶
func (d *PostgresSetDao) CreateTranslation(setCode string, t *Translation) error
func (*PostgresSetDao) DeleteTranslation ¶
func (d *PostgresSetDao) DeleteTranslation(setCode string, lang string) error
func (*PostgresSetDao) FindBlockByName ¶
func (d *PostgresSetDao) FindBlockByName(blockName string) (*CardBlock, error)
func (*PostgresSetDao) FindCardSetByCode ¶
func (d *PostgresSetDao) FindCardSetByCode(code string) (*CardSet, error)
func (*PostgresSetDao) FindTranslations ¶
func (d *PostgresSetDao) FindTranslations(setCode string) ([]*Translation, error)
func (*PostgresSetDao) UpdateCardSet ¶
func (d *PostgresSetDao) UpdateCardSet(set *CardSet) error
func (*PostgresSetDao) UpdateTranslation ¶
func (d *PostgresSetDao) UpdateTranslation(setCode string, t *Translation) error
type Service ¶
func NewService ¶
func NewService(dao *PostgresSetDao) Service
type Translation ¶
Click to show internal directories.
Click to hide internal directories.