queryService

package
v0.0.0-...-e5a474c Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_user_query_messages_proto protoreflect.FileDescriptor
View Source
var File_user_query_proto protoreflect.FileDescriptor
View Source
var QueryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "queryService.queryService",
	HandlerType: (*QueryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _QueryService_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _QueryService_UpdateUser_Handler,
		},
		{
			MethodName: "GetUserById",
			Handler:    _QueryService_GetUserById_Handler,
		},
		{
			MethodName: "SearchUser",
			Handler:    _QueryService_SearchUser_Handler,
		},
		{
			MethodName: "DeleteUserByID",
			Handler:    _QueryService_DeleteUserByID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user_query.proto",
}

QueryService_ServiceDesc is the grpc.ServiceDesc for QueryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterQueryServiceServer

func RegisterQueryServiceServer(s grpc.ServiceRegistrar, srv QueryServiceServer)

Types

type CreateUserReq

type CreateUserReq struct {
	ID       string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=Email,proto3" json:"Email,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"`
	Password string `protobuf:"bytes,4,opt,name=Password,proto3" json:"Password,omitempty"`
	Root     bool   `protobuf:"varint,5,opt,name=Root,proto3" json:"Root,omitempty"`
	Active   bool   `protobuf:"varint,6,opt,name=Active,proto3" json:"Active,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserReq) Descriptor deprecated

func (*CreateUserReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.

func (*CreateUserReq) GetActive

func (x *CreateUserReq) GetActive() bool

func (*CreateUserReq) GetEmail

func (x *CreateUserReq) GetEmail() string

func (*CreateUserReq) GetID

func (x *CreateUserReq) GetID() string

func (*CreateUserReq) GetPassword

func (x *CreateUserReq) GetPassword() string

func (*CreateUserReq) GetRoot

func (x *CreateUserReq) GetRoot() bool

func (*CreateUserReq) GetUsername

func (x *CreateUserReq) GetUsername() string

func (*CreateUserReq) ProtoMessage

func (*CreateUserReq) ProtoMessage()

func (*CreateUserReq) ProtoReflect

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

func (*CreateUserReq) Reset

func (x *CreateUserReq) Reset()

func (*CreateUserReq) String

func (x *CreateUserReq) String() string

type CreateUserRes

type CreateUserRes struct {
	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRes) Descriptor deprecated

func (*CreateUserRes) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRes.ProtoReflect.Descriptor instead.

func (*CreateUserRes) GetID

func (x *CreateUserRes) GetID() string

func (*CreateUserRes) ProtoMessage

func (*CreateUserRes) ProtoMessage()

func (*CreateUserRes) ProtoReflect

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

func (*CreateUserRes) Reset

func (x *CreateUserRes) Reset()

func (*CreateUserRes) String

func (x *CreateUserRes) String() string

type DeleteUserByIdReq

type DeleteUserByIdReq struct {
	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserByIdReq) Descriptor deprecated

func (*DeleteUserByIdReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserByIdReq.ProtoReflect.Descriptor instead.

func (*DeleteUserByIdReq) GetID

func (x *DeleteUserByIdReq) GetID() string

func (*DeleteUserByIdReq) ProtoMessage

func (*DeleteUserByIdReq) ProtoMessage()

func (*DeleteUserByIdReq) ProtoReflect

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

func (*DeleteUserByIdReq) Reset

func (x *DeleteUserByIdReq) Reset()

func (*DeleteUserByIdReq) String

func (x *DeleteUserByIdReq) String() string

type DeleteUserByIdRes

type DeleteUserByIdRes struct {
	// contains filtered or unexported fields
}

func (*DeleteUserByIdRes) Descriptor deprecated

func (*DeleteUserByIdRes) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserByIdRes.ProtoReflect.Descriptor instead.

func (*DeleteUserByIdRes) ProtoMessage

func (*DeleteUserByIdRes) ProtoMessage()

func (*DeleteUserByIdRes) ProtoReflect

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

func (*DeleteUserByIdRes) Reset

func (x *DeleteUserByIdRes) Reset()

func (*DeleteUserByIdRes) String

func (x *DeleteUserByIdRes) String() string

type GetUserByIdReq

type GetUserByIdReq struct {
	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserByIdReq) Descriptor deprecated

func (*GetUserByIdReq) Descriptor() ([]byte, []int)

Deprecated: Use GetUserByIdReq.ProtoReflect.Descriptor instead.

func (*GetUserByIdReq) GetID

func (x *GetUserByIdReq) GetID() string

func (*GetUserByIdReq) ProtoMessage

func (*GetUserByIdReq) ProtoMessage()

func (*GetUserByIdReq) ProtoReflect

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

func (*GetUserByIdReq) Reset

func (x *GetUserByIdReq) Reset()

func (*GetUserByIdReq) String

func (x *GetUserByIdReq) String() string

type GetUserByIdRes

type GetUserByIdRes struct {
	User *User `protobuf:"bytes,1,opt,name=User,proto3" json:"User,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserByIdRes) Descriptor deprecated

func (*GetUserByIdRes) Descriptor() ([]byte, []int)

Deprecated: Use GetUserByIdRes.ProtoReflect.Descriptor instead.

func (*GetUserByIdRes) GetUser

func (x *GetUserByIdRes) GetUser() *User

func (*GetUserByIdRes) ProtoMessage

func (*GetUserByIdRes) ProtoMessage()

func (*GetUserByIdRes) ProtoReflect

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

func (*GetUserByIdRes) Reset

func (x *GetUserByIdRes) Reset()

func (*GetUserByIdRes) String

func (x *GetUserByIdRes) String() string

type QueryServiceClient

type QueryServiceClient interface {
	CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*CreateUserRes, error)
	UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*UpdateUserRes, error)
	GetUserById(ctx context.Context, in *GetUserByIdReq, opts ...grpc.CallOption) (*GetUserByIdRes, error)
	SearchUser(ctx context.Context, in *SearchReq, opts ...grpc.CallOption) (*SearchRes, error)
	DeleteUserByID(ctx context.Context, in *DeleteUserByIdReq, opts ...grpc.CallOption) (*DeleteUserByIdRes, error)
}

