Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RouterSetup ¶
func RouterSetup(firstNameFallback, lastNameFallback string) func(r chi.Router)
Types ¶
type CountResponse ¶
type CountResponse struct {
Count int `json:"count"`
}
type FactResponse ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (Handler) GetJokeByID ¶
func (h Handler) GetJokeByID(writer http.ResponseWriter, request *http.Request)
func (Handler) GetJokesCount ¶
func (h Handler) GetJokesCount(writer http.ResponseWriter, _ *http.Request)
func (Handler) GetRandomJoke ¶
func (h Handler) GetRandomJoke(writer http.ResponseWriter, request *http.Request)
Click to show internal directories.
Click to hide internal directories.