packet

package
v0.0.0-...-25da3cc Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RpcReply

type RpcReply struct {
	RetCode int
	RetMsg  string
	Message interface{}
}

func CreateRpcReply

func CreateRpcReply(retCode int, retMsg string, message interface{}) RpcReply

func FailedReply

func FailedReply(retCode int, retMsg string) RpcReply

func SuccessRpcReply

func SuccessRpcReply(message interface{}) RpcReply

func (*RpcReply) FailureMessage

func (r *RpcReply) FailureMessage() string

func (*RpcReply) IsSuccess

func (r *RpcReply) IsSuccess() bool

Jump to

Keyboard shortcuts

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