db

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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 NewFSEntryDB(db fsentry.IFSEntry) *DB

func (*DB) CardCreate

func (s *DB) CardCreate(gameID, collectionID, deckID, name, description, image string, variables map[string]string, count int) (*entity.CardInfo, error)

func (*DB) CardDelete

func (s *DB) CardDelete(gameID, collectionID, deckID string, cardID int64) error

func (*DB) CardGet

func (s *DB) CardGet(gameID, collectionID, deckID string, cardID int64) (*entity.CardInfo, error)

func (*DB) CardList

func (s *DB) CardList(gameID, collectionID, deckID string) ([]*entity.CardInfo, error)

func (*DB) CardUpdate

func (s *DB) CardUpdate(gameID, collectionID, deckID string, cardID int64, name, description, image string, variables map[string]string, count int) (*entity.CardInfo, error)

func (*DB) CollectionCreate

func (s *DB) CollectionCreate(gameID, name, description, image string) (*entity.CollectionInfo, error)

func (*DB) CollectionDelete

func (s *DB) CollectionDelete(gameID, name string) error

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 (s *DB) DeckCreate(gameID, collectionID, name, description, image string) (*entity.DeckInfo, error)

func (*DB) DeckDelete

func (s *DB) DeckDelete(gameID, collectionID, name string) error

func (*DB) DeckGet

func (s *DB) DeckGet(gameID, collectionID, name string) (*entity.DeckInfo, error)

func (*DB) DeckList

func (s *DB) DeckList(gameID, collectionID string) ([]*entity.DeckInfo, error)

func (*DB) DeckMove

func (s *DB) DeckMove(gameID, collectionID, oldName, newName string) (*entity.DeckInfo, error)

func (*DB) DeckUpdate

func (s *DB) DeckUpdate(gameID, collectionID, name, description, image string) (*entity.DeckInfo, error)

func (*DB) Drop

func (s *DB) Drop() error

func (*DB) GameCreate

func (s *DB) GameCreate(name, description, image string) (*entity.GameInfo, error)

func (*DB) GameDelete

func (s *DB) GameDelete(name string) error

func (*DB) GameDuplicate

func (s *DB) GameDuplicate(srcName, dstName string) (*entity.GameInfo, error)

func (*DB) GameGet

func (s *DB) GameGet(name string) (*entity.GameInfo, error)

func (*DB) GameList

func (s *DB) GameList() ([]*entity.GameInfo, error)

func (*DB) GameMove

func (s *DB) GameMove(oldName, newName string) (*entity.GameInfo, error)

func (*DB) GameUpdate

func (s *DB) GameUpdate(name, description, image string) (*entity.GameInfo, error)

func (*DB) GameUpdateInfo

func (s *DB) GameUpdateInfo(name, newName string) error

func (*DB) Init

func (s *DB) Init() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL