db

package
v0.0.0-...-6528c8c Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EstablishSKCDeckAPIDBConn

func EstablishSKCDeckAPIDBConn()

connects to Deck API database

Types

type SKCDeckAPIDAO

type SKCDeckAPIDAO interface {
	GetSKCDeckAPIDBVersion() (string, error)

	InsertDeckList(deckList model.DeckList) *model.APIError
	GetDeckList(deckID string) (*model.DeckList, *model.APIError)
	GetDecksThatFeatureCards([]string) (*[]model.DeckList, *model.APIError)
}

interface

type SKCDeckAPIDAOImplementation

type SKCDeckAPIDAOImplementation struct{}

impl

func (SKCDeckAPIDAOImplementation) GetDeckList

func (dbInterface SKCDeckAPIDAOImplementation) GetDeckList(deckID string) (*model.DeckList, *model.APIError)

func (SKCDeckAPIDAOImplementation) GetDecksThatFeatureCards

func (dbInterface SKCDeckAPIDAOImplementation) GetDecksThatFeatureCards(cardIDs []string) (*[]model.DeckList, *model.APIError)

func (SKCDeckAPIDAOImplementation) GetSKCDeckAPIDBVersion

func (dbInterface SKCDeckAPIDAOImplementation) GetSKCDeckAPIDBVersion() (string, error)

Retrieves the version number of the SKC Deck API DB or throws an error if an exception occurs.

func (SKCDeckAPIDAOImplementation) InsertDeckList

func (dbInterface SKCDeckAPIDAOImplementation) InsertDeckList(deckList model.DeckList) *model.APIError

Jump to

Keyboard shortcuts

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