jokes

package
v0.0.0-...-6dba68b Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 8 Imported by: 0

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 FactResponse struct {
	ID         int      `json:"id,omitempty"`
	Joke       string   `json:"joke"`
	Categories []string `json:"categories"`
}

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)

Jump to

Keyboard shortcuts

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