Documentation ¶
Overview ¶
Package highway is a generated protocol buffer package.
It is generated from these files:
highway.proto
It has these top-level messages:
RequestHeader ResponseHeader LoginRequest LoginResponse
Index ¶
- Variables
- type LoginRequest
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)
- func (m *LoginResponse) GetProtocol() string
- func (m *LoginResponse) GetUseProtobufMapCodec() bool
- func (m *LoginResponse) GetZipName() string
- func (*LoginResponse) ProtoMessage()
- func (m *LoginResponse) Reset()
- func (m *LoginResponse) String() string
- type MsgType
- type RequestHeader
- func (*RequestHeader) Descriptor() ([]byte, []int)
- func (m *RequestHeader) GetContext() map[string]string
- func (m *RequestHeader) GetDestMicroservice() string
- func (m *RequestHeader) GetFlags() int32
- func (m *RequestHeader) GetMsgType() MsgType
- func (m *RequestHeader) GetOperationName() string
- func (m *RequestHeader) GetSchemaID() string
- func (*RequestHeader) ProtoMessage()
- func (m *RequestHeader) Reset()
- func (m *RequestHeader) String() string
- type ResponseHeader
- func (*ResponseHeader) Descriptor() ([]byte, []int)
- func (m *ResponseHeader) GetContext() map[string]string
- func (m *ResponseHeader) GetFlags() int32
- func (m *ResponseHeader) GetReason() string
- func (m *ResponseHeader) GetStatusCode() int32
- func (*ResponseHeader) ProtoMessage()
- func (m *ResponseHeader) Reset()
- func (m *ResponseHeader) String() string
Constants ¶
This section is empty.
Variables ¶
var MsgTypeName = map[int32]string{
0: "REQUEST",
1: "LOGIN",
}
MsgTypeName is a variable of type map
var MsgTypeValue = map[string]int32{
"REQUEST": 0,
"LOGIN": 1,
}
MsgTypeValue is a variable of type map
Functions ¶
This section is empty.
Types ¶
type LoginRequest ¶
type LoginRequest struct { Protocol string `protobuf:"bytes,1,opt,name=protocol" json:"protocol,omitempty"` ZipName string `protobuf:"bytes,2,opt,name=zipName" json:"zipName,omitempty"` UseProtobufMapCodec bool `protobuf:"varint,3,opt,name=useProtobufMapCodec" json:"useProtobufMapCodec,omitempty"` }
LoginRequest is a struct used for handling login request
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
Descriptor is a method which returns file descriptor
func (*LoginRequest) GetProtocol ¶
func (m *LoginRequest) GetProtocol() string
GetProtocol which returns protocol of login request
func (*LoginRequest) GetUseProtobufMapCodec ¶
func (m *LoginRequest) GetUseProtobufMapCodec() bool
GetUseProtobufMapCodec is a method which returns Map codec
func (*LoginRequest) GetZipName ¶
func (m *LoginRequest) GetZipName() string
GetZipName is a method which returns zipname
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
ProtoMessage protocol message
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
Reset is a method which resets login request
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Protocol string `protobuf:"bytes,1,opt,name=protocol" json:"protocol,omitempty"` ZipName string `protobuf:"bytes,2,opt,name=zipName" json:"zipName,omitempty"` UseProtobufMapCodec bool `protobuf:"varint,3,opt,name=useProtobufMapCodec" json:"useProtobufMapCodec,omitempty"` }
LoginResponse is a struct which handles login response
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
Descriptor is a method which returns file descriptor
func (*LoginResponse) GetProtocol ¶
func (m *LoginResponse) GetProtocol() string
GetProtocol is a method which returns protocol
func (*LoginResponse) GetUseProtobufMapCodec ¶
func (m *LoginResponse) GetUseProtobufMapCodec() bool
GetUseProtobufMapCodec is a method which returns Map codec
func (*LoginResponse) GetZipName ¶
func (m *LoginResponse) GetZipName() string
GetZipName is a method which returns zipname
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
ProtoMessage protocol message
func (*LoginResponse) Reset ¶
func (m *LoginResponse) Reset()
Reset is a method which resets login response
func (*LoginResponse) String ¶
func (m *LoginResponse) String() string
type MsgType ¶
type MsgType int32
MsgType is a variable of type int32
constants for message request, and message login
func (MsgType) EnumDescriptor ¶
EnumDescriptor is a method
type RequestHeader ¶
type RequestHeader struct { MsgType MsgType `protobuf:"varint,2,opt,name=msgType,enum=highway.MsgType" json:"msgType,omitempty"` Flags int32 `protobuf:"varint,3,opt,name=flags" json:"flags,omitempty"` DestMicroservice string `protobuf:"bytes,1,opt,name=destMicroservice" json:"destMicroservice,omitempty"` SchemaID string `protobuf:"bytes,5,opt,name=schemaId" json:"schemaId,omitempty"` OperationName string `protobuf:"bytes,6,opt,name=operationName" json:"operationName,omitempty"` Context map[string]string `` /* 134-byte string literal not displayed */ }
RequestHeader is a struct
func (*RequestHeader) Descriptor ¶
func (*RequestHeader) Descriptor() ([]byte, []int)
Descriptor returns file descriptor
func (*RequestHeader) GetContext ¶
func (m *RequestHeader) GetContext() map[string]string
GetContext is a method which returns context
func (*RequestHeader) GetDestMicroservice ¶
func (m *RequestHeader) GetDestMicroservice() string
GetDestMicroservice returns destination microservice
func (*RequestHeader) GetFlags ¶
func (m *RequestHeader) GetFlags() int32
GetFlags is a method which returns flags
func (*RequestHeader) GetMsgType ¶
func (m *RequestHeader) GetMsgType() MsgType
GetMsgType is a method which returns message type
func (*RequestHeader) GetOperationName ¶
func (m *RequestHeader) GetOperationName() string
GetOperationName is a method which returns operation name
func (*RequestHeader) GetSchemaID ¶
func (m *RequestHeader) GetSchemaID() string
GetSchemaID is a method which returns schema ID
func (*RequestHeader) ProtoMessage ¶
func (*RequestHeader) ProtoMessage()
ProtoMessage protocol message
func (*RequestHeader) String ¶
func (m *RequestHeader) String() string
type ResponseHeader ¶
type ResponseHeader struct { Flags int32 `protobuf:"varint,5,opt,name=flags" json:"flags,omitempty"` StatusCode int32 `protobuf:"varint,1,opt,name=statusCode" json:"statusCode,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"` Context map[string]string `` /* 134-byte string literal not displayed */ }
ResponseHeader is a struct
func (*ResponseHeader) Descriptor ¶
func (*ResponseHeader) Descriptor() ([]byte, []int)
Descriptor is a method which returns file descriptor
func (*ResponseHeader) GetContext ¶
func (m *ResponseHeader) GetContext() map[string]string
GetContext is a method which returns context
func (*ResponseHeader) GetFlags ¶
func (m *ResponseHeader) GetFlags() int32
GetFlags is a method which returns flag
func (*ResponseHeader) GetReason ¶
func (m *ResponseHeader) GetReason() string
GetReason is a method which returns reason
func (*ResponseHeader) GetStatusCode ¶
func (m *ResponseHeader) GetStatusCode() int32
GetStatusCode is a method which returns status code
func (*ResponseHeader) ProtoMessage ¶
func (*ResponseHeader) ProtoMessage()
ProtoMessage protocol message
func (*ResponseHeader) Reset ¶
func (m *ResponseHeader) Reset()
Reset is a method which resets response header
func (*ResponseHeader) String ¶
func (m *ResponseHeader) String() string