QueryServiceClient is the client API for QueryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type QueryServiceServer

type QueryServiceServer interface {
	CreateUser(context.Context, *CreateUserReq) (*CreateUserRes, error)
	UpdateUser(context.Context, *UpdateUserReq) (*UpdateUserRes, error)
	GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdRes, error)
	SearchUser(context.Context, *SearchReq) (*SearchRes, error)
	DeleteUserByID(context.Context, *DeleteUserByIdReq) (*DeleteUserByIdRes, error)
}

QueryServiceServer is the server API for QueryService service. All implementations should embed UnimplementedQueryServiceServer for forward compatibility

type SearchReq

type SearchReq struct {
	Search string `protobuf:"bytes,1,opt,name=Search,proto3" json:"Search,omitempty"`
	Page   int64  `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Size   int64  `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchReq) Descriptor deprecated

func (*SearchReq) Descriptor() ([]byte, []int)

Deprecated: Use SearchReq.ProtoReflect.Descriptor instead.

func (*SearchReq) GetPage

func (x *SearchReq) GetPage() int64

func (*SearchReq) GetSearch

func (x *SearchReq) GetSearch() string

func (*SearchReq) GetSize

func (x *SearchReq) GetSize() int64

func (*SearchReq) ProtoMessage

func (*SearchReq) ProtoMessage()

func (*SearchReq) ProtoReflect

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

func (*SearchReq) Reset

func (x *SearchReq) Reset()

func (*SearchReq) String

func (x *SearchReq) String() string

type SearchRes

