deck

package
v0.0.0-...-e3cadf0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

type Endpoints struct {
	// contains filtered or unexported fields
}

func New

func New(s deck.IService, ew ioutil.ErrorWriter, logger *log.Logger) *Endpoints

func (Endpoints) AddFlashcardToDeck

func (d Endpoints) AddFlashcardToDeck(w http.ResponseWriter, r *http.Request)

AddFlashcardToDeck is a handler for the adding a card Endpoints.

func (Endpoints) AppendBacksides

func (d Endpoints) AppendBacksides(w http.ResponseWriter, r *http.Request)

POST /api/flashcards/append

func (Endpoints) DeleteDeck

func (d Endpoints) DeleteDeck(w http.ResponseWriter, r *http.Request)

DeleteDeck is a handler for the deleting a deck from user's collection Endpoints.

func (Endpoints) DeleteFlashcardFromDeck

func (d Endpoints) DeleteFlashcardFromDeck(w http.ResponseWriter, r *http.Request)

DeleteFlashcardFromDeck is a handler for the deleting a card Endpoints.

func (Endpoints) GetFlashcardById

func (d Endpoints) GetFlashcardById(w http.ResponseWriter, r *http.Request)

GetFlashcardById is a handler that takes a flashcard by id.

func (Endpoints) GetFlashcardsByDeckId

func (d Endpoints) GetFlashcardsByDeckId(w http.ResponseWriter, r *http.Request)

GetFlashcardsByDeckId is a handler for the getting cards Endpoints.

func (Endpoints) LoadDecks

func (d Endpoints) LoadDecks(w http.ResponseWriter, r *http.Request)

LoadDecks is a handler for the loading decks Endpoints.

func (Endpoints) NewDeckWithFlashcards

func (d Endpoints) NewDeckWithFlashcards(w http.ResponseWriter, r *http.Request)

NewDeckWithFlashcards is a handler for the creating a new deck Endpoints.

Jump to

Keyboard shortcuts

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