common

package
v0.0.0-...-978cf5a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 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_BadRequest           Err = 10001
	Err_Unauthorized         Err = 10002
	Err_ServerNotFound       Err = 10003
	Err_ServerMethodNotFound Err = 10004
	Err_RequestServerFail    Err = 10005
	Err_ServerHandleFail     Err = 10006
	Err_ResponseUnableParse  Err = 10007
	Err_DuplicateOutOrderNo  Err = 20001
)

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