grpc_api

package
v0.0.0-...-d2cdecb Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BookCategoryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "BookCategoryService",
	HandlerType: (*BookCategoryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCategory",
			Handler:    _BookCategoryService_GetCategory_Handler,
		},
		{
			MethodName: "ListCategories",
			Handler:    _BookCategoryService_ListCategories_Handler,
		},
		{
			MethodName: "CreateCategory",
			Handler:    _BookCategoryService_CreateCategory_Handler,
		},
		{
			MethodName: "UpdateCategory",
			Handler:    _BookCategoryService_UpdateCategory_Handler,
		},
		{
			MethodName: "DeleteCategory",
			Handler:    _BookCategoryService_DeleteCategory_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/api.proto",
}

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

View Source
var BookService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "BookService",
	HandlerType: (*BookServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetBook",
			Handler:    _BookService_GetBook_Handler,
		},
		{
			MethodName: "ListBooks",
			Handler:    _BookService_ListBooks_Handler,
		},
		{
			MethodName: "CreateBook",
			Handler:    _BookService_CreateBook_Handler,
		},
		{
			MethodName: "UpdateBook",
			Handler:    _BookService_UpdateBook_Handler,
		},
		{
			MethodName: "DeleteBook",
			Handler:    _BookService_DeleteBook_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/api.proto",
}

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

View Source
var File_api_api_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "ListUsers",
			Handler:    _UserService_ListUsers_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "AuthUser",
			Handler:    _UserService_AuthUser_Handler,
		},
		{
			MethodName: "GenerateJWT",
			Handler:    _UserService_GenerateJWT_Handler,
		},
		{
			MethodName: "ValidateJWT",
			Handler:    _UserService_ValidateJWT_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/api.proto",
}

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

Functions

func RegisterBookCategoryServiceServer

func RegisterBookCategoryServiceServer(s grpc.ServiceRegistrar, srv BookCategoryServiceServer)

func RegisterBookServiceServer

func RegisterBookServiceServer(s grpc.ServiceRegistrar, srv BookServiceServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type AuthUserRequest

type AuthUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthUserRequest) Descriptor deprecated

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

Deprecated: Use AuthUserRequest.ProtoReflect.Descriptor instead.

func (*AuthUserRequest) GetPassword

func (x *AuthUserRequest) GetPassword() string

func (*AuthUserRequest) GetUsername

func (x *AuthUserRequest) GetUsername() string

func (*AuthUserRequest) ProtoMessage

func (*AuthUserRequest) ProtoMessage()

func (*AuthUserRequest) ProtoReflect

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

func (*AuthUserRequest) Reset

func (x *AuthUserRequest) Reset()

func (*AuthUserRequest) String

func (x *AuthUserRequest) String() string

type AuthUserResponse

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

func (*AuthUserResponse) Descriptor deprecated

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

Deprecated: Use AuthUserResponse.ProtoReflect.Descriptor instead.

func (*AuthUserResponse) GetToken

func (x *AuthUserResponse) GetToken() string

func (*AuthUserResponse) ProtoMessage

func (*AuthUserResponse) ProtoMessage()

func (*AuthUserResponse) ProtoReflect

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

func (*AuthUserResponse) Reset

func (x *AuthUserResponse) Reset()

func (*AuthUserResponse) String

func (x *AuthUserResponse) String() string

type Book

