models

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResult

type BaseResult struct {
	ResultRef []byte
	Err       uerrors.CodeError
}

func NewResult

func NewResult() *BaseResult

*

  • create new Result Object

func (*BaseResult) Complete

func (this *BaseResult) Complete(objref interface{})

func (*BaseResult) Fail

func (this *BaseResult) Fail(err uerrors.CodeError)

func (*BaseResult) IsSuccess

func (this *BaseResult) IsSuccess() bool

type RequestMsg

type RequestMsg struct {
	Id     string
	Params interface{}
	// contains filtered or unexported fields
}

*

  • --------------------------------- *
  • struct region
  • --------------------------------- *

*

  • service stub convert message

func ConvertRequestMsgFromReqMsg

func ConvertRequestMsgFromReqMsg(reqMsg *schema.ReqMsg) *RequestMsg

func NewRequestMsg

func NewRequestMsg() *RequestMsg

func (*RequestMsg) ApplyReqMsg

func (this *RequestMsg) ApplyReqMsg(reqmsg *schema.ReqMsg)

func (*RequestMsg) ConvertReqMsg

func (this *RequestMsg) ConvertReqMsg() *schema.ReqMsg

type ResponseMsg

type ResponseMsg struct {
	Id       string
	Response map[string]*BaseResult
}

*

  • get response id handle

func (*ResponseMsg) ApplyResMsg

func (this *ResponseMsg) ApplyResMsg(reqmsg *schema.ResMsg)

func (*ResponseMsg) ConvertResMsg

func (this *ResponseMsg) ConvertResMsg() *schema.ResMsg

Jump to

Keyboard shortcuts

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