Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_greet_proto protoreflect.FileDescriptor
Functions ¶
func GreetObjCall ¶
func GreetObjCall(ctx context.Context, impl any, enc microgo.Encoder, method string, input []byte) (out []byte, err error)
GreetObjCall is used to call the implement of the defined method.
func NewGreetObjClient ¶
func NewGreetObjClient(name string, options ...microgo.ClientOption) *greetObjClient
Types ¶
type IGreetObjServer ¶
type IGreetObjServer interface {
SayHello(ctx context.Context, input *SayHelloReq) (output *SayHelloResp, err error)
}
type NopGreetObjServerImpl ¶
type NopGreetObjServerImpl struct{}
func (*NopGreetObjServerImpl) SayHello ¶
func (*NopGreetObjServerImpl) SayHello(ctx context.Context, input *SayHelloReq) (output *SayHelloResp, err error)
type SayHelloReq ¶
type SayHelloReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*SayHelloReq) Descriptor
deprecated
func (*SayHelloReq) Descriptor() ([]byte, []int)
Deprecated: Use SayHelloReq.ProtoReflect.Descriptor instead.
func (*SayHelloReq) GetName ¶
func (x *SayHelloReq) GetName() string
func (*SayHelloReq) ProtoMessage ¶
func (*SayHelloReq) ProtoMessage()
func (*SayHelloReq) ProtoReflect ¶
func (x *SayHelloReq) ProtoReflect() protoreflect.Message
func (*SayHelloReq) Reset ¶
func (x *SayHelloReq) Reset()
func (*SayHelloReq) String ¶
func (x *SayHelloReq) String() string
type SayHelloResp ¶
type SayHelloResp struct { Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*SayHelloResp) Descriptor
deprecated
func (*SayHelloResp) Descriptor() ([]byte, []int)
Deprecated: Use SayHelloResp.ProtoReflect.Descriptor instead.
func (*SayHelloResp) GetMessage ¶
func (x *SayHelloResp) GetMessage() string
func (*SayHelloResp) ProtoMessage ¶
func (*SayHelloResp) ProtoMessage()
func (*SayHelloResp) ProtoReflect ¶
func (x *SayHelloResp) ProtoReflect() protoreflect.Message
func (*SayHelloResp) Reset ¶
func (x *SayHelloResp) Reset()
func (*SayHelloResp) String ¶
func (x *SayHelloResp) String() string
Click to show internal directories.
Click to hide internal directories.