Documentation
¶
Index ¶
Constants ¶
View Source
const ( Heartbeat = iota AuthRequest AuthResponse LogoutRequest LogoutResponse KickOutRequest KickOutResponse C2CMsgR C2CMsgA C2CMsgN C2CAckR C2CAckA C2CAckN C2GSendRequest C2GSendResponse C2GPushRequest C2GPushResponse C2SPullMsgRequest C2SPullMsgResponse )
View Source
const (
CurVersion = 1
)
Variables ¶
View Source
var ( ErrIDAlreadyExists = errors.New("id already exists") ErrMsgAlreadyExists = errors.New("msg already exists") ErrProtobufDataTooShort = errors.New("protobuf data too short") ErrIncompatibleVersion = errors.New("incompatible version") )
View Source
var File_test_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func NewProcessor() *Processor
func (*Processor) SetByteOrder ¶
type RawMsg ¶
type Test ¶
type Test struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Age uint32 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"`
// contains filtered or unexported fields
}
func (*Test) Descriptor
deprecated
func (*Test) ProtoMessage ¶
func (*Test) ProtoMessage()
func (*Test) ProtoReflect ¶
func (x *Test) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.