greeter

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientProxyIsNil = errors.New("proxy is nil")
View Source
var File_greeter_greeter_proto protoreflect.FileDescriptor

Functions

func RegisterGreeterTcpHandler

func RegisterGreeterTcpHandler(m *basemodule.BaseModule, ser Greeter)

Types

type ClientProxyService

type ClientProxyService struct {
	// contains filtered or unexported fields
}

generated proxxy handle

func NewGreeterClient

func NewGreeterClient(cli client.App, name string) *ClientProxyService

func (*ClientProxyService) Hello

func (proxy *ClientProxyService) Hello(req *Request) (rsp *Response, err error)

func (*ClientProxyService) Stream

func (proxy *ClientProxyService) Stream(req *Request) (rsp *Response, err error)

type Greeter

type Greeter interface {
	Hello(in *Request) (out *Response, err error)
	Stream(in *Request) (out *Response, err error)
}

generated mqant method

type Request

type Request struct {
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

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

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMsg

func (x *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

Jump to

Keyboard shortcuts

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