Documentation
¶
Index ¶
- Variables
- type Message
- type Message_MessageType
- func (Message_MessageType) Descriptor() protoreflect.EnumDescriptor
- func (x Message_MessageType) Enum() *Message_MessageType
- func (Message_MessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Message_MessageType) Number() protoreflect.EnumNumber
- func (x Message_MessageType) String() string
- func (Message_MessageType) Type() protoreflect.EnumType
- type Publish
- type Register
- type Reply
- type Reply_Error
- func (*Reply_Error) Descriptor() ([]byte, []int)deprecated
- func (x *Reply_Error) GetType() Reply_Error_Type
- func (x *Reply_Error) GetWhat() string
- func (*Reply_Error) ProtoMessage()
- func (x *Reply_Error) ProtoReflect() protoreflect.Message
- func (x *Reply_Error) Reset()
- func (x *Reply_Error) String() string
- type Reply_Error_Type
- func (Reply_Error_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Reply_Error_Type) Enum() *Reply_Error_Type
- func (Reply_Error_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Reply_Error_Type) Number() protoreflect.EnumNumber
- func (x Reply_Error_Type) String() string
- func (Reply_Error_Type) Type() protoreflect.EnumType
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetData() []byte
- func (x *Request) GetId() uint64
- func (x *Request) GetMethod() string
- func (x *Request) GetServiceIdentification() string
- func (x *Request) GetServiceName() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Subscribe
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Message_MessageType_name = map[int32]string{ 0: "Register", 1: "Request", 2: "Reply", 3: "Subscribe", 4: "Publish", } Message_MessageType_value = map[string]int32{ "Register": 0, "Request": 1, "Reply": 2, "Subscribe": 3, "Publish": 4, } )
Enum value maps for Message_MessageType.
View Source
var ( Reply_Error_Type_name = map[int32]string{ 0: "NoError", 1: "NoSuchService", 2: "InvalidIdentification", 3: "NoSuchMethod", 4: "BadArguments", 5: "Timeout", 126: "Custom", } Reply_Error_Type_value = map[string]int32{ "NoError": 0, "NoSuchService": 1, "InvalidIdentification": 2, "NoSuchMethod": 3, "BadArguments": 4, "Timeout": 5, "Custom": 126, } )
Enum value maps for Reply_Error_Type.
View Source
var File_cellaserv_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Type Message_MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=cellaserv.Message_MessageType" json:"type,omitempty"` // This field contains the serialized, actual message: Register, Request... Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetContent ¶
func (*Message) GetType ¶
func (x *Message) GetType() Message_MessageType
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message_MessageType ¶
type Message_MessageType int32
const ( Message_Register Message_MessageType = 0 Message_Request Message_MessageType = 1 Message_Reply Message_MessageType = 2 Message_Subscribe Message_MessageType = 3 Message_Publish Message_MessageType = 4 )
func (Message_MessageType) Descriptor ¶
func (Message_MessageType) Descriptor() protoreflect.EnumDescriptor
func (Message_MessageType) Enum ¶
func (x Message_MessageType) Enum() *Message_MessageType
func (Message_MessageType) EnumDescriptor
deprecated
func (Message_MessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Message_MessageType.Descriptor instead.
func (Message_MessageType) Number ¶
func (x Message_MessageType) Number() protoreflect.EnumNumber
func (Message_MessageType) String ¶
func (x Message_MessageType) String() string
func (Message_MessageType) Type ¶
func (Message_MessageType) Type() protoreflect.EnumType
type Publish ¶
type Publish struct { // The name of the event the sender is publishing Event string `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Publish) Descriptor
deprecated
func (*Publish) ProtoMessage ¶
func (*Publish) ProtoMessage()
func (*Publish) ProtoReflect ¶
func (x *Publish) ProtoReflect() protoreflect.Message
type Register ¶
type Register struct { // Name of the service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Use this field if multiple instances of the service exist Identification string `protobuf:"bytes,2,opt,name=identification,proto3" json:"identification,omitempty"` // contains filtered or unexported fields }
func (*Register) Descriptor
deprecated
func (*Register) GetIdentification ¶
func (*Register) ProtoMessage ¶
func (*Register) ProtoMessage()
func (*Register) ProtoReflect ¶
func (x *Register) ProtoReflect() protoreflect.Message
type Reply ¶
type Reply struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Error *Reply_Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Id uint64 `protobuf:"fixed64,99,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Reply) Descriptor
deprecated
func (*Reply) GetError ¶
func (x *Reply) GetError() *Reply_Error
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
type Reply_Error ¶
type Reply_Error struct { Type Reply_Error_Type `protobuf:"varint,1,opt,name=type,proto3,enum=cellaserv.Reply_Error_Type" json:"type,omitempty"` What string `protobuf:"bytes,2,opt,name=what,proto3" json:"what,omitempty"` // contains filtered or unexported fields }
func (*Reply_Error) Descriptor
deprecated
func (*Reply_Error) Descriptor() ([]byte, []int)
Deprecated: Use Reply_Error.ProtoReflect.Descriptor instead.
func (*Reply_Error) GetType ¶
func (x *Reply_Error) GetType() Reply_Error_Type
func (*Reply_Error) GetWhat ¶
func (x *Reply_Error) GetWhat() string
func (*Reply_Error) ProtoMessage ¶
func (*Reply_Error) ProtoMessage()
func (*Reply_Error) ProtoReflect ¶
func (x *Reply_Error) ProtoReflect() protoreflect.Message
func (*Reply_Error) Reset ¶
func (x *Reply_Error) Reset()
func (*Reply_Error) String ¶
func (x *Reply_Error) String() string
type Reply_Error_Type ¶
type Reply_Error_Type int32
const ( Reply_Error_NoError Reply_Error_Type = 0 Reply_Error_NoSuchService Reply_Error_Type = 1 Reply_Error_InvalidIdentification Reply_Error_Type = 2 Reply_Error_NoSuchMethod Reply_Error_Type = 3 Reply_Error_BadArguments Reply_Error_Type = 4 Reply_Error_Timeout Reply_Error_Type = 5 // If you use this error type you should explain the error in the // 'what' field Reply_Error_Custom Reply_Error_Type = 126 )
func (Reply_Error_Type) Descriptor ¶
func (Reply_Error_Type) Descriptor() protoreflect.EnumDescriptor
func (Reply_Error_Type) Enum ¶
func (x Reply_Error_Type) Enum() *Reply_Error_Type
func (Reply_Error_Type) EnumDescriptor
deprecated
func (Reply_Error_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Reply_Error_Type.Descriptor instead.
func (Reply_Error_Type) Number ¶
func (x Reply_Error_Type) Number() protoreflect.EnumNumber
func (Reply_Error_Type) String ¶
func (x Reply_Error_Type) String() string
func (Reply_Error_Type) Type ¶
func (Reply_Error_Type) Type() protoreflect.EnumType
type Request ¶
type Request struct { ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` ServiceIdentification string `protobuf:"bytes,2,opt,name=service_identification,json=serviceIdentification,proto3" json:"service_identification,omitempty"` Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` Id uint64 `protobuf:"fixed64,99,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetServiceIdentification ¶
func (*Request) GetServiceName ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Subscribe ¶
type Subscribe struct { // The name of the event the sender of this message is subscribing to Event string `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` // contains filtered or unexported fields }
func (*Subscribe) Descriptor
deprecated
func (*Subscribe) ProtoMessage ¶
func (*Subscribe) ProtoMessage()
func (*Subscribe) ProtoReflect ¶
func (x *Subscribe) ProtoReflect() protoreflect.Message