handlers

package
v0.0.0-...-7da0780 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

This code is part of handlers package

This code is part of handlers package

Index

Constants

This section is empty.

Variables

View Source
var ErrorMethodNotAllowed = "method not allowed"

create a error message variable

Functions

func CreatePlayer

this function will be called when the method type is "POST"

func DeletePlayer

this function will be called when the method type is "DELETE"

func GetPlayer

this function will be called when the method type is "GET"

func Unhandled

func Unhandled() (*events.APIGatewayProxyResponse, error)

Function that return a Method not allowed error message for those unhandled method types.

func UpdatePlayer

this function will be called when the method type is "PUT"

Types

type ErrorBody

type ErrorBody struct {
	ErrorMsg *string `json:"error,omitempty"`
}

ErrorBody represents the structure of the error response body.

Jump to

Keyboard shortcuts

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