Documentation ¶
Index ¶
- type DB
- func (s *DB) CardCreate(gameID, collectionID, deckID, name, description, image string, ...) (*entity.CardInfo, error)
- func (s *DB) CardDelete(gameID, collectionID, deckID string, cardID int64) error
- func (s *DB) CardGet(gameID, collectionID, deckID string, cardID int64) (*entity.CardInfo, error)
- func (s *DB) CardList(gameID, collectionID, deckID string) ([]*entity.CardInfo, error)
- func (s *DB) CardUpdate(gameID, collectionID, deckID string, cardID int64, ...) (*entity.CardInfo, error)
- func (s *DB) CollectionCreate(gameID, name, description, image string) (*entity.CollectionInfo, error)
- func (s *DB) CollectionDelete(gameID, name string) error
- func (s *DB) CollectionGet(gameID, name string) (*entity.CollectionInfo, error)
- func (s *DB) CollectionList(gameID string) ([]*entity.CollectionInfo, error)
- func (s *DB) CollectionMove(gameID, oldName, newName string) (*entity.CollectionInfo, error)
- func (s *DB) CollectionUpdate(gameID, name, description, image string) (*entity.CollectionInfo, error)
- func (s *DB) DeckCreate(gameID, collectionID, name, description, image string) (*entity.DeckInfo, error)
- func (s *DB) DeckDelete(gameID, collectionID, name string) error
- func (s *DB) DeckGet(gameID, collectionID, name string) (*entity.DeckInfo, error)
- func (s *DB) DeckList(gameID, collectionID string) ([]*entity.DeckInfo, error)
- func (s *DB) DeckMove(gameID, collectionID, oldName, newName string) (*entity.DeckInfo, error)
- func (s *DB) DeckUpdate(gameID, collectionID, name, description, image string) (*entity.DeckInfo, error)
- func (s *DB) Drop() error
- func (s *DB) GameCreate(name, description, image string) (*entity.GameInfo, error)
- func (s *DB) GameDelete(name string) error
- func (s *DB) GameDuplicate(srcName, dstName string) (*entity.GameInfo, error)
- func (s *DB) GameGet(name string) (*entity.GameInfo, error)
- func (s *DB) GameList() ([]*entity.GameInfo, error)
- func (s *DB) GameMove(oldName, newName string) (*entity.GameInfo, error)
- func (s *DB) GameUpdate(name, description, image string) (*entity.GameInfo, error)
- func (s *DB) GameUpdateInfo(name, newName string) error
- func (s *DB) Init() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func NewFSEntryDB ¶
func (*DB) CardCreate ¶
func (*DB) CardDelete ¶
func (*DB) CardUpdate ¶
func (*DB) CollectionCreate ¶
func (s *DB) CollectionCreate(gameID, name, description, image string) (*entity.CollectionInfo, error)
func (*DB) CollectionDelete ¶
func (*DB) CollectionGet ¶
func (s *DB) CollectionGet(gameID, name string) (*entity.CollectionInfo, error)
func (*DB) CollectionList ¶
func (s *DB) CollectionList(gameID string) ([]*entity.CollectionInfo, error)
func (*DB) CollectionMove ¶
func (s *DB) CollectionMove(gameID, oldName, newName string) (*entity.CollectionInfo, error)
func (*DB) CollectionUpdate ¶
func (s *DB) CollectionUpdate(gameID, name, description, image string) (*entity.CollectionInfo, error)
func (*DB) DeckCreate ¶
func (*DB) DeckDelete ¶
func (*DB) DeckUpdate ¶
func (*DB) GameCreate ¶
func (*DB) GameDelete ¶
func (*DB) GameDuplicate ¶
func (*DB) GameUpdate ¶
func (*DB) GameUpdateInfo ¶
Click to show internal directories.
Click to hide internal directories.