Documentation ¶
Index ¶
- Variables
- func Encode(userConnectIdStr string, data []byte) []byte
- func GetError(message *BurstMessage) error
- func GetServerExportPort(message *BurstMessage) (int32, error)
- func GetUserConnectId(message *BurstMessage) (string, error)
- type BurstMessage
- func (*BurstMessage) Descriptor() ([]byte, []int)
- func (m *BurstMessage) GetData() []byte
- func (m *BurstMessage) GetHeader() map[int32]*any.Any
- func (m *BurstMessage) GetType() BurstType
- func (*BurstMessage) ProtoMessage()
- func (m *BurstMessage) Reset()
- func (m *BurstMessage) String() string
- func (m *BurstMessage) XXX_DiscardUnknown()
- func (m *BurstMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BurstMessage) XXX_Merge(src proto.Message)
- func (m *BurstMessage) XXX_Size() int
- func (m *BurstMessage) XXX_Unmarshal(b []byte) error
- type BurstType
- type Headers
- type Ports
- func (*Ports) Descriptor() ([]byte, []int)
- func (m *Ports) GetPorts() map[int32]int32
- func (*Ports) ProtoMessage()
- func (m *Ports) Reset()
- func (m *Ports) String() string
- func (m *Ports) XXX_DiscardUnknown()
- func (m *Ports) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ports) XXX_Merge(src proto.Message)
- func (m *Ports) XXX_Size() int
- func (m *Ports) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var BurstType_name = map[int32]string{
0: "INIT",
1: "CLOSE",
2: "USER_CONNECT",
3: "FORWARD_DATA",
}
View Source
var BurstType_value = map[string]int32{
"INIT": 0,
"CLOSE": 1,
"USER_CONNECT": 2,
"FORWARD_DATA": 3,
}
View Source
var Headers_name = map[int32]string{
0: "ERROR",
1: "PORTS",
2: "SERVER_EXPORT_PORT",
3: "USER_CONNECT_ID",
}
View Source
var Headers_value = map[string]int32{
"ERROR": 0,
"PORTS": 1,
"SERVER_EXPORT_PORT": 2,
"USER_CONNECT_ID": 3,
}
View Source
var NotFound = errors.New("not found")
Functions ¶
func GetError ¶
func GetError(message *BurstMessage) error
func GetServerExportPort ¶
func GetServerExportPort(message *BurstMessage) (int32, error)
func GetUserConnectId ¶
func GetUserConnectId(message *BurstMessage) (string, error)
Types ¶
type BurstMessage ¶
type BurstMessage struct { Type BurstType `protobuf:"varint,1,opt,name=type,proto3,enum=protocol.BurstType" json:"type,omitempty"` Header map[int32]*any.Any `` /* 154-byte string literal not displayed */ Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func Decode ¶
func Decode(data []byte) (*BurstMessage, error)
func (*BurstMessage) Descriptor ¶
func (*BurstMessage) Descriptor() ([]byte, []int)
func (*BurstMessage) GetData ¶
func (m *BurstMessage) GetData() []byte
func (*BurstMessage) GetType ¶
func (m *BurstMessage) GetType() BurstType
func (*BurstMessage) ProtoMessage ¶
func (*BurstMessage) ProtoMessage()
func (*BurstMessage) Reset ¶
func (m *BurstMessage) Reset()
func (*BurstMessage) String ¶
func (m *BurstMessage) String() string
func (*BurstMessage) XXX_DiscardUnknown ¶
func (m *BurstMessage) XXX_DiscardUnknown()
func (*BurstMessage) XXX_Marshal ¶
func (m *BurstMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BurstMessage) XXX_Merge ¶
func (m *BurstMessage) XXX_Merge(src proto.Message)
func (*BurstMessage) XXX_Size ¶
func (m *BurstMessage) XXX_Size() int
func (*BurstMessage) XXX_Unmarshal ¶
func (m *BurstMessage) XXX_Unmarshal(b []byte) error
type Ports ¶
type Ports struct { Ports map[int32]int32 `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func GetPorts ¶
func GetPorts(message *BurstMessage) (*Ports, error)
func (*Ports) Descriptor ¶
func (*Ports) ProtoMessage ¶
func (*Ports) ProtoMessage()
func (*Ports) XXX_DiscardUnknown ¶
func (m *Ports) XXX_DiscardUnknown()
func (*Ports) XXX_Marshal ¶
func (*Ports) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.