controller

package
v0.0.0-...-0cfb223 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArmorStatDELETE

func ArmorStatDELETE(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

ArmorStatDELETE handles a DELETE request on a armor entity endpoint

func ArmorStatGET

func ArmorStatGET(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

ArmorStatGET handles a GET request on a ammunition statistics armor entity endpoint

func ArmorStatPOST

func ArmorStatPOST(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

ArmorStatPOST handles a POST request on the armor root endpoint

func ArmorStatPUT

func ArmorStatPUT(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

ArmorStatPUT handles a PUT request on a armor entity endpoint

func ArmorStatsGET

func ArmorStatsGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

ArmorStatsGET handles a GET request on the distance root endpoint

func DistanceStatDELETE

func DistanceStatDELETE(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

DistanceStatDELETE handles a DELETE request on a distance entity endpoint

func DistanceStatGET

func DistanceStatGET(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

DistanceStatGET handles a GET request on a ammunition statistics distance entity endpoint

func DistanceStatPOST

func DistanceStatPOST(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

DistanceStatPOST handles a POST request on the distance root endpoint

func DistanceStatPUT

func DistanceStatPUT(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DistanceStatPUT handles a PUT request on a distance entity endpoint

func DistanceStatsGET

func DistanceStatsGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

DistanceStatsGET handles a GET request on the distance root endpoint

func FeatureDELETE

func FeatureDELETE(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

FeatureDELETE handles a DELETE request on a feature entity endpoint

func FeatureGET

func FeatureGET(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

FeatureGET handles a GET request on a feature entity endpoint

func FeatureGroupDELETE

func FeatureGroupDELETE(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

FeatureGroupDELETE handles a DELETE request on a feature group entity endpoint

func FeatureGroupGET

func FeatureGroupGET(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

FeatureGroupGET handles a GET request on a feature group entity endpoint

func FeatureGroupPOST

func FeatureGroupPOST(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FeatureGroupPOST handles a POST request on the featuregroup root endpoint

func FeatureGroupPUT

func FeatureGroupPUT(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FeatureGroupPUT handles a PUT request on a feature group entity endpoint

func FeatureGroupsGET

func FeatureGroupsGET(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FeatureGroupsGET handles a GET request on the feature group root endpoint

func FeaturePOST

func FeaturePOST(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FeaturePOST handles a POST request on the feature root endpoint

func FeaturePUT

func FeaturePUT(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FeaturePUT handles a PUT request on a feature entity endpoint

func FeaturesGET

func FeaturesGET(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FeaturesGET handles a GET request on the feature root endpoint

func HealthGET

func HealthGET(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)

HealthGET handles a GET request on the health endpoint

func IndexGET

func IndexGET(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)

IndexGET handles a GET request on the root endpoint

func ItemDELETE

func ItemDELETE(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

ItemDELETE handles a DELETE request on a item entity endpoint

func ItemGET

func ItemGET(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

ItemGET handles a GET request on a item entity endpoint

func ItemIndexGET

func ItemIndexGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

ItemIndexGET handles a GET request on the item root endpoint

func ItemPOST

func ItemPOST(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

ItemPOST handles a POST request on a item kind endpoint

func ItemPUT

func ItemPUT(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

ItemPUT handles a PUT request on a item entity endpoint

func ItemsGET

func ItemsGET(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

ItemsGET handles a GET request on a item kind endpoint

func LocationDELETE

func LocationDELETE(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

LocationDELETE handles a DELETE request on a location entity endpoint

func LocationGET

func LocationGET(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

LocationGET handles a GET request on a location entity endpoint

func LocationPOST

func LocationPOST(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

LocationPOST handles a POST request on the location root endpoint

func LocationPUT

func LocationPUT(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

LocationPUT handles a PUT request on a location entity endpoint

func LocationsGET

func LocationsGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

LocationsGET handles a GET request on the location root endpoint

func ModuleDELETE

func ModuleDELETE(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

ModuleDELETE handles a DELETE request on a module entity endpoint

func ModuleGET

func ModuleGET(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

ModuleGET handles a GET request on a module entity endpoint

func ModulePOST

func ModulePOST(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

ModulePOST handles a POST request on the module root endpoint

func ModulePUT

func ModulePUT(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

ModulePUT handles a PUT request on a module entity endpoint

func ModulesGET

func ModulesGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

ModulesGET handles a GET request on the module root endpoint

func ProductionDELETE

func ProductionDELETE(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

ProductionDELETE handles a DELETE request on a production entity endpoint

func ProductionGET

func ProductionGET(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

ProductionGET handles a GET request on a production entity endpoint

func ProductionPOST

func ProductionPOST(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

ProductionPOST handles a POST request on the production root endpoint

func ProductionPUT

func ProductionPUT(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

ProductionPUT handles a PUT request on a production entity endpoint

func ProductionsGET

func ProductionsGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

ProductionsGET handles a GET request on the production root endpoint

func StatusNotFoundHandler

func StatusNotFoundHandler() http.Handler

StatusNotFoundHandler returns a HTTP 404 handler

func TokenGET

func TokenGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

TokenGET handles a GET request on the token endpoint

func TokenPOST

func TokenPOST(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

TokenPOST handles a POST request on the token endpoint

func UserDELETE

func UserDELETE(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

UserDELETE handles a DELETE request on a user entity endpoint

func UserGET

func UserGET(w http.ResponseWriter, _ *http.Request, ps httprouter.Params)

UserGET handles a GET request on a user entity endpoint

func UserPOST

func UserPOST(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

UserPOST handles a POST request on the user root endpoint

func UserPUT

func UserPUT(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UserPUT handles a PUT request on a user entity endpoint

func UsersGET

func UsersGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

UsersGET handles a GET request on the user root endpoint

Types

type Status

type Status struct {
	Code    int
	Message string
}

Status is used for status responses

func StatusBadRequest

func StatusBadRequest(msg string) *Status

StatusBadRequest fills Status with an HTTP 400 status and message

func StatusCreated

func StatusCreated(msg string) *Status

StatusCreated fills Status with an HTTP 201 status and message

func StatusForbidden

func StatusForbidden(msg string) *Status

StatusForbidden fills Status with an HTTP 403 status and message

func StatusInternalServerError

func StatusInternalServerError(msg string) *Status

StatusInternalServerError fills Status with an HTTP 500 status and message

func StatusNotFound

func StatusNotFound(msg string) *Status

StatusNotFound fills Status with an HTTP 404 status and message

func StatusOK

func StatusOK(msg string) *Status

StatusOK fills Status with an HTTP 200 status and message

func StatusUnauthorized

func StatusUnauthorized(msg string) *Status

StatusUnauthorized fills Status with an HTTP 401 status and message

func StatusUnprocessableEntity

func StatusUnprocessableEntity(msg string) *Status

StatusUnprocessableEntity fills Status with an HTTP 422 status and message

func StatusUnsupportedMediaType

func StatusUnsupportedMediaType(msg string) *Status

StatusUnsupportedMediaType fills Status with an HTTP 415 status and message

func (*Status) Render

func (s *Status) Render(w http.ResponseWriter)

Render renders Status

Jump to

Keyboard shortcuts

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