model

package
v0.0.0-...-e4fe77d Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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