errno

package
v0.0.0-...-20002e4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

Functions

This section is empty.

Types

type Err

type Err int64
const (
	Err_Success             Err = 10000
	Err_BadRequest          Err = 10001
	Err_GenerateTokenFail   Err = 10002
	Err_RequestServerFail   Err = 10003
	Err_BindAndValidateFail Err = 10004
	Err_ParamErr            Err = 10005
	Err_AuthorizeFail       Err = 10006
)

func ErrFromString

func ErrFromString(s string) (Err, error)

func ErrPtr

func ErrPtr(v Err) *Err

func (*Err) Scan

func (p *Err) Scan(value interface{}) (err error)

func (Err) String

func (p Err) String() string

func (*Err) Value

func (p *Err) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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