cellaserv

package module
v0.0.0-...-93b3339 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 3 Imported by: 1

README

cellaserv2-protobuf
===================

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

Use this repository as a submodule
----------------------------------

    $ cd your_repo

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)

Documentation

Overview

Package cellaserv is a generated protocol buffer package.

It is generated from these files:

cellaserv.proto
cellaserv_log.proto

It has these top-level messages:

Message
Register
Request
Reply
Subscribe
Publish
LogMessage

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",
}
View Source
var Message_MessageType_value = map[string]int32{
	"Register":  0,
	"Request":   1,
	"Reply":     2,
	"Subscribe": 3,
	"Publish":   4,
}
View Source
var Reply_Error_Type_name = map[int32]string{
	0:   "NoError",
	1:   "NoSuchService",
	2:   "InvalidIdentification",
	3:   "NoSuchMethod",
	4:   "BadArguments",
	5:   "Timeout",
	126: "Custom",
}
View Source
var Reply_Error_Type_value = map[string]int32{
	"NoError":               0,
	"NoSuchService":         1,
	"InvalidIdentification": 2,
	"NoSuchMethod":          3,
	"BadArguments":          4,
	"Timeout":               5,
	"Custom":                126,
}

Functions

This section is empty.

Types

type LogMessage

type LogMessage struct {
	Sender           *string `protobuf:"bytes,1,req,name=sender" json:"sender,omitempty"`
	Destination      *string `protobuf:"bytes,3,opt,name=destination" json:"destination,omitempty"`
	Content          []byte  `protobuf:"bytes,2,req,name=content" json:"content,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*LogMessage) Descriptor

func (*LogMessage) Descriptor() ([]byte, []int)

func (*LogMessage) GetContent

func (m *LogMessage) GetContent() []byte

func (*LogMessage) GetDestination

func (m *LogMessage) GetDestination() string

func (*LogMessage) GetSender

func (m *LogMessage) GetSender() string

func (*LogMessage) ProtoMessage

func (*LogMessage) ProtoMessage()

func (*LogMessage) Reset

func (m *LogMessage) Reset()

func (*LogMessage) String

func (m *LogMessage) String() string

type Message

type Message struct {
	Type Message_MessageType `protobuf:"varint,1,opt,name=type,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"`
}

func (*Message) Descriptor

func (*Message) Descriptor() ([]byte, []int)

func (*Message) GetContent

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

func (*Message) GetType

func (m *Message) GetType() Message_MessageType

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *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) EnumDescriptor

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

func (Message_MessageType) String

func (x Message_MessageType) String() string

type Publish

type Publish struct {
	// The name of the event the sender is publishing
	Event string `protobuf:"bytes,1,opt,name=event" json:"event,omitempty"`
	Data  []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

func (*Publish) Descriptor

func (*Publish) Descriptor() ([]byte, []int)

func (*Publish) GetData

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

func (*Publish) GetEvent

func (m *Publish) GetEvent() string

func (*Publish) ProtoMessage

func (*Publish) ProtoMessage()

func (*Publish) Reset

func (m *Publish) Reset()

func (*Publish) String

func (m *Publish) String() string

type Register

type Register struct {
	// Name of the service
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Use this field if multiple instances of the service exist
	Identification string `protobuf:"bytes,2,opt,name=identification" json:"identification,omitempty"`
}

func (*Register) Descriptor

func (*Register) Descriptor() ([]byte, []int)

func (*Register) GetIdentification

func (m *Register) GetIdentification() string

func (*Register) GetName

func (m *Register) GetName() string

func (*Register) ProtoMessage

func (*Register) ProtoMessage()

func (*Register) Reset

func (m *Register) Reset()

func (*Register) String

func (m *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" json:"error,omitempty"`
	Id    uint64       `protobuf:"fixed64,99,opt,name=id" json:"id,omitempty"`
}

func (*Reply) Descriptor

func (*Reply) Descriptor() ([]byte, []int)

func (*Reply) GetData

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

func (*Reply) GetError

func (m *Reply) GetError() *Reply_Error

func (*Reply) GetId

func (m *Reply) GetId() uint64

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) Reset

func (m *Reply) Reset()

func (*Reply) String

func (m *Reply) String() string

type Reply_Error

type Reply_Error struct {
	Type Reply_Error_Type `protobuf:"varint,1,opt,name=type,enum=cellaserv.Reply_Error_Type" json:"type,omitempty"`
	What string           `protobuf:"bytes,2,opt,name=what" json:"what,omitempty"`
}

func (*Reply_Error) Descriptor

func (*Reply_Error) Descriptor() ([]byte, []int)

func (*Reply_Error) GetType

func (m *Reply_Error) GetType() Reply_Error_Type

func (*Reply_Error) GetWhat

func (m *Reply_Error) GetWhat() string

func (*Reply_Error) ProtoMessage

func (*Reply_Error) ProtoMessage()

func (*Reply_Error) Reset

func (m *Reply_Error) Reset()

func (*Reply_Error) String

func (m *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) EnumDescriptor

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

func (Reply_Error_Type) String

func (x Reply_Error_Type) String() string

type Request

type Request struct {
	ServiceName           string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"`
	ServiceIdentification string `protobuf:"bytes,2,opt,name=service_identification,json=serviceIdentification" json:"service_identification,omitempty"`
	Method                string `protobuf:"bytes,3,opt,name=method" json:"method,omitempty"`
	Data                  []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	Id                    uint64 `protobuf:"fixed64,99,opt,name=id" json:"id,omitempty"`
}

func (*Request) Descriptor

func (*Request) Descriptor() ([]byte, []int)

func (*Request) GetData

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

func (*Request) GetId

func (m *Request) GetId() uint64

func (*Request) GetMethod

func (m *Request) GetMethod() string

func (*Request) GetServiceIdentification

func (m *Request) GetServiceIdentification() string

func (*Request) GetServiceName

func (m *Request) GetServiceName() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *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" json:"event,omitempty"`
}

func (*Subscribe) Descriptor

func (*Subscribe) Descriptor() ([]byte, []int)

func (*Subscribe) GetEvent

func (m *Subscribe) GetEvent() string

func (*Subscribe) ProtoMessage

func (*Subscribe) ProtoMessage()

func (*Subscribe) Reset

func (m *Subscribe) Reset()

func (*Subscribe) String

func (m *Subscribe) String() string

Jump to

Keyboard shortcuts

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