appctx

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

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoError uint = 0

	/*
		Will return 1, if:
		- partner try to login but its status is inactive
		- customer try to login but its status is inactive
		- any attempts to access all endpoints that require either customer or partner level
	*/
	UserInactive uint = 1

	/*
		Will return 2, if:
		- partner try to change status order to in progress from inactive customer
		- any nitrogen related endpoints in partner app for inactive customer
	*/
	CustomerInactive uint = 2

	/*
		Will return 2, if:
		- token is expired
	*/
	TokenExpired uint = 3

	/*
		Will return 10, if:
		- There is an error after query to database
	*/
	ErrorQuery uint = 10
)

Variables

This section is empty.

Functions

func ErrorText

func ErrorText(code uint) string

ErrorText returns a text for the error code. It returns the empty string if the code is unknown.

Types

This section is empty.

Jump to

Keyboard shortcuts

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