message

package
v0.0.0-...-854a178 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAge

func (x *User) GetAge() int32

func (*User) GetGender

func (x *User) GetGender() int32

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UserReq.ProtoReflect.Descriptor instead.

func (*UserReq) GetId

func (x *UserReq) GetId() int64

func (*UserReq) ProtoMessage

func (*UserReq) ProtoMessage()

func (*UserReq) ProtoReflect

func (x *UserReq) ProtoReflect() protoreflect.Message

func (*UserReq) Reset

func (x *UserReq) Reset()

func (*UserReq) String

func (x *UserReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UserResp.ProtoReflect.Descriptor instead.

func (*UserResp) GetUsers

func (x *UserResp) GetUsers() []*User

func (*UserResp) ProtoMessage

func (*UserResp) ProtoMessage()

func (*UserResp) ProtoReflect

func (x *UserResp) ProtoReflect() protoreflect.Message

func (*UserResp) Reset

func (x *UserResp) Reset()

func (*UserResp) String

func (x *UserResp) String() string

Jump to

Keyboard shortcuts

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