type SearchRes struct {
	TotalCount int64   `protobuf:"varint,1,opt,name=TotalCount,proto3" json:"TotalCount,omitempty"`
	TotalPages int64   `protobuf:"varint,2,opt,name=TotalPages,proto3" json:"TotalPages,omitempty"`
	Page       int64   `protobuf:"varint,3,opt,name=Page,proto3" json:"Page,omitempty"`
	Size       int64   `protobuf:"varint,4,opt,name=Size,proto3" json:"Size,omitempty"`
	HasMore    bool    `protobuf:"varint,5,opt,name=HasMore,proto3" json:"HasMore,omitempty"`
	Users      []*User `protobuf:"bytes,6,rep,name=Users,proto3" json:"Users,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchRes) Descriptor deprecated

func (*SearchRes) Descriptor() ([]byte, []int)

Deprecated: Use SearchRes.ProtoReflect.Descriptor instead.

func (*SearchRes) GetHasMore

func (x *SearchRes) GetHasMore() bool

func (*SearchRes) GetPage

func (x *SearchRes) GetPage() int64

func (*SearchRes) GetSize

func (x *SearchRes) GetSize() int64

func (*SearchRes) GetTotalCount

func (x *SearchRes) GetTotalCount() int64

func (*SearchRes) GetTotalPages

func (x *SearchRes) GetTotalPages() int64

func (*SearchRes) GetUsers

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

func (*SearchRes) ProtoMessage

func (*SearchRes) ProtoMessage()

func (*SearchRes) ProtoReflect

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

func (*SearchRes) Reset

func (x *SearchRes) Reset()

func (*SearchRes) String

func (x *SearchRes) String() string

type UnimplementedQueryServiceServer

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedQueryServiceServer) CreateUser

func (UnimplementedQueryServiceServer) DeleteUserByID

func (UnimplementedQueryServiceServer) GetUserById

func (UnimplementedQueryServiceServer) SearchUser

func (UnimplementedQueryServiceServer) UpdateUser

type UnsafeQueryServiceServer

type UnsafeQueryServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServiceServer will result in compilation errors.

type UpdateUserReq

type UpdateUserReq struct {
	ID       string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=Email,proto3" json:"Email,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserReq) Descriptor deprecated

func (*UpdateUserReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead.

func (*UpdateUserReq) GetEmail

func (x *UpdateUserReq) GetEmail() string

func (*UpdateUserReq) GetID

func (x *UpdateUserReq) GetID() string

func (*UpdateUserReq) GetUsername

func (x *UpdateUserReq) GetUsername() string

func (*UpdateUserReq) ProtoMessage

func (*UpdateUserReq) ProtoMessage()

func (*UpdateUserReq) ProtoReflect

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

func (*UpdateUserReq) Reset

func (x *UpdateUserReq) Reset()

func (*UpdateUserReq) String

func (x *UpdateUserReq) String() string

type UpdateUserRes

type UpdateUserRes struct {
	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRes) Descriptor deprecated

func (*UpdateUserRes) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRes.ProtoReflect.Descriptor instead.

func (*UpdateUserRes) GetID

func (x *UpdateUserRes) GetID() string

func (*UpdateUserRes) ProtoMessage

func (*UpdateUserRes) ProtoMessage()

func (*UpdateUserRes) ProtoReflect

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

func (*UpdateUserRes) Reset

func (x *UpdateUserRes) Reset()

func (*UpdateUserRes) String

func (x *UpdateUserRes) String() string

type User

type User struct {
	ID        string                 `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Email     string                 `protobuf:"bytes,2,opt,name=Email,proto3" json:"Email,omitempty"`
	Username  string                 `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"`
	Password  string                 `protobuf:"bytes,4,opt,name=Password,proto3" json:"Password,omitempty"`
	Root      bool                   `protobuf:"varint,5,opt,name=Root,proto3" json:"Root,omitempty"`
	Active    bool                   `protobuf:"varint,6,opt,name=Active,proto3" json:"Active,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetActive

func (x *User) GetActive() bool

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetID

func (x *User) GetID() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetRoot

func (x *User) GetRoot() bool

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamppb.Timestamp

func (*User) GetUsername

func (x *User) GetUsername() 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

Jump to

Keyboard shortcuts

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