Documentation ¶
Index ¶
- type Endpoints
- func (d Endpoints) AddFlashcardToDeck(w http.ResponseWriter, r *http.Request)
- func (d Endpoints) AppendBacksides(w http.ResponseWriter, r *http.Request)
- func (d Endpoints) DeleteDeck(w http.ResponseWriter, r *http.Request)
- func (d Endpoints) DeleteFlashcardFromDeck(w http.ResponseWriter, r *http.Request)
- func (d Endpoints) GetFlashcardById(w http.ResponseWriter, r *http.Request)
- func (d Endpoints) GetFlashcardsByDeckId(w http.ResponseWriter, r *http.Request)
- func (d Endpoints) LoadDecks(w http.ResponseWriter, r *http.Request)
- func (d Endpoints) NewDeckWithFlashcards(w http.ResponseWriter, r *http.Request)
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 (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.
Click to show internal directories.
Click to hide internal directories.