define

package
v0.0.0-...-de535d1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2015 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KAFKA_MESSAGE_MULTI     = "multiple"  //multi-userid push
	KAFKA_MESSAGE_BROADCAST = "broadcast" //broadcast push
)

Kafka message type Commands

View Source
const (
	// handshake
	OP_HANDSHAKE       = int32(0)
	OP_HANDSHAKE_REPLY = int32(1)
	// heartbeat
	OP_HEARTBEAT       = int32(2)
	OP_HEARTBEAT_REPLY = int32(3)
	// send text messgae
	OP_SEND_SMS       = int32(4)
	OP_SEND_SMS_REPLY = int32(5)
	// kick user
	OP_DISCONNECT_REPLY = int32(6)
	// auth user
	OP_AUTH       = int32(7)
	OP_AUTH_REPLY = int32(8)
	// handshake with sid
	OP_HANDSHAKE_SID       = int32(9)
	OP_HANDSHAKE_SID_REPLY = int32(10)

	// for test
	OP_TEST       = int32(254)
	OP_TEST_REPLY = int32(255)
)
View Source
const (
	NoRoom = -1
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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