errcode

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GameDoesNotExist   = 000
	PlayerDoesNotExist = 001
	PlayerAlreadyExist = 002
	BoardDoesNotExist  = 003
	InvalidRole        = 101
	InvalidState       = 102
	InvalidType        = 103
)

Different more detailed error codes. Everything below 100 is a `NotFound`.

Variables

This section is empty.

Functions

func D

func D(c *gin.Context, status int, msg ...string)

D attaches a detailed message and error to the context.

func S

func S(c *gin.Context, httpStatus int, msg ...string)

S attaches only a simple message

Types

This section is empty.

Jump to

Keyboard shortcuts

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