errorpb

package
v0.0.0-...-ae8612d Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package errorpb is a generated protocol buffer package.

It is generated from these files:

github.com/molon/gomsg/pb/errorpb/code.proto

It has these top-level messages:

Detail

Index

Constants

This section is empty.

Variables

View Source
var Code_name = map[int32]string{
	0: "NONE",
	1: "UNKNOWN",
	2: "NO_ACK",
	3: "TOO_MANY_MSGS_TO_BE_SENT",
	4: "SESSION_NOT_FOUND",
	5: "NEW_SESSION_ON_SAME_PLATFORM",
}
View Source
var Code_value = map[string]int32{
	"NONE":                         0,
	"UNKNOWN":                      1,
	"NO_ACK":                       2,
	"TOO_MANY_MSGS_TO_BE_SENT":     3,
	"SESSION_NOT_FOUND":            4,
	"NEW_SESSION_ON_SAME_PLATFORM": 5,
}

Functions

This section is empty.

Types

type Code

type Code int32
const (
	// 没错
	Code_NONE Code = 0
	// 未知
	Code_UNKNOWN Code = 1
	// 限时内没有ack
	Code_NO_ACK Code = 2
	// 发送消息堆积
	Code_TOO_MANY_MSGS_TO_BE_SENT Code = 3
	// 不存在的会话
	Code_SESSION_NOT_FOUND Code = 4
	// 相同平台的重复会话
	Code_NEW_SESSION_ON_SAME_PLATFORM Code = 5
)

func (Code) EnumDescriptor

func (Code) EnumDescriptor() ([]byte, []int)

func (Code) String

func (x Code) String() string

type Detail

type Detail struct {
	Code Code `protobuf:"varint,1,opt,name=code,enum=errorpb.Code" json:"code,omitempty"`
}

func (*Detail) Descriptor

func (*Detail) Descriptor() ([]byte, []int)

func (*Detail) GetCode

func (m *Detail) GetCode() Code

func (*Detail) ProtoMessage

func (*Detail) ProtoMessage()

func (*Detail) Reset

func (m *Detail) Reset()

func (*Detail) String

func (m *Detail) String() string

Jump to

Keyboard shortcuts

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