type Book struct {
	Id          string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title       string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Author      string                 `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	CategoryId  string                 `protobuf:"bytes,4,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
	Description string                 `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt   *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Book) Descriptor deprecated

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

Deprecated: Use Book.ProtoReflect.Descriptor instead.

func (*Book) GetAuthor

func (x *Book) GetAuthor() string

func (*Book) GetCategoryId

func (x *Book) GetCategoryId() string

func (*Book) GetCreatedAt

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

func (*Book) GetDeletedAt

func (x *Book) GetDeletedAt() *timestamppb.Timestamp

func (*Book) GetDescription

func (x *Book) GetDescription() string

func (*Book) GetId

func (x *Book) GetId() string

func (*Book) GetTitle

func (x *Book) GetTitle() string

func (*Book) GetUpdatedAt

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

func (*Book) ProtoMessage

func (*Book) ProtoMessage()

func (*Book) ProtoReflect

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

func (*Book) Reset

func (x *Book) Reset()

func (*Book) String

func (x *Book) String() string

type BookCategory

type BookCategory struct {
	Id          string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	// contains filtered or unexported fields
}

func (*BookCategory) Descriptor deprecated

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

Deprecated: Use BookCategory.ProtoReflect.Descriptor instead.

func (*BookCategory) GetCreatedAt

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

func (*BookCategory) GetDeletedAt

func (x *BookCategory) GetDeletedAt() *timestamppb.Timestamp

func (*BookCategory) GetDescription

func (x *BookCategory) GetDescription() string

func (*BookCategory) GetId

func (x *BookCategory) GetId() string

func (*BookCategory) GetName

func (x *BookCategory) GetName() string

func (*BookCategory) GetUpdatedAt

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

func (*BookCategory) ProtoMessage

func (*BookCategory) ProtoMessage()

func (*BookCategory) ProtoReflect

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

func (*BookCategory) Reset

func (x *BookCategory) Reset()

func (*BookCategory) String

func (x *BookCategory) String() string

type BookCategoryServiceClient

type BookCategoryServiceClient interface {
	GetCategory(ctx context.Context, in *GetCategoryRequest, opts ...grpc.CallOption) (*GetCategoryResponse, error)
	ListCategories(ctx context.Context, in *ListCategoriesRequest, opts ...grpc.CallOption) (*ListCategoriesResponse, error)
	CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*CreateCategoryResponse, error)
	UpdateCategory(ctx context.Context, in *UpdateCategoryRequest, opts ...grpc.CallOption) (*UpdateCategoryResponse, error)
	DeleteCategory(ctx context.Context, in *DeleteCategoryRequest, opts ...grpc.CallOption) (*DeleteCategoryResponse, error)
}

BookCategoryServiceClient is the client API for BookCategoryService 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 BookCategoryServiceServer

type BookCategoryServiceServer interface {
	GetCategory(context.Context, *GetCategoryRequest) (*GetCategoryResponse, error)
	ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
	CreateCategory(context.Context, *CreateCategoryRequest) (*CreateCategoryResponse, error)
	UpdateCategory(context.Context, *UpdateCategoryRequest) (*UpdateCategoryResponse, error)
	DeleteCategory(context.Context, *DeleteCategoryRequest) (*DeleteCategoryResponse, error)
	// contains filtered or unexported methods
}

BookCategoryServiceServer is the server API for BookCategoryService service. All implementations must embed UnimplementedBookCategoryServiceServer for forward compatibility

type BookServiceClient

type BookServiceClient interface {
	GetBook(ctx context.Context, in *GetBookRequest, opts ...grpc.CallOption) (*GetBookResponse, error)
	ListBooks(ctx context.Context, in *ListBooksRequest, opts ...grpc.CallOption) (*ListBooksResponse, error)
	CreateBook(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*CreateBookResponse, error)
	UpdateBook(ctx context.Context, in *UpdateBookRequest, opts ...grpc.CallOption) (*UpdateBookResponse, error)
	DeleteBook(ctx context.Context, in *DeleteBookRequest, opts ...grpc.CallOption) (*DeleteBookResponse, error)
}

BookServiceClient is the client API for BookService 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 BookServiceServer

type BookServiceServer interface {
	GetBook(context.Context, *GetBookRequest) (*GetBookResponse, error)
	ListBooks(context.Context, *ListBooksRequest) (*ListBooksResponse, error)
	CreateBook(context.Context, *CreateBookRequest) (*CreateBookResponse, error)
	UpdateBook(context.Context, *UpdateBookRequest) (*UpdateBookResponse, error)
	DeleteBook(context.Context, *DeleteBookRequest) (*DeleteBookResponse, error)
	// contains filtered or unexported methods
}

BookServiceServer is the server API for BookService service. All implementations must embed UnimplementedBookServiceServer for forward compatibility

type CreateBookRequest

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

func (*CreateBookRequest) Descriptor deprecated

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

Deprecated: Use CreateBookRequest.ProtoReflect.Descriptor instead.

func (*CreateBookRequest) GetBook

func (x *CreateBookRequest) GetBook() *Book

func (*CreateBookRequest) ProtoMessage

func (*CreateBookRequest) ProtoMessage()

func (*CreateBookRequest) ProtoReflect

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

func (*CreateBookRequest) Reset

func (x *CreateBookRequest) Reset()

func (*CreateBookRequest) String

func (x *CreateBookRequest) String() string

type CreateBookResponse

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

func (*CreateBookResponse) Descriptor deprecated

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

Deprecated: Use CreateBookResponse.ProtoReflect.Descriptor instead.

func (*CreateBookResponse) GetBook

func (x *CreateBookResponse) GetBook() *Book

func (*CreateBookResponse) ProtoMessage

func (*CreateBookResponse) ProtoMessage()

func (*CreateBookResponse) ProtoReflect

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

func (*CreateBookResponse) Reset

func (x *CreateBookResponse) Reset()

func (*CreateBookResponse) String

func (x *CreateBookResponse) String() string

type CreateCategoryRequest

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

func (*CreateCategoryRequest) Descriptor deprecated

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

Deprecated: Use CreateCategoryRequest.ProtoReflect.Descriptor instead.

func (*CreateCategoryRequest) GetCategory

func (x *CreateCategoryRequest) GetCategory() *BookCategory

func (*CreateCategoryRequest) ProtoMessage

func (*CreateCategoryRequest) ProtoMessage()

func (*CreateCategoryRequest) ProtoReflect

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

func (*CreateCategoryRequest) Reset

func (x *CreateCategoryRequest) Reset()

func (*CreateCategoryRequest) String

func (x *CreateCategoryRequest) String() string

type CreateCategoryResponse

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

func (*CreateCategoryResponse) Descriptor deprecated

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

Deprecated: Use CreateCategoryResponse.ProtoReflect.Descriptor instead.

func (*CreateCategoryResponse) GetCategory

func (x *CreateCategoryResponse) GetCategory() *BookCategory

func (*CreateCategoryResponse) ProtoMessage

func (*CreateCategoryResponse) ProtoMessage()

func (*CreateCategoryResponse) ProtoReflect

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

func (*CreateCategoryResponse) Reset

func (x *CreateCategoryResponse) Reset()

func (*CreateCategoryResponse) String

func (x *CreateCategoryResponse) String() string

type CreateUserRequest

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

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetUser

func (x *CreateUserRequest) GetUser() *User

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type CreateUserResponse

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

func (*CreateUserResponse) Descriptor deprecated

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetUser

func (x *CreateUserResponse) GetUser() *User

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

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

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

type DeleteBookRequest

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

func (*DeleteBookRequest) Descriptor deprecated

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

Deprecated: Use DeleteBookRequest.ProtoReflect.Descriptor instead.

func (*DeleteBookRequest) GetBookId

func (x *DeleteBookRequest) GetBookId() string

func (*DeleteBookRequest) ProtoMessage

func (*DeleteBookRequest) ProtoMessage()

func (*DeleteBookRequest) ProtoReflect

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

func (*DeleteBookRequest) Reset

func (x *DeleteBookRequest) Reset()

func (*DeleteBookRequest) String

func (x *DeleteBookRequest) String() string

type DeleteBookResponse

type DeleteBookResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteBookResponse) Descriptor deprecated

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

Deprecated: Use DeleteBookResponse.ProtoReflect.Descriptor instead.

func (*DeleteBookResponse) GetSuccess

func (x *DeleteBookResponse) GetSuccess() bool

func (*DeleteBookResponse) ProtoMessage

func (*DeleteBookResponse) ProtoMessage()

func (*DeleteBookResponse) ProtoReflect

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

func (*DeleteBookResponse) Reset

func (x *DeleteBookResponse) Reset()

func (*DeleteBookResponse) String

func (x *DeleteBookResponse) String() string

type DeleteCategoryRequest

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

func (*DeleteCategoryRequest) Descriptor deprecated

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

Deprecated: Use DeleteCategoryRequest.ProtoReflect.Descriptor instead.

func (*DeleteCategoryRequest) GetCategoryId

func (x *DeleteCategoryRequest) GetCategoryId() string

func (*DeleteCategoryRequest) ProtoMessage

func (*DeleteCategoryRequest) ProtoMessage()

func (*DeleteCategoryRequest) ProtoReflect

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

func (*DeleteCategoryRequest) Reset

func (x *DeleteCategoryRequest) Reset()

func (*DeleteCategoryRequest) String

func (x *DeleteCategoryRequest) String() string

type DeleteCategoryResponse

type DeleteCategoryResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCategoryResponse) Descriptor deprecated

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

Deprecated: Use DeleteCategoryResponse.ProtoReflect.Descriptor instead.

func (*DeleteCategoryResponse) GetSuccess

func (x *DeleteCategoryResponse) GetSuccess() bool

func (*DeleteCategoryResponse) ProtoMessage

func (*DeleteCategoryResponse) ProtoMessage()

func (*DeleteCategoryResponse) ProtoReflect

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

func (*DeleteCategoryResponse) Reset

func (x *DeleteCategoryResponse) Reset()

func (*DeleteCategoryResponse) String

func (x *DeleteCategoryResponse) String() string

type DeleteUserRequest

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

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetUserId

func (x *DeleteUserRequest) GetUserId() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type DeleteUserResponse

type DeleteUserResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserResponse) Descriptor deprecated

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

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) GetSuccess

func (x *DeleteUserResponse) GetSuccess() bool

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect

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

func (*DeleteUserResponse) Reset

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (x *DeleteUserResponse) String() string

type GenerateJWTRequest

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

func (*GenerateJWTRequest) Descriptor deprecated

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

Deprecated: Use GenerateJWTRequest.ProtoReflect.Descriptor instead.

func (*GenerateJWTRequest) GetUserId

func (x *GenerateJWTRequest) GetUserId() string

func (*GenerateJWTRequest) ProtoMessage

func (*GenerateJWTRequest) ProtoMessage()

func (*GenerateJWTRequest) ProtoReflect

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

func (*GenerateJWTRequest) Reset

func (x *GenerateJWTRequest) Reset()

func (*GenerateJWTRequest) String

func (x *GenerateJWTRequest) String() string

type GenerateJWTResponse

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

func (*GenerateJWTResponse) Descriptor deprecated

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

Deprecated: Use GenerateJWTResponse.ProtoReflect.Descriptor instead.

func (*GenerateJWTResponse) GetToken

func (x *GenerateJWTResponse) GetToken() string

func (*GenerateJWTResponse) ProtoMessage

func (*GenerateJWTResponse) ProtoMessage()

func (*GenerateJWTResponse) ProtoReflect

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

func (*GenerateJWTResponse) Reset

func (x *GenerateJWTResponse) Reset()

func (*GenerateJWTResponse) String

func (x *GenerateJWTResponse) String() string

type GetBookRequest

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

func (*GetBookRequest) Descriptor deprecated

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

Deprecated: Use GetBookRequest.ProtoReflect.Descriptor instead.

func (*GetBookRequest) GetBookId

func (x *GetBookRequest) GetBookId() string

func (*GetBookRequest) ProtoMessage

func (*GetBookRequest) ProtoMessage()

func (*GetBookRequest) ProtoReflect

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

func (*GetBookRequest) Reset

func (x *GetBookRequest) Reset()

func (*GetBookRequest) String

func (x *GetBookRequest) String() string

type GetBookResponse

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

func (*GetBookResponse) Descriptor deprecated

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

Deprecated: Use GetBookResponse.ProtoReflect.Descriptor instead.

func (*GetBookResponse) GetBook

func (x *GetBookResponse) GetBook() *Book

func (*GetBookResponse) ProtoMessage

func (*GetBookResponse) ProtoMessage()

func (*GetBookResponse) ProtoReflect

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

func (*GetBookResponse) Reset

func (x *GetBookResponse) Reset()

func (*GetBookResponse) String

func (x *GetBookResponse) String() string

type GetCategoryRequest

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

func (*GetCategoryRequest) Descriptor deprecated

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

Deprecated: Use GetCategoryRequest.ProtoReflect.Descriptor instead.

func (*GetCategoryRequest) GetCategoryId

func (x *GetCategoryRequest) GetCategoryId() string

func (*GetCategoryRequest) ProtoMessage

func (*GetCategoryRequest) ProtoMessage()

func (*GetCategoryRequest) ProtoReflect

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

func (*GetCategoryRequest) Reset

func (x *GetCategoryRequest) Reset()

func (*GetCategoryRequest) String

func (x *GetCategoryRequest) String() string

type GetCategoryResponse

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

func (*GetCategoryResponse) Descriptor deprecated

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

Deprecated: Use GetCategoryResponse.ProtoReflect.Descriptor instead.

func (*GetCategoryResponse) GetCategory

func (x *GetCategoryResponse) GetCategory() *BookCategory

func (*GetCategoryResponse) ProtoMessage

func (*GetCategoryResponse) ProtoMessage()

func (*GetCategoryResponse) ProtoReflect

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

func (*GetCategoryResponse) Reset

func (x *GetCategoryResponse) Reset()

func (*GetCategoryResponse) String

func (x *GetCategoryResponse) String() string

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetUserId

func (x *GetUserRequest) GetUserId() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserResponse

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

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

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

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type ListBooksRequest

type ListBooksRequest struct {
	Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Sorting    *Sorting    `protobuf:"bytes,2,opt,name=sorting,proto3" json:"sorting,omitempty"`
	Search     string      `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBooksRequest) Descriptor deprecated

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

