Documentation ¶
Index ¶
- Variables
- func GetTestCommandServiceInfo() nexus.ServiceInfo
- func GetTestQueryServiceInfo() nexus.ServiceInfo
- type ListUserReq
- type TestCommandService
- func (s *TestCommandService) Add(args *TestRequest, reply *TestResponse) error
- func (s *TestCommandService) Div(args *TestRequest, reply *TestResponse) error
- func (s *TestCommandService) Mul(args *TestRequest, reply *TestResponse) error
- func (s *TestCommandService) Sub(args *TestRequest, reply *TestResponse) error
- type TestCommandServiceClient
- func (sc *TestCommandServiceClient) Add(args *TestRequest, reply *TestResponse) error
- func (sc *TestCommandServiceClient) Div(args *TestRequest, reply *TestResponse) error
- func (sc *TestCommandServiceClient) Mul(args *TestRequest, reply *TestResponse) error
- func (sc *TestCommandServiceClient) Sub(args *TestRequest, reply *TestResponse) error
- type TestQueryService
- type TestQueryServiceClient
- type TestRequest
- type TestResponse
- type User
- type UserReq
- type UserResp
Constants ¶
This section is empty.
Variables ¶
View Source
var File_test_proto protoreflect.FileDescriptor
Functions ¶
func GetTestCommandServiceInfo ¶
func GetTestCommandServiceInfo() nexus.ServiceInfo
GetTestCommandServiceInfo method generated by protoc-gen-nexus.
func GetTestQueryServiceInfo ¶
func GetTestQueryServiceInfo() nexus.ServiceInfo
GetTestQueryServiceInfo method generated by protoc-gen-nexus.
Types ¶
type ListUserReq ¶
type ListUserReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*ListUserReq) Descriptor
deprecated
func (*ListUserReq) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReq.ProtoReflect.Descriptor instead.
func (*ListUserReq) GetIds ¶
func (x *ListUserReq) GetIds() []int64
func (*ListUserReq) ProtoMessage ¶
func (*ListUserReq) ProtoMessage()
func (*ListUserReq) ProtoReflect ¶
func (x *ListUserReq) ProtoReflect() protoreflect.Message
func (*ListUserReq) Reset ¶
func (x *ListUserReq) Reset()
func (*ListUserReq) String ¶
func (x *ListUserReq) String() string
type TestCommandService ¶
type TestCommandService struct{}
TestCommandService this is description
func (*TestCommandService) Add ¶
func (s *TestCommandService) Add(args *TestRequest, reply *TestResponse) error
Add this is method description
func (*TestCommandService) Div ¶
func (s *TestCommandService) Div(args *TestRequest, reply *TestResponse) error
Div this is method description
func (*TestCommandService) Mul ¶
func (s *TestCommandService) Mul(args *TestRequest, reply *TestResponse) error
Mul this is method description
func (*TestCommandService) Sub ¶
func (s *TestCommandService) Sub(args *TestRequest, reply *TestResponse) error
Sub this is method description
type TestCommandServiceClient ¶
type TestCommandServiceClient struct {
// contains filtered or unexported fields
}
TestCommandServiceClient this is description
func NewTestCommandServiceClient ¶
func NewTestCommandServiceClient(client *nexus.RpcClient) TestCommandServiceClient
func (*TestCommandServiceClient) Add ¶
func (sc *TestCommandServiceClient) Add(args *TestRequest, reply *TestResponse) error
Add this is method description
func (*TestCommandServiceClient) Div ¶
func (sc *TestCommandServiceClient) Div(args *TestRequest, reply *TestResponse) error
Div this is method description
func (*TestCommandServiceClient) Mul ¶
func (sc *TestCommandServiceClient) Mul(args *TestRequest, reply *TestResponse) error
Mul this is method description
func (*TestCommandServiceClient) Sub ¶
func (sc *TestCommandServiceClient) Sub(args *TestRequest, reply *TestResponse) error
Sub this is method description
type TestQueryService ¶
type TestQueryService struct{}
func (*TestQueryService) GetUserById ¶
func (s *TestQueryService) GetUserById(args *UserReq, reply *User) error
func (*TestQueryService) ListUserByIds ¶
func (s *TestQueryService) ListUserByIds(args *ListUserReq, reply *UserResp) error
type TestQueryServiceClient ¶
type TestQueryServiceClient struct {
// contains filtered or unexported fields
}
func NewTestQueryServiceClient ¶
func NewTestQueryServiceClient(client *nexus.RpcClient) TestQueryServiceClient
func (*TestQueryServiceClient) GetUserById ¶
func (sc *TestQueryServiceClient) GetUserById(args *UserReq, reply *User) error
func (*TestQueryServiceClient) ListUserByIds ¶
func (sc *TestQueryServiceClient) ListUserByIds(args *ListUserReq, reply *UserResp) error
type TestRequest ¶
type TestRequest struct { A float64 `protobuf:"fixed64,1,opt,name=a,proto3" json:"a,omitempty"` B float64 `protobuf:"fixed64,2,opt,name=b,proto3" json:"b,omitempty"` // contains filtered or unexported fields }
func (*TestRequest) Descriptor
deprecated
func (*TestRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestRequest.ProtoReflect.Descriptor instead.
func (*TestRequest) GetA ¶
func (x *TestRequest) GetA() float64
func (*TestRequest) GetB ¶
func (x *TestRequest) GetB() float64
func (*TestRequest) ProtoMessage ¶
func (*TestRequest) ProtoMessage()
func (*TestRequest) ProtoReflect ¶
func (x *TestRequest) ProtoReflect() protoreflect.Message
func (*TestRequest) Reset ¶
func (x *TestRequest) Reset()
func (*TestRequest) String ¶
func (x *TestRequest) String() string
type TestResponse ¶
type TestResponse struct { C float64 `protobuf:"fixed64,1,opt,name=c,proto3" json:"c,omitempty"` // contains filtered or unexported fields }
func (*TestResponse) Descriptor
deprecated
func (*TestResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestResponse.ProtoReflect.Descriptor instead.
func (*TestResponse) GetC ¶
func (x *TestResponse) GetC() float64
func (*TestResponse) ProtoMessage ¶
func (*TestResponse) ProtoMessage()
func (*TestResponse) ProtoReflect ¶
func (x *TestResponse) ProtoReflect() protoreflect.Message
func (*TestResponse) Reset ¶
func (x *TestResponse) Reset()
func (*TestResponse) String ¶
func (x *TestResponse) String() string
type User ¶
type User struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Age int32 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"` Gender int32 `protobuf:"varint,3,opt,name=gender,proto3" json:"gender,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserReq ¶
type UserReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UserReq) Descriptor
deprecated
func (*UserReq) ProtoMessage ¶
func (*UserReq) ProtoMessage()
func (*UserReq) ProtoReflect ¶
func (x *UserReq) ProtoReflect() protoreflect.Message
type UserResp ¶
type UserResp struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*UserResp) Descriptor
deprecated
func (*UserResp) ProtoMessage ¶
func (*UserResp) ProtoMessage()
func (*UserResp) ProtoReflect ¶
func (x *UserResp) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.