Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_micro_examples_helloworld_api_proto_hello_proto protoreflect.FileDescriptor
Functions ¶
func NewHelloworldEndpoints ¶
func RegisterHelloworldHandler ¶
func RegisterHelloworldHandler(s server.Server, hdlr HelloworldHandler, opts ...server.HandlerOption) error
Types ¶
type HelloworldHandler ¶
type HelloworldService ¶
type HelloworldService interface {
Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}
func NewHelloworldService ¶
func NewHelloworldService(name string, c client.Client) HelloworldService
type Request ¶
type Request struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.