hello

package
v0.0.0-...-16a15a2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package hello is a generated protocol buffer package.

It is generated from these files:

hello.proto

It has these top-level messages:

HelloRequest
HelloReply

This thrift interface description was generated from from one more protobuf descriptors.

It is generated from these files:

hello.proto

It has these top-level structs:

HelloRequest
HelloReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGreeterServer

func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)

Types

type GreeterClient

type GreeterClient interface {
	// Sends a greeting
	SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
}

func NewGreeterClient

func NewGreeterClient(cc *grpc.ClientConn) GreeterClient

type GreeterImpl

type GreeterImpl struct {
	Client GreeterClient
}

func (*GreeterImpl) SayHello

type GreeterServer

type GreeterServer interface {
	// Sends a greeting
	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
}

type HelloReply

type HelloReply struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
	Integer int32  `protobuf:"varint,2,opt,name=integer" json:"integer,omitempty"`
	Bloop   bool   `protobuf:"varint,3,opt,name=bloop" json:"bloop,omitempty"`
}

The response message containing the greetings

func (*HelloReply) Descriptor

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

func (*HelloReply) GetBloop

func (m *HelloReply) GetBloop() bool

func (*HelloReply) GetInteger

func (m *HelloReply) GetInteger() int32

func (*HelloReply) GetMessage

func (m *HelloReply) GetMessage() string

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) Reset

func (m *HelloReply) Reset()

func (*HelloReply) String

func (m *HelloReply) String() string

type HelloRequest

type HelloRequest struct {
	// Types that are valid to be assigned to Arg:
	//	*HelloRequest_Name
	//	*HelloRequest_Age
	//	*HelloRequest_Blip
	Arg  isHelloRequest_Arg `protobuf_oneof:"arg"`
	Ints []int32            `protobuf:"varint,4,rep,packed,name=ints" json:"ints,omitempty"`
	Amap map[int32]int32    `` /* 130-byte string literal not displayed */
}

The request message containing the user's name.

func (*HelloRequest) Descriptor

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

func (*HelloRequest) GetAge

func (m *HelloRequest) GetAge() int32

func (*HelloRequest) GetAmap

func (m *HelloRequest) GetAmap() map[int32]int32

func (*HelloRequest) GetArg

func (m *HelloRequest) GetArg() isHelloRequest_Arg

func (*HelloRequest) GetBlip

func (m *HelloRequest) GetBlip() *HelloReply

func (*HelloRequest) GetInts

func (m *HelloRequest) GetInts() []int32

func (*HelloRequest) GetName

func (m *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) Reset

func (m *HelloRequest) Reset()

func (*HelloRequest) String

func (m *HelloRequest) String() string

func (*HelloRequest) XXX_OneofFuncs

func (*HelloRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type HelloRequest_Age

type HelloRequest_Age struct {
	Age int32 `protobuf:"varint,2,opt,name=age,oneof"`
}

type HelloRequest_Blip

type HelloRequest_Blip struct {
	Blip *HelloReply `protobuf:"bytes,3,opt,name=blip,oneof"`
}

type HelloRequest_Name

type HelloRequest_Name struct {
	Name string `protobuf:"bytes,1,opt,name=name,oneof"`
}

Directories

Path Synopsis
github.com
golang/protobuf/examples
Package hello is a generated protocol buffer package.
Package hello is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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