Documentation ¶
Index ¶
- type DB
- func (s *DB) CardCreate(ctx context.Context, ...) (*entity.CardInfo, error)
- func (s *DB) CardDelete(ctx context.Context, gameID, collectionID, deckID string, cardID int64) error
- func (s *DB) CardGet(ctx context.Context, gameID, collectionID, deckID string, cardID int64) (context.Context, *entity.CardInfo, error)
- func (s *DB) CardImageCreate(ctx context.Context, gameID, collectionID, deckID string, cardID int64, ...) error
- func (s *DB) CardImageDelete(ctx context.Context, gameID, collectionID, deckID string, cardID int64) error
- func (s *DB) CardImageGet(ctx context.Context, gameID, collectionID, deckID string, cardID int64) ([]byte, error)
- func (s *DB) CardList(ctx context.Context, gameID, collectionID, deckID string) ([]*entity.CardInfo, error)
- func (s *DB) CardUpdate(ctx context.Context, gameID, collectionID, deckID string, cardID int64, ...) (*entity.CardInfo, error)
- func (s *DB) CollectionCreate(ctx context.Context, gameID, name, description, image string) (*entity.CollectionInfo, error)
- func (s *DB) CollectionDelete(ctx context.Context, gameID, name string) error
- func (s *DB) CollectionGet(ctx context.Context, gameID, name string) (context.Context, *entity.CollectionInfo, error)
- func (s *DB) CollectionImageCreate(ctx context.Context, gameID, collectionID string, data []byte) error
- func (s *DB) CollectionImageDelete(ctx context.Context, gameID, collectionID string) error
- func (s *DB) CollectionImageGet(ctx context.Context, gameID, collectionID string) ([]byte, error)
- func (s *DB) CollectionList(ctx context.Context, gameID string) ([]*entity.CollectionInfo, error)
- func (s *DB) CollectionMove(ctx context.Context, gameID, oldName, newName string) (*entity.CollectionInfo, error)
- func (s *DB) CollectionUpdate(ctx context.Context, gameID, name, description, image string) (*entity.CollectionInfo, error)
- func (s *DB) DeckCreate(ctx context.Context, gameID, collectionID, name, description, image string) (*entity.DeckInfo, error)
- func (s *DB) DeckDelete(ctx context.Context, gameID, collectionID, name string) error
- func (s *DB) DeckGet(ctx context.Context, gameID, collectionID, name string) (context.Context, *entity.DeckInfo, error)
- func (s *DB) DeckImageCreate(ctx context.Context, gameID, collectionID, deckID string, data []byte) error
- func (s *DB) DeckImageDelete(ctx context.Context, gameID, collectionID, deckID string) error
- func (s *DB) DeckImageGet(ctx context.Context, gameID, collectionID, deckID string) ([]byte, error)
- func (s *DB) DeckList(ctx context.Context, gameID, collectionID string) ([]*entity.DeckInfo, error)
- func (s *DB) DeckMove(ctx context.Context, gameID, collectionID, oldName, newName string) (*entity.DeckInfo, error)
- func (s *DB) DeckUpdate(ctx context.Context, gameID, collectionID, name, description, image string) (*entity.DeckInfo, error)
- func (s *DB) Drop() error
- func (s *DB) GameCreate(_ context.Context, name, description, image string) (*entity.GameInfo, error)
- func (s *DB) GameDelete(_ context.Context, name string) error
- func (s *DB) GameDuplicate(_ context.Context, srcName, dstName string) (*entity.GameInfo, error)
- func (s *DB) GameGet(ctx context.Context, name string) (context.Context, *entity.GameInfo, error)
- func (s *DB) GameImageCreate(ctx context.Context, gameID string, data []byte) error
- func (s *DB) GameImageDelete(ctx context.Context, gameID string) error
- func (s *DB) GameImageGet(ctx context.Context, gameID string) ([]byte, error)
- func (s *DB) GameList(ctx context.Context) ([]*entity.GameInfo, error)
- func (s *DB) GameMove(_ context.Context, oldName, newName string) (*entity.GameInfo, error)
- func (s *DB) GameUpdate(_ context.Context, name, description, image string) (*entity.GameInfo, error)
- func (s *DB) GameUpdateInfo(_ context.Context, name, newName string) error
- func (s *DB) Init() error
- func (s *DB) SettingsGet() (*entity.SettingInfo, error)
- func (s *DB) SettingsSet(data *entity.SettingInfo) 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) CardImageCreate ¶ added in v0.1.0
func (*DB) CardImageDelete ¶ added in v0.1.0
func (*DB) CardImageGet ¶ added in v0.1.0
func (*DB) CardUpdate ¶
func (*DB) CollectionCreate ¶
func (*DB) CollectionDelete ¶
func (*DB) CollectionGet ¶
func (*DB) CollectionImageCreate ¶ added in v0.1.0
func (*DB) CollectionImageDelete ¶ added in v0.1.0
func (*DB) CollectionImageGet ¶ added in v0.1.0
func (*DB) CollectionList ¶
func (*DB) CollectionMove ¶
func (*DB) CollectionUpdate ¶
func (*DB) DeckCreate ¶
func (*DB) DeckDelete ¶
func (*DB) DeckImageCreate ¶ added in v0.1.0
func (*DB) DeckImageDelete ¶ added in v0.1.0
func (*DB) DeckImageGet ¶ added in v0.1.0
func (*DB) DeckUpdate ¶
func (*DB) GameCreate ¶
func (*DB) GameDuplicate ¶
func (*DB) GameImageCreate ¶ added in v0.1.0
func (*DB) GameImageDelete ¶ added in v0.1.0
func (*DB) GameImageGet ¶ added in v0.1.0
func (*DB) GameUpdate ¶
func (*DB) GameUpdateInfo ¶
func (*DB) SettingsGet ¶ added in v0.1.0
func (s *DB) SettingsGet() (*entity.SettingInfo, error)
func (*DB) SettingsSet ¶ added in v0.1.0
func (s *DB) SettingsSet(data *entity.SettingInfo) error
Click to show internal directories.
Click to hide internal directories.