helloworld

package
v1.7.16 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package helloworld is a generated protocol buffer package.

It is generated from these files:

helloworld.proto

It has these top-level messages:

HelloRequest
HelloReply
StreamExampleRequest
StreamExampleReply

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)
	// Tick me
	StreamExample(ctx context.Context, in *StreamExampleRequest, opts ...grpc.CallOption) (Greeter_StreamExampleClient, error)
}

func NewGreeterClient

func NewGreeterClient(cc *grpc.ClientConn) GreeterClient

type GreeterServer

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

type Greeter_StreamExampleClient added in v1.4.1

type Greeter_StreamExampleClient interface {
	Recv() (*StreamExampleReply, error)
	grpc.ClientStream
}

type Greeter_StreamExampleServer added in v1.4.1

type Greeter_StreamExampleServer interface {
	Send(*StreamExampleReply) error
	grpc.ServerStream
}

type HelloReply

type HelloReply struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

The response message containing the greetings

func (*HelloReply) Descriptor

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

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 {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

The request message containing the user's name.

func (*HelloRequest) Descriptor

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

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

type StreamExampleReply added in v1.4.1

type StreamExampleReply struct {
	Data string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
}

func (*StreamExampleReply) Descriptor added in v1.4.1

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

func (*StreamExampleReply) GetData added in v1.4.1

func (m *StreamExampleReply) GetData() string

func (*StreamExampleReply) ProtoMessage added in v1.4.1

func (*StreamExampleReply) ProtoMessage()

func (*StreamExampleReply) Reset added in v1.4.1

func (m *StreamExampleReply) Reset()

func (*StreamExampleReply) String added in v1.4.1

func (m *StreamExampleReply) String() string

type StreamExampleRequest added in v1.4.1

type StreamExampleRequest struct {
}

func (*StreamExampleRequest) Descriptor added in v1.4.1

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

func (*StreamExampleRequest) ProtoMessage added in v1.4.1

func (*StreamExampleRequest) ProtoMessage()

func (*StreamExampleRequest) Reset added in v1.4.1

func (m *StreamExampleRequest) Reset()

func (*StreamExampleRequest) String added in v1.4.1

func (m *StreamExampleRequest) String() string

Jump to

Keyboard shortcuts

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