Documentation ¶
Index ¶
- type App
- func (a *App) CreateBooks(w http.ResponseWriter, r *http.Request)
- func (a *App) DeleteBooks(w http.ResponseWriter, r *http.Request)
- func (a *App) GetBookByID(w http.ResponseWriter, r *http.Request)
- func (a *App) GetBooks(w http.ResponseWriter, r *http.Request)
- func (a *App) Initialize(DbHost, DbPort, DbUser, DbName, DbPassword string)
- func (a *App) Runserver()
- func (a *App) UpdateBooks(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App the main App
func (*App) CreateBooks ¶
func (a *App) CreateBooks(w http.ResponseWriter, r *http.Request)
CreateBooks creates a new book
func (*App) DeleteBooks ¶
func (a *App) DeleteBooks(w http.ResponseWriter, r *http.Request)
DeleteBooks deletes a book
func (*App) GetBookByID ¶
func (a *App) GetBookByID(w http.ResponseWriter, r *http.Request)
GetBookByID returns a single book from the id provided
func (*App) GetBooks ¶
func (a *App) GetBooks(w http.ResponseWriter, r *http.Request)
GetBooks returns all books
func (*App) Initialize ¶
Initialize initializes the server
func (*App) UpdateBooks ¶
func (a *App) UpdateBooks(w http.ResponseWriter, r *http.Request)
UpdateBooks updates a book
Click to show internal directories.
Click to hide internal directories.