Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ExampleServiceName = "ExampleService" ExampleServiceEndpoints = []api.Endpoint{ { Name: "ExampleService.Hello", Path: []string{"/v1/example/hello"}, Method: []string{"POST"}, Body: "*", Handler: "rpc", }, } )
View Source
var File_example_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExampleServiceServer ¶
func RegisterExampleServiceServer(s server.Server, sh ExampleServiceServer, opts ...server.HandlerOption) error
Types ¶
type Error ¶
type Error struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type ExampleServiceClient ¶
type ExampleServiceClient interface {
Hello(ctx context.Context, req *HelloReq, opts ...client.CallOption) (*HelloRsp, error)
}
func NewExampleServiceClient ¶
func NewExampleServiceClient(name string, c client.Client) ExampleServiceClient
type ExampleServiceServer ¶
type HelloReq ¶
type HelloReq struct {
// contains filtered or unexported fields
}
func (*HelloReq) Descriptor
deprecated
func (*HelloReq) ProtoMessage ¶
func (*HelloReq) ProtoMessage()
func (*HelloReq) ProtoReflect ¶
func (x *HelloReq) ProtoReflect() protoreflect.Message
type HelloRsp ¶
type HelloRsp struct {
// contains filtered or unexported fields
}
func (*HelloRsp) Descriptor
deprecated
func (*HelloRsp) ProtoMessage ¶
func (*HelloRsp) ProtoMessage()
func (*HelloRsp) ProtoReflect ¶
func (x *HelloRsp) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.