Deprecated: Use ListBooksRequest.ProtoReflect.Descriptor instead.

func (*ListBooksRequest) GetPagination

func (x *ListBooksRequest) GetPagination() *Pagination

func (*ListBooksRequest) GetSearch

func (x *ListBooksRequest) GetSearch() string

func (*ListBooksRequest) GetSorting

func (x *ListBooksRequest) GetSorting() *Sorting

func (*ListBooksRequest) ProtoMessage

func (*ListBooksRequest) ProtoMessage()

func (*ListBooksRequest) ProtoReflect

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

func (*ListBooksRequest) Reset

func (x *ListBooksRequest) Reset()

func (*ListBooksRequest) String

func (x *ListBooksRequest) String() string

type ListBooksResponse

type ListBooksResponse struct {
	Books []*Book `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBooksResponse) Descriptor deprecated

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

Deprecated: Use ListBooksResponse.ProtoReflect.Descriptor instead.

func (*ListBooksResponse) GetBooks

func (x *ListBooksResponse) GetBooks() []*Book

func (*ListBooksResponse) ProtoMessage

func (*ListBooksResponse) ProtoMessage()

func (*ListBooksResponse) ProtoReflect

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

func (*ListBooksResponse) Reset

func (x *ListBooksResponse) Reset()

func (*ListBooksResponse) String

func (x *ListBooksResponse) String() string

type ListCategoriesRequest

type ListCategoriesRequest struct {
	Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Sorting    *Sorting    `protobuf:"bytes,2,opt,name=sorting,proto3" json:"sorting,omitempty"`
	Search     string      `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCategoriesRequest) Descriptor deprecated

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

