cellaserv

package module
v0.0.0-...-ad6d5b1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: Apache-2.0 Imports: 4 Imported by: 8

README

cellaserv3-protobuf
===================

[cellaserv3](https://github.com/evolutek/cellaserv3) source and generated
protobuf files.

Use this repository as a submodule in other repos.

Dependencies:

* protobuf-compiler
* protoc-gen-go

How to get protoc-gen-go?
-------------------------

Run:

    $ go get github.com/golang/protobuf/{proto,protoc-gen-go}

Then add `$GOPATH/bin` to your `$PATH`

For more informations, see:
[goprotobuf's README](https://github.com/golang/protobuf)

Updating protobuf generated files
---------------------------------

Run:

    $ make

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetContent

func (x *Message) GetContent() []byte

func (*Message) GetType

func (x *Message) GetType() Message_MessageType

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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

func (Message_MessageType) EnumDescriptor deprecated

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

Deprecated: Use Message_MessageType.Descriptor instead.

func (Message_MessageType) Number

func (Message_MessageType) String

func (x Message_MessageType) String() string

func (Message_MessageType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Publish.ProtoReflect.Descriptor instead.

func (*Publish) GetData

func (x *Publish) GetData() []byte

func (*Publish) GetEvent

func (x *Publish) GetEvent() string

func (*Publish) ProtoMessage

func (*Publish) ProtoMessage()

func (*Publish) ProtoReflect

func (x *Publish) ProtoReflect() protoreflect.Message

func (*Publish) Reset

func (x *Publish) Reset()

func (*Publish) String

func (x *Publish) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Register.ProtoReflect.Descriptor instead.

func (*Register) GetIdentification

func (x *Register) GetIdentification() string

func (*Register) GetName

func (x *Register) GetName() string

func (*Register) ProtoMessage

func (*Register) ProtoMessage()

func (*Register) ProtoReflect

func (x *Register) ProtoReflect() protoreflect.Message

func (*Register) Reset

func (x *Register) Reset()

func (*Register) String

func (x *Register) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetData

func (x *Reply) GetData() []byte

func (*Reply) GetError

func (x *Reply) GetError() *Reply_Error

func (*Reply) GetId

func (x *Reply) GetId() uint64

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) ProtoReflect

func (x *Reply) ProtoReflect() protoreflect.Message

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) String

func (x *Reply) String() string

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

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 (Reply_Error_Type) String

func (x Reply_Error_Type) String() string

func (Reply_Error_Type) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetData

func (x *Request) GetData() []byte

func (*Request) GetId

func (x *Request) GetId() uint64

func (*Request) GetMethod

func (x *Request) GetMethod() string

func (*Request) GetServiceIdentification

func (x *Request) GetServiceIdentification() string

func (*Request) GetServiceName

func (x *Request) GetServiceName() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Subscribe.ProtoReflect.Descriptor instead.

func (*Subscribe) GetEvent

func (x *Subscribe) GetEvent() string

func (*Subscribe) ProtoMessage

func (*Subscribe) ProtoMessage()

func (*Subscribe) ProtoReflect

func (x *Subscribe) ProtoReflect() protoreflect.Message

func (*Subscribe) Reset

func (x *Subscribe) Reset()

func (*Subscribe) String

func (x *Subscribe) String() string

Jump to

Keyboard shortcuts

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