res

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

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reponse

type Reponse struct {
	Name     string
	Result   *Result
	Callback *Result
}

func ReponseIntance

func ReponseIntance() *Reponse

func (*Reponse) ErrorMsg

func (this *Reponse) ErrorMsg(tag, errcode int, errmsg error)

type Request

type Request struct {
	Name        string
	RequestType int //0 短连接 1:长链接
	Func        func() *Result
}

func RequestIntance

func RequestIntance() *Request

type Result

type Result struct {
	Code  int
	Error error
	Data  string
}

func ResultInstance

func ResultInstance() *Result

func (*Result) EmptyResult

func (this *Result) EmptyResult() *Result

func (*Result) ErrorParamsResult

func (this *Result) ErrorParamsResult() *Result

func (*Result) GetResult

func (this *Result) GetResult() *Result

func (*Result) SetResult

func (this *Result) SetResult(code int, msg error, data string) *Result

func (*Result) SystemError

func (this *Result) SystemError() *Result

Jump to

Keyboard shortcuts

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