handler

package
v0.0.0-...-82fd2f4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespondJson

func RespondJson(w http.ResponseWriter, body any, statusCode int)

Write response to http.ResponseWriter

Types

type AddVocabulary

type AddVocabulary struct {
	Store     *store.VocabularyStore
	Validator *validator.Validate
}

func (*AddVocabulary) ServeHTTP

func (av *AddVocabulary) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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