Deprecated: Use ListCategoriesRequest.ProtoReflect.Descriptor instead.

func (*ListCategoriesRequest) GetPagination

func (x *ListCategoriesRequest) GetPagination() *Pagination

func (*ListCategoriesRequest) GetSearch

func (x *ListCategoriesRequest) GetSearch() string

func (*ListCategoriesRequest) GetSorting

func (x *ListCategoriesRequest) GetSorting() *Sorting

func (*ListCategoriesRequest) ProtoMessage

func (*ListCategoriesRequest) ProtoMessage()

func (*ListCategoriesRequest) ProtoReflect

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

func (*ListCategoriesRequest) Reset

func (x *ListCategoriesRequest) Reset()

func (*ListCategoriesRequest) String

func (x *ListCategoriesRequest) String() string

type ListCategoriesResponse

type ListCategoriesResponse struct {
	Categories []*BookCategory `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCategoriesResponse) Descriptor deprecated

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

Deprecated: Use ListCategoriesResponse.ProtoReflect.Descriptor instead.

func (*ListCategoriesResponse) GetCategories

func (x *ListCategoriesResponse) GetCategories() []*BookCategory

func (*ListCategoriesResponse) ProtoMessage

func (*ListCategoriesResponse) ProtoMessage()

func (*ListCategoriesResponse) ProtoReflect

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

func (*ListCategoriesResponse) Reset

func (x *ListCategoriesResponse) Reset()

func (*ListCategoriesResponse) String

func (x *ListCategoriesResponse) String() string

type ListUsersRequest

type ListUsersRequest struct {
	Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Sorting    *Sorting    `protobuf:"bytes,2,opt,name=sorting,proto3" json:"sorting,omitempty"`
	Search     string      `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersRequest) Descriptor deprecated

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetPagination

