Documentation
¶
Index ¶
- Variables
- func RegisterHelloworldHandler(h HelloworldHandler, s server.Server)
- type Helloworld
- type HelloworldHandler
- type Helloworld_ExchangeClient
- type Helloworld_ExchangeServer
- type Helloworld_PullClient
- type Helloworld_PullServer
- type Helloworld_PushClient
- type Helloworld_PushServer
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var File_helloworld_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHelloworldHandler ¶
func RegisterHelloworldHandler(h HelloworldHandler, s server.Server)
Types ¶
type Helloworld ¶
type Helloworld interface { // Get is an unary call Get(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) // Pull is a server streaming call Pull(ctx context.Context, in *Request, opts ...client.CallOption) (Helloworld_PullClient, error) // Pull is a client streaming call Push(ctx context.Context, opts ...client.CallOption) (Helloworld_PushClient, error) // Pull is a bidirectional streaming call Exchange(ctx context.Context, opts ...client.CallOption) (Helloworld_ExchangeClient, error) }
func NewHelloworld ¶
func NewHelloworld(name string, c client.Client) Helloworld
type HelloworldHandler ¶
type HelloworldHandler interface { // Get is an unary call Get(context.Context, *Request) (*Response, error) // Pull is a server streaming call Pull(*Request, Helloworld_PullServer) error // Pull is a client streaming call Push(Helloworld_PushServer) (*Response, error) // Pull is a bidirectional streaming call Exchange(Helloworld_ExchangeServer) error }
type Helloworld_PullClient ¶
type Helloworld_PullServer ¶
type Helloworld_PushClient ¶
type Helloworld_PushServer ¶
type Request ¶
type Request struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
Request is the input message.
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
Response is the output message
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.