Files
go-common/app/service/main/broadcast/model/operation.go
2019-04-22 18:49:16 +08:00

55 lines
1.2 KiB
Go

package model
const (
// OpHandshake handshake
OpHandshake = int32(0)
// OpHandshakeReply handshake reply
OpHandshakeReply = int32(1)
// OpHeartbeat heartbeat
OpHeartbeat = int32(2)
// OpHeartbeatReply heartbeat reply
OpHeartbeatReply = int32(3)
// OpSendMsg send message.
OpSendMsg = int32(4)
// OpSendMsgReply send message reply
OpSendMsgReply = int32(5)
// OpDisconnectReply disconnect reply
OpDisconnectReply = int32(6)
// OpAuth auth connnect
OpAuth = int32(7)
// OpAuthReply auth connect reply
OpAuthReply = int32(8)
// OpRaw raw message
OpRaw = int32(9)
// OpProtoReady proto ready
OpProtoReady = int32(10)
// OpProtoFinish proto finish
OpProtoFinish = int32(11)
// OpChangeRoom change room
OpChangeRoom = int32(12)
// OpChangeRoomReply change room reply
OpChangeRoomReply = int32(13)
// OpRegister register operation
OpRegister = int32(14)
// OpRegisterReply register operation
OpRegisterReply = int32(15)
// OpUnregister unregister operation
OpUnregister = int32(16)
// OpUnregisterReply unregister operation reply
OpUnregisterReply = int32(17)
// MinBusinessOp min business operation
MinBusinessOp = 1000
// MaxBusinessOp max business operation
MaxBusinessOp = 10000
)