codes

package
v0.0.0-...-a02da8a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK                  gocode.Code = "OK"
	Unknown             gocode.Code = "Unknown"
	Timeout             gocode.Code = "Timeout"
	NotFound            gocode.Code = "NotFound"
	InvalidRequest      gocode.Code = "InvalidRequest"
	InternalServerError gocode.Code = "InternalServerError"

	LoginFailedPasswordWrong gocode.Code = "LoginFailedPasswordWrong"
	LoginFailedReachLimit    gocode.Code = "LoginFailedReachLimit"

	AuthorizeFailed              gocode.Code = "AuthorizeFailed"
	AuthorizeFailedInvalidTicket gocode.Code = "AuthorizeFailedInvalidTicket"
	AuthorizeFailedInvalidToken  gocode.Code = "AuthorizeFailedInvalidToken"

	UserNotFound      gocode.Code = "UserNotFound"
	UserAlreadyExists gocode.Code = "UserAlreadyExists"
)

Variables

This section is empty.

Functions

func Translate

func Translate(code gocode.Code, lang Language) string

Types

type Language

type Language string
const (
	LanguageZhCn Language = "zh_CN"
)

Jump to

Keyboard shortcuts

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