Documentation ¶
Index ¶
- func EstablishSKCDeckAPIDBConn()
- type SKCDeckAPIDAO
- type SKCDeckAPIDAOImplementation
- func (dbInterface SKCDeckAPIDAOImplementation) GetDeckList(ctx context.Context, deckID string) (*model.DeckList, *model.APIError)
- func (dbInterface SKCDeckAPIDAOImplementation) GetDecksThatFeatureCards(ctx context.Context, cardIDs []string) (*[]model.DeckList, *model.APIError)
- func (dbInterface SKCDeckAPIDAOImplementation) GetSKCDeckAPIDBVersion(ctx context.Context) (string, error)
- func (dbInterface SKCDeckAPIDAOImplementation) InsertDeckList(ctx context.Context, deckList model.DeckList) *model.APIError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SKCDeckAPIDAO ¶
type SKCDeckAPIDAO interface { GetSKCDeckAPIDBVersion(context.Context) (string, error) InsertDeckList(context.Context, model.DeckList) *model.APIError GetDeckList(context.Context, string) (*model.DeckList, *model.APIError) GetDecksThatFeatureCards(context.Context, []string) (*[]model.DeckList, *model.APIError) }
interface
type SKCDeckAPIDAOImplementation ¶
type SKCDeckAPIDAOImplementation struct{}
impl
func (SKCDeckAPIDAOImplementation) GetDeckList ¶
func (SKCDeckAPIDAOImplementation) GetDecksThatFeatureCards ¶
func (SKCDeckAPIDAOImplementation) GetSKCDeckAPIDBVersion ¶
func (dbInterface SKCDeckAPIDAOImplementation) GetSKCDeckAPIDBVersion(ctx context.Context) (string, error)
Retrieves the version number of the SKC Deck API DB or throws an error if an exception occurs.
func (SKCDeckAPIDAOImplementation) InsertDeckList ¶
Click to show internal directories.
Click to hide internal directories.