errno

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: GPL-3.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 = 0
	Err_NoRoute            Err = 1
	Err_NoMethod           Err = 2
	Err_BadRequest         Err = 10000
	Err_ParamsErr          Err = 10001
	Err_AuthorizeFail      Err = 10002
	Err_TooManyRequest     Err = 10003
	Err_ServiceErr         Err = 20000
	Err_RPCUserSrvErr      Err = 30000
	Err_UserSrvErr         Err = 30001
	Err_RPCBlobSrvErr      Err = 40000
	Err_BlobSrvErr         Err = 40001
	Err_RPCCarSrvErr       Err = 50000
	Err_CarSrvErr          Err = 50001
	Err_RPCProfileSrvErr   Err = 60000
	Err_ProfileSrvErr      Err = 60001
	Err_RPCTripSrvErr      Err = 70000
	Err_TripSrvErr         Err = 70001
	Err_RecordNotFound     Err = 80000
	Err_RecordAlreadyExist Err = 80001
	Err_DirtyData          Err = 80003
)

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