pb

package
v0.0.0-...-123e2d9 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_helloword_proto protoreflect.FileDescriptor

Functions

func RegisterHelloWordServer

func RegisterHelloWordServer(s *grpc.Server, srv HelloWordServer)

Types

type HelloReq

type HelloReq struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloReq) Descriptor deprecated

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

Deprecated: Use HelloReq.ProtoReflect.Descriptor instead.

func (*HelloReq) GetName

func (x *HelloReq) GetName() string

func (*HelloReq) ProtoMessage

func (*HelloReq) ProtoMessage()

func (*HelloReq) ProtoReflect

func (x *HelloReq) ProtoReflect() protoreflect.Message

func (*HelloReq) Reset

func (x *HelloReq) Reset()

func (*HelloReq) String

func (x *HelloReq) String() string

type HelloRsp

type HelloRsp struct {
	Rt string `protobuf:"bytes,1,opt,name=rt,proto3" json:"rt,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloRsp) Descriptor deprecated

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

Deprecated: Use HelloRsp.ProtoReflect.Descriptor instead.

func (*HelloRsp) GetRt

func (x *HelloRsp) GetRt() string

func (*HelloRsp) ProtoMessage

func (*HelloRsp) ProtoMessage()

func (*HelloRsp) ProtoReflect

func (x *HelloRsp) ProtoReflect() protoreflect.Message

func (*HelloRsp) Reset

func (x *HelloRsp) Reset()

func (*HelloRsp) String

func (x *HelloRsp) String() string

type HelloWordClient

type HelloWordClient interface {
	SayHello(ctx context.Context, in *HelloReq, opts ...grpc.CallOption) (*HelloRsp, error)
}

HelloWordClient is the client API for HelloWord service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewHelloWordClient

func NewHelloWordClient(cc grpc.ClientConnInterface) HelloWordClient

type HelloWordServer

type HelloWordServer interface {
	SayHello(context.Context, *HelloReq) (*HelloRsp, error)
}

HelloWordServer is the server API for HelloWord service.

type UnimplementedHelloWordServer

type UnimplementedHelloWordServer struct {
}

UnimplementedHelloWordServer can be embedded to have forward compatible implementations.

func (*UnimplementedHelloWordServer) SayHello

Jump to

Keyboard shortcuts

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