proto

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

hello.proto

It has these top-level messages:

ReqSayWorld
ReplySayWorld

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHelloServer

func RegisterHelloServer(s *grpc.Server, srv HelloServer)

Types

type HelloClient

type HelloClient interface {
	SayWorld(ctx context.Context, in *ReqSayWorld, opts ...grpc.CallOption) (*ReplySayWorld, error)
}

func NewHelloClient

func NewHelloClient(cc *grpc.ClientConn) HelloClient

type HelloServer

type HelloServer interface {
	SayWorld(context.Context, *ReqSayWorld) (*ReplySayWorld, error)
}

type ReplySayWorld

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

func (*ReplySayWorld) Descriptor

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

func (*ReplySayWorld) GetMessage

func (m *ReplySayWorld) GetMessage() string

func (*ReplySayWorld) ProtoMessage

func (*ReplySayWorld) ProtoMessage()

func (*ReplySayWorld) Reset

func (m *ReplySayWorld) Reset()

func (*ReplySayWorld) String

func (m *ReplySayWorld) String() string

type ReqSayWorld

type ReqSayWorld struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*ReqSayWorld) Descriptor

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

func (*ReqSayWorld) GetName

func (m *ReqSayWorld) GetName() string

func (*ReqSayWorld) ProtoMessage

func (*ReqSayWorld) ProtoMessage()

func (*ReqSayWorld) Reset

func (m *ReqSayWorld) Reset()

func (*ReqSayWorld) String

func (m *ReqSayWorld) String() string

Jump to

Keyboard shortcuts

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