highway

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var MsgTypeName = map[int32]string{
	0: "REQUEST",
	1: "LOGIN",
}

MsgTypeName is a variable of type map

View Source
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

const (
	MsgTypeRequest MsgType = 0
	MsgTypeLogin   MsgType = 1
)

constants for message request, and message login

func (MsgType) EnumDescriptor

func (MsgType) EnumDescriptor() ([]byte, []int)

EnumDescriptor is a method

func (MsgType) String

func (x MsgType) String() string

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) Reset

func (m *RequestHeader) Reset()

Reset which resets request header

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

Jump to

Keyboard shortcuts

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