protocol

package
v0.0.0-...-9b5a675 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 0 Imported by: 17

Documentation

Index

Constants

View Source
const (
	BINARY_VERSION_MASK = 0xffff0000
	BINARY_VERSION_1    = 0x80010000

	COMPACT_PROTOCOL_ID      = 0x082
	COMPACT_VERSION          = 0x01
	COMPACT_VERSON_BE        = 0x02
	COMPACT_VERSION_MASK     = 0x1f
	COMPACT_TYPE_BITS        = 0x07
	COMPACT_TYPE_SHIFT_AMOUT = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldId

type FieldId int16

type Flusher

type Flusher interface {
	Flush() error
}

type MessageHeader

type MessageHeader struct {
	MessageName string
	MessageType TMessageType
	SeqId       SeqId
}

type SeqId

type SeqId int32

type TMessageType

type TMessageType int32
const (
	MessgeTypeInvalid    TMessageType = 0
	MessageTypeCall      TMessageType = 1
	MessageTypeReply     TMessageType = 2
	MessageTypeException TMessageType = 3
	MessageTypeOneWay    TMessageType = 4
)

type TType

type TType byte

Type constants in the Thrift protocol

const (
	TypeStop   TType = 0
	TypeVoid   TType = 1
	TypeBool   TType = 2
	TypeByte   TType = 3
	TypeI08    TType = 3
	TypeDouble TType = 4
	TypeI16    TType = 6
	TypeI32    TType = 8
	TypeI64    TType = 10
	TypeString TType = 11
	TypeUTF7   TType = 11
	TypeStruct TType = 12
	TypeMap    TType = 13
	TypeSet    TType = 14
	TypeList   TType = 15
	TypeUTF8   TType = 16
	TypeUTF16  TType = 17
)

func (TType) String

func (p TType) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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