func (x *ListUsersRequest) GetPagination() *Pagination

func (*ListUsersRequest) GetSearch

func (x *ListUsersRequest) GetSearch() string

func (*ListUsersRequest) GetSorting

func (x *ListUsersRequest) GetSorting() *Sorting

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

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

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

type ListUsersResponse

type ListUsersResponse struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersResponse) Descriptor deprecated

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

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetUsers

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

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

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

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

type Pagination

type Pagination struct {
	Page   int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Limit  int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*Pagination) Descriptor deprecated

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

Deprecated: Use Pagination.ProtoReflect.Descriptor instead.

func (*Pagination) GetLimit

func (x *Pagination) GetLimit() int32

func (*Pagination) GetOffset

func (x *Pagination) GetOffset() int32

func (*Pagination) GetPage

func (x *Pagination) GetPage() int32

func (*Pagination) ProtoMessage

func (*Pagination) ProtoMessage()

func (*Pagination) ProtoReflect

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

func (*Pagination) Reset

func (x *Pagination) Reset()

func (*Pagination) String

func (x *Pagination) String() string

type Sorting

type Sorting struct {
	OrderBy    string `protobuf:"bytes,1,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	IsReversed bool   `protobuf:"varint,2,opt,name=is_reversed,json=isReversed,proto3" json:"is_reversed,omitempty"`
	// contains filtered or unexported fields
}

func (*Sorting) Descriptor deprecated

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

Deprecated: Use Sorting.ProtoReflect.Descriptor instead.

func (*Sorting) GetIsReversed

func (x *Sorting) GetIsReversed() bool

func (*Sorting) GetOrderBy

func (x *Sorting) GetOrderBy() string

func (*Sorting) ProtoMessage

func (*Sorting) ProtoMessage()

func (*Sorting) ProtoReflect

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

func (*Sorting) Reset

func (x *Sorting) Reset()

func (*Sorting) String

func (x *Sorting) String() string

type UnimplementedBookCategoryServiceServer

type UnimplementedBookCategoryServiceServer struct {
}

UnimplementedBookCategoryServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBookCategoryServiceServer) CreateCategory

func (UnimplementedBookCategoryServiceServer) DeleteCategory

func (UnimplementedBookCategoryServiceServer) GetCategory

func (UnimplementedBookCategoryServiceServer) ListCategories

func (UnimplementedBookCategoryServiceServer) UpdateCategory

type UnimplementedBookServiceServer

type UnimplementedBookServiceServer struct {
}

UnimplementedBookServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBookServiceServer) CreateBook

func (UnimplementedBookServiceServer) DeleteBook

func (UnimplementedBookServiceServer) GetBook

func (UnimplementedBookServiceServer) ListBooks

func (UnimplementedBookServiceServer) UpdateBook

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) AuthUser

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GenerateJWT

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) ListUsers

func (UnimplementedUserServiceServer) UpdateUser

func (UnimplementedUserServiceServer) ValidateJWT

type UnsafeBookCategoryServiceServer

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

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

type UnsafeBookServiceServer

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

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

type UnsafeUserServiceServer

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

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

type UpdateBookRequest

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

func (*UpdateBookRequest) Descriptor deprecated

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

Deprecated: Use UpdateBookRequest.ProtoReflect.Descriptor instead.

func (*UpdateBookRequest) GetBook

func (x *UpdateBookRequest) GetBook() *Book

func (*UpdateBookRequest) ProtoMessage

func (*UpdateBookRequest) ProtoMessage()

func (*UpdateBookRequest) ProtoReflect

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

func (*UpdateBookRequest) Reset

func (x *UpdateBookRequest) Reset()

func (*UpdateBookRequest) String

func (x *UpdateBookRequest) String() string

type UpdateBookResponse

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

func (*UpdateBookResponse) Descriptor deprecated

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

Deprecated: Use UpdateBookResponse.ProtoReflect.Descriptor instead.

func (*UpdateBookResponse) GetBook

func (x *UpdateBookResponse) GetBook() *Book

func (*UpdateBookResponse) ProtoMessage

func (*UpdateBookResponse) ProtoMessage()

func (*UpdateBookResponse) ProtoReflect

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

func (*UpdateBookResponse) Reset

func (x *UpdateBookResponse) Reset()

func (*UpdateBookResponse) String

func (x *UpdateBookResponse) String() string

type UpdateCategoryRequest

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

func (*UpdateCategoryRequest) Descriptor deprecated

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

Deprecated: Use UpdateCategoryRequest.ProtoReflect.Descriptor instead.

func (*UpdateCategoryRequest) GetCategory

func (x *UpdateCategoryRequest) GetCategory() *BookCategory

func (*UpdateCategoryRequest) ProtoMessage

func (*UpdateCategoryRequest) ProtoMessage()

func (*UpdateCategoryRequest) ProtoReflect

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

func (*UpdateCategoryRequest) Reset

func (x *UpdateCategoryRequest) Reset()

func (*UpdateCategoryRequest) String

func (x *UpdateCategoryRequest) String() string

type UpdateCategoryResponse

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

func (*UpdateCategoryResponse) Descriptor deprecated

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

Deprecated: Use UpdateCategoryResponse.ProtoReflect.Descriptor instead.

func (*UpdateCategoryResponse) GetCategory

func (x *UpdateCategoryResponse) GetCategory() *BookCategory

func (*UpdateCategoryResponse) ProtoMessage

func (*UpdateCategoryResponse) ProtoMessage()

func (*UpdateCategoryResponse) ProtoReflect

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

func (*UpdateCategoryResponse) Reset

func (x *UpdateCategoryResponse) Reset()

func (*UpdateCategoryResponse) String

func (x *UpdateCategoryResponse) String() string

type UpdateUserRequest

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

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetUser

func (x *UpdateUserRequest) GetUser() *User

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UpdateUserResponse

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

func (*UpdateUserResponse) Descriptor deprecated

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

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) GetUser

func (x *UpdateUserResponse) GetUser() *User

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) ProtoReflect

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

func (*UpdateUserResponse) Reset

func (x *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (x *UpdateUserResponse) String() string

type User

type User struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username  string                 `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email     string                 `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Password  string                 `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	Role      string                 `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedAt

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

func (*User) GetDeletedAt

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

func (x *User) GetRole() string

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

type UserServiceClient

type UserServiceClient interface {
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
	AuthUser(ctx context.Context, in *AuthUserRequest, opts ...grpc.CallOption) (*AuthUserResponse, error)
	GenerateJWT(ctx context.Context, in *GenerateJWTRequest, opts ...grpc.CallOption) (*GenerateJWTResponse, error)
	ValidateJWT(ctx context.Context, in *ValidateJWTRequest, opts ...grpc.CallOption) (*ValidateJWTResponse, error)
}

UserServiceClient is the client API for UserService 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 UserServiceServer

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type ValidateJWTRequest

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

func (*ValidateJWTRequest) Descriptor deprecated

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

Deprecated: Use ValidateJWTRequest.ProtoReflect.Descriptor instead.

func (*ValidateJWTRequest) GetToken

func (x *ValidateJWTRequest) GetToken() string

func (*ValidateJWTRequest) ProtoMessage

func (*ValidateJWTRequest) ProtoMessage()

func (*ValidateJWTRequest) ProtoReflect

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

func (*ValidateJWTRequest) Reset

func (x *ValidateJWTRequest) Reset()

func (*ValidateJWTRequest) String

func (x *ValidateJWTRequest) String() string

type ValidateJWTResponse

type ValidateJWTResponse struct {
	Valid  bool   `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateJWTResponse) Descriptor deprecated

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

Deprecated: Use ValidateJWTResponse.ProtoReflect.Descriptor instead.

func (*ValidateJWTResponse) GetUserId

func (x *ValidateJWTResponse) GetUserId() string

func (*ValidateJWTResponse) GetValid

func (x *ValidateJWTResponse) GetValid() bool

func (*ValidateJWTResponse) ProtoMessage

func (*ValidateJWTResponse) ProtoMessage()

func (*ValidateJWTResponse) ProtoReflect

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

func (*ValidateJWTResponse) Reset

func (x *ValidateJWTResponse) Reset()

func (*ValidateJWTResponse) String

func (x *ValidateJWTResponse) String() string

Jump to

Keyboard shortcuts

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