helloworld

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: Apache-2.0 Imports: 11 Imported by: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_helloworld_proto protoreflect.FileDescriptor

Functions

func NewHelloworldEndpoints

func NewHelloworldEndpoints() []*api.Endpoint

func RegisterHelloworldHandler

func RegisterHelloworldHandler(s server.Server, hdlr HelloworldHandler, opts ...server.HandlerOption) error

Types

type CallRequest added in v0.20.0

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

Call returns a personalised "Hello $name" response

func (*CallRequest) Descriptor deprecated added in v0.20.0

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

Deprecated: Use CallRequest.ProtoReflect.Descriptor instead.

func (*CallRequest) GetName added in v0.20.0

func (x *CallRequest) GetName() string

func (*CallRequest) ProtoMessage added in v0.20.0

func (*CallRequest) ProtoMessage()

func (*CallRequest) ProtoReflect added in v0.20.0

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

func (*CallRequest) Reset added in v0.20.0

func (x *CallRequest) Reset()

func (*CallRequest) String added in v0.20.0

func (x *CallRequest) String() string

type CallResponse added in v0.20.0

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

func (*CallResponse) Descriptor deprecated added in v0.20.0

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

Deprecated: Use CallResponse.ProtoReflect.Descriptor instead.

func (*CallResponse) GetMessage added in v0.20.0

func (x *CallResponse) GetMessage() string

func (*CallResponse) ProtoMessage added in v0.20.0

func (*CallResponse) ProtoMessage()

func (*CallResponse) ProtoReflect added in v0.20.0

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

func (*CallResponse) Reset added in v0.20.0

func (x *CallResponse) Reset()

func (*CallResponse) String added in v0.20.0

func (x *CallResponse) String() string

type HelloworldService

type HelloworldService interface {
	Call(ctx context.Context, in *CallRequest, opts ...client.CallOption) (*CallResponse, error)
	Stream(ctx context.Context, in *StreamRequest, opts ...client.CallOption) (Helloworld_StreamService, error)
}

func NewHelloworldService

func NewHelloworldService(name string, c client.Client) HelloworldService

type Helloworld_StreamService added in v0.20.0

type Helloworld_StreamService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Recv() (*StreamResponse, error)
}

type Helloworld_StreamStream added in v0.20.0

type Helloworld_StreamStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*StreamResponse) error
}

type StreamRequest added in v0.20.0

type StreamRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Messages int64  `protobuf:"varint,2,opt,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

Stream returns a streaming helloworld response

func (*StreamRequest) Descriptor deprecated added in v0.20.0

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

Deprecated: Use StreamRequest.ProtoReflect.Descriptor instead.

func (*StreamRequest) GetMessages added in v0.20.0

func (x *StreamRequest) GetMessages() int64

func (*StreamRequest) GetName added in v0.20.0

func (x *StreamRequest) GetName() string

func (*StreamRequest) ProtoMessage added in v0.20.0

func (*StreamRequest) ProtoMessage()

func (*StreamRequest) ProtoReflect added in v0.20.0

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

func (*StreamRequest) Reset added in v0.20.0

func (x *StreamRequest) Reset()

func (*StreamRequest) String added in v0.20.0

func (x *StreamRequest) String() string

type StreamResponse added in v0.20.0

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

func (*StreamResponse) Descriptor deprecated added in v0.20.0

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

Deprecated: Use StreamResponse.ProtoReflect.Descriptor instead.

func (*StreamResponse) GetMessage added in v0.20.0

func (x *StreamResponse) GetMessage() string

func (*StreamResponse) ProtoMessage added in v0.20.0

func (*StreamResponse) ProtoMessage()

func (*StreamResponse) ProtoReflect added in v0.20.0

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

func (*StreamResponse) Reset added in v0.20.0

func (x *StreamResponse) Reset()

func (*StreamResponse) String added in v0.20.0

func (x *StreamResponse) String() string

Jump to

Keyboard shortcuts

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