helloworld

package
v0.0.0-...-b02c517 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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_ExchangeClient

type Helloworld_ExchangeClient interface {
	Send(*Request) error
	Recv(*Response) error
	CloseSend() error
}

type Helloworld_ExchangeServer

type Helloworld_ExchangeServer interface {
	Recv(*Request) error
	Send(*Response) error
}

type Helloworld_PullClient

type Helloworld_PullClient interface {
	Recv(*Response) error
}

type Helloworld_PullServer

type Helloworld_PullServer interface {
	Send(*Response) error
}

type Helloworld_PushClient

type Helloworld_PushClient interface {
	Send(*Request) error
	CloseAndRecv(*Response) error
}

type Helloworld_PushServer

type Helloworld_PushServer interface {
	Recv(*Request) error
}

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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetText

func (x *Request) GetText() string

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 {
	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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetText

func (x *Response) GetText() 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