proto3_proto

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package proto3_proto is a generated protocol buffer package.

It is generated from these files:

proto3.proto

It has these top-level messages:

Message
Nested
MessageWithMap

Index

Constants

This section is empty.

Variables

View Source
var Message_Humour_name = map[int32]string{
	0: "UNKNOWN",
	1: "PUNS",
	2: "SLAPSTICK",
	3: "BILL_BAILEY",
}
View Source
var Message_Humour_value = map[string]int32{
	"UNKNOWN":     0,
	"PUNS":        1,
	"SLAPSTICK":   2,
	"BILL_BAILEY": 3,
}

Functions

func AcceptEchoServiceClient

func AcceptEchoServiceClient(lis net.Listener, x EchoService)

AcceptEchoServiceClient accepts connections on the listener and serves requests for each incoming connection. Accept blocks; the caller typically invokes it in a go statement.

func ListenAndServeEchoService

func ListenAndServeEchoService(network, addr string, x EchoService) error

ListenAndServeEchoService listen announces on the local network address laddr and serves the given EchoService implementation.

func NewEchoServiceServer

func NewEchoServiceServer(x EchoService) *rpc.Server

NewEchoServiceServer returns a new EchoService Server.

func RegisterEchoService

func RegisterEchoService(srv *rpc.Server, x EchoService) error

RegisterEchoService publish the given EchoService implementation on the server.

func ServeEchoService

func ServeEchoService(conn io.ReadWriteCloser, x EchoService)

ServeEchoService serves the given EchoService implementation.

Types

type EchoService

type EchoService interface {
	Echo(in *Message, out *Message) error
}

type EchoServiceClient

type EchoServiceClient struct {
	*rpc.Client
}

func DialEchoService

func DialEchoService(network, addr string) (*EchoServiceClient, error)

DialEchoService connects to an EchoService at the specified network address.

func DialEchoServiceTimeout

func DialEchoServiceTimeout(network, addr string, timeout time.Duration) (*EchoServiceClient, error)

DialEchoServiceTimeout connects to an EchoService at the specified network address.

func NewEchoServiceClient

func NewEchoServiceClient(conn io.ReadWriteCloser) *EchoServiceClient

NewEchoServiceClient returns a EchoService stub to handle requests to the set of EchoService at the other end of the connection.

func (*EchoServiceClient) AsyncEcho

func (c *EchoServiceClient) AsyncEcho(in *Message, out *Message, done chan *rpc.Call) *rpc.Call

func (*EchoServiceClient) Echo

func (c *EchoServiceClient) Echo(in *Message) (out *Message, err error)

type Message

type Message struct {
	Name         string             `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Hilarity     Message_Humour     `protobuf:"varint,2,opt,name=hilarity,enum=proto3_proto.Message_Humour" json:"hilarity,omitempty"`
	HeightInCm   uint32             `protobuf:"varint,3,opt,name=height_in_cm,json=heightInCm" json:"height_in_cm,omitempty"`
	Data         []byte             `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	ResultCount  int64              `protobuf:"varint,7,opt,name=result_count,json=resultCount" json:"result_count,omitempty"`
	TrueScotsman bool               `protobuf:"varint,8,opt,name=true_scotsman,json=trueScotsman" json:"true_scotsman,omitempty"`
	Score        float32            `protobuf:"fixed32,9,opt,name=score" json:"score,omitempty"`
	Key          []uint64           `protobuf:"varint,5,rep,packed,name=key" json:"key,omitempty"`
	Nested       *Nested            `protobuf:"bytes,6,opt,name=nested" json:"nested,omitempty"`
	Terrain      map[string]*Nested `` /* 135-byte string literal not displayed */
}

func (*Message) Descriptor

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

func (*Message) GetData

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

func (*Message) GetHeightInCm

func (m *Message) GetHeightInCm() uint32

func (*Message) GetHilarity

func (m *Message) GetHilarity() Message_Humour

func (*Message) GetKey

func (m *Message) GetKey() []uint64

func (*Message) GetName

func (m *Message) GetName() string

func (*Message) GetNested

func (m *Message) GetNested() *Nested

func (*Message) GetResultCount

func (m *Message) GetResultCount() int64

func (*Message) GetScore

func (m *Message) GetScore() float32

func (*Message) GetTerrain

func (m *Message) GetTerrain() map[string]*Nested

func (*Message) GetTrueScotsman

func (m *Message) GetTrueScotsman() bool

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

type MessageWithMap

type MessageWithMap struct {
	ByteMapping map[bool][]byte `` /* 169-byte string literal not displayed */
}

func (*MessageWithMap) Descriptor

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

func (*MessageWithMap) GetByteMapping

func (m *MessageWithMap) GetByteMapping() map[bool][]byte

func (*MessageWithMap) ProtoMessage

func (*MessageWithMap) ProtoMessage()

func (*MessageWithMap) Reset

func (m *MessageWithMap) Reset()

func (*MessageWithMap) String

func (m *MessageWithMap) String() string

type Message_Humour

type Message_Humour int32
const (
	Message_UNKNOWN     Message_Humour = 0
	Message_PUNS        Message_Humour = 1
	Message_SLAPSTICK   Message_Humour = 2
	Message_BILL_BAILEY Message_Humour = 3
)

func (Message_Humour) EnumDescriptor

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

func (Message_Humour) String

func (x Message_Humour) String() string

type Nested

type Nested struct {
	Bunny string `protobuf:"bytes,1,opt,name=bunny" json:"bunny,omitempty"`
}

func (*Nested) Descriptor

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

func (*Nested) GetBunny

func (m *Nested) GetBunny() string

func (*Nested) ProtoMessage

func (*Nested) ProtoMessage()

func (*Nested) Reset

func (m *Nested) Reset()

func (*Nested) String

func (m *Nested) String() string

Jump to

Keyboard shortcuts

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