greeter

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 5 Imported by: 8

Documentation

Overview

Package greeter is a generated protocol buffer package.

It is generated from these files:

greeter/greeter.proto

It has these top-level messages:

GreetRequest
GreetResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGreeterServiceServer

func RegisterGreeterServiceServer(s *grpc.Server, srv GreeterServiceServer)

Types

type GreetRequest

type GreetRequest struct {
	Greeting string `protobuf:"bytes,1,opt,name=greeting" json:"greeting,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

func (*GreetRequest) Descriptor

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

func (*GreetRequest) GetGreeting

func (m *GreetRequest) GetGreeting() string

func (*GreetRequest) GetName

func (m *GreetRequest) GetName() string

func (*GreetRequest) ProtoMessage

func (*GreetRequest) ProtoMessage()

func (*GreetRequest) Reset

func (m *GreetRequest) Reset()

func (*GreetRequest) String

func (m *GreetRequest) String() string

type GreetResponse

type GreetResponse struct {
	Response string `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}

func (*GreetResponse) Descriptor

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

func (*GreetResponse) GetResponse

func (m *GreetResponse) GetResponse() string

func (*GreetResponse) ProtoMessage

func (*GreetResponse) ProtoMessage()

func (*GreetResponse) Reset

func (m *GreetResponse) Reset()

func (*GreetResponse) String

func (m *GreetResponse) String() string

type GreeterServiceClient

type GreeterServiceClient interface {
	Greet(ctx context.Context, in *GreetRequest, opts ...grpc.CallOption) (*GreetResponse, error)
}

func NewGreeterServiceClient

func NewGreeterServiceClient(cc *grpc.ClientConn) GreeterServiceClient

type GreeterServiceServer

type GreeterServiceServer interface {
	Greet(context.Context, *GreetRequest) (*GreetResponse, error)
}

Jump to

Keyboard shortcuts

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