Documentation ¶
Overview ¶
Package gen is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package gen is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package gen is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package gen is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
- func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterCategoryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCategoryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CategoryServiceClient) error
- func RegisterCategoryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCategoryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CategoryServiceServer) error
- func RegisterCategoryServiceServer(s grpc.ServiceRegistrar, srv CategoryServiceServer)
- func RegisterNoteServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNoteServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NoteServiceClient) error
- func RegisterNoteServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNoteServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NoteServiceServer) error
- func RegisterNoteServiceServer(s grpc.ServiceRegistrar, srv NoteServiceServer)
- func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
- func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetCreatedAt() *timestamppb.Timestamp
- func (x *Category) GetId() string
- func (x *Category) GetPinned() bool
- func (x *Category) GetPriority() int32
- func (x *Category) GetTitle() string
- func (x *Category) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Category) GetUserId() string
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- type CategoryServiceClient
- type CategoryServiceServer
- type CreateCategoryRequest
- func (*CreateCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCategoryRequest) GetPinned() bool
- func (x *CreateCategoryRequest) GetPriority() int32
- func (x *CreateCategoryRequest) GetTitle() string
- func (*CreateCategoryRequest) ProtoMessage()
- func (x *CreateCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCategoryRequest) Reset()
- func (x *CreateCategoryRequest) String() string
- type CreateNoteRequest
- func (*CreateNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNoteRequest) GetCategoryId() string
- func (x *CreateNoteRequest) GetContent() string
- func (x *CreateNoteRequest) GetPinned() bool
- func (x *CreateNoteRequest) GetPriority() int32
- func (x *CreateNoteRequest) GetTitle() string
- func (*CreateNoteRequest) ProtoMessage()
- func (x *CreateNoteRequest) ProtoReflect() protoreflect.Message
- func (x *CreateNoteRequest) Reset()
- func (x *CreateNoteRequest) String() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetEmail() string
- func (x *CreateUserRequest) GetPassword() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- type DeleteCategoryRequest
- func (*DeleteCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCategoryRequest) GetId() string
- func (*DeleteCategoryRequest) ProtoMessage()
- func (x *DeleteCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCategoryRequest) Reset()
- func (x *DeleteCategoryRequest) String() string
- type DeleteNoteRequest
- type DeleteUserRequest
- type GetCategoryRequest
- type GetMeRequest
- type GetNoteRequest
- type GetSessionRequest
- type GetUserByEmailRequest
- func (*GetUserByEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserByEmailRequest) GetEmail() string
- func (*GetUserByEmailRequest) ProtoMessage()
- func (x *GetUserByEmailRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserByEmailRequest) Reset()
- func (x *GetUserByEmailRequest) String() string
- type ListCategoriesRequest
- func (*ListCategoriesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCategoriesRequest) GetLimit() int32
- func (x *ListCategoriesRequest) GetOffset() int32
- func (*ListCategoriesRequest) ProtoMessage()
- func (x *ListCategoriesRequest) ProtoReflect() protoreflect.Message
- func (x *ListCategoriesRequest) Reset()
- func (x *ListCategoriesRequest) String() string
- type ListCategoriesResponse
- func (*ListCategoriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCategoriesResponse) GetCategories() []*Category
- func (*ListCategoriesResponse) ProtoMessage()
- func (x *ListCategoriesResponse) ProtoReflect() protoreflect.Message
- func (x *ListCategoriesResponse) Reset()
- func (x *ListCategoriesResponse) String() string
- type ListNotesRequest
- func (*ListNotesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListNotesRequest) GetLimit() int32
- func (x *ListNotesRequest) GetOffset() int32
- func (*ListNotesRequest) ProtoMessage()
- func (x *ListNotesRequest) ProtoReflect() protoreflect.Message
- func (x *ListNotesRequest) Reset()
- func (x *ListNotesRequest) String() string
- type ListNotesResponse
- type Note
- func (*Note) Descriptor() ([]byte, []int)deprecated
- func (x *Note) GetCategoryId() string
- func (x *Note) GetContent() string
- func (x *Note) GetCreatedAt() *timestamppb.Timestamp
- func (x *Note) GetId() string
- func (x *Note) GetPinned() bool
- func (x *Note) GetPriority() int32
- func (x *Note) GetTitle() string
- func (x *Note) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Note) GetUserId() string
- func (*Note) ProtoMessage()
- func (x *Note) ProtoReflect() protoreflect.Message
- func (x *Note) Reset()
- func (x *Note) String() string
- type NoteServiceClient
- type NoteServiceServer
- type Session
- type SignInRequest
- func (*SignInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignInRequest) GetEmail() string
- func (x *SignInRequest) GetPassword() string
- func (*SignInRequest) ProtoMessage()
- func (x *SignInRequest) ProtoReflect() protoreflect.Message
- func (x *SignInRequest) Reset()
- func (x *SignInRequest) String() string
- type SignInResponse
- type SignOutRequest
- type SignUpRequest
- func (*SignUpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpRequest) GetEmail() string
- func (x *SignUpRequest) GetPassword() string
- func (*SignUpRequest) ProtoMessage()
- func (x *SignUpRequest) ProtoReflect() protoreflect.Message
- func (x *SignUpRequest) Reset()
- func (x *SignUpRequest) String() string
- type SignUpResponse
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) GetSession(context.Context, *GetSessionRequest) (*Session, error)
- func (UnimplementedAuthServiceServer) SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
- func (UnimplementedAuthServiceServer) SignOut(context.Context, *SignOutRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServiceServer) SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error)
- type UnimplementedCategoryServiceServer
- func (UnimplementedCategoryServiceServer) CreateCategory(context.Context, *CreateCategoryRequest) (*Category, error)
- func (UnimplementedCategoryServiceServer) DeleteCategory(context.Context, *DeleteCategoryRequest) (*emptypb.Empty, error)
- func (UnimplementedCategoryServiceServer) GetCategory(context.Context, *GetCategoryRequest) (*Category, error)
- func (UnimplementedCategoryServiceServer) ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
- func (UnimplementedCategoryServiceServer) UpdateCategory(context.Context, *UpdateCategoryRequest) (*Category, error)
- type UnimplementedNoteServiceServer
- func (UnimplementedNoteServiceServer) CreateNote(context.Context, *CreateNoteRequest) (*Note, error)
- func (UnimplementedNoteServiceServer) DeleteNote(context.Context, *DeleteNoteRequest) (*emptypb.Empty, error)
- func (UnimplementedNoteServiceServer) GetNote(context.Context, *GetNoteRequest) (*Note, error)
- func (UnimplementedNoteServiceServer) ListNotes(context.Context, *ListNotesRequest) (*ListNotesResponse, error)
- func (UnimplementedNoteServiceServer) UpdateNote(context.Context, *UpdateNoteRequest) (*Note, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) GetMe(context.Context, *GetMeRequest) (*User, error)
- func (UnimplementedUserServiceServer) GetUserByEmail(context.Context, *GetUserByEmailRequest) (*User, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
- type UnsafeAuthServiceServer
- type UnsafeCategoryServiceServer
- type UnsafeNoteServiceServer
- type UnsafeUserServiceServer
- type UpdateCategoryRequest
- func (*UpdateCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCategoryRequest) GetId() string
- func (x *UpdateCategoryRequest) GetPinned() bool
- func (x *UpdateCategoryRequest) GetPriority() int32
- func (x *UpdateCategoryRequest) GetTitle() string
- func (*UpdateCategoryRequest) ProtoMessage()
- func (x *UpdateCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCategoryRequest) Reset()
- func (x *UpdateCategoryRequest) String() string
- type UpdateNoteRequest
- func (*UpdateNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNoteRequest) GetContent() string
- func (x *UpdateNoteRequest) GetId() string
- func (x *UpdateNoteRequest) GetPinned() bool
- func (x *UpdateNoteRequest) GetPriority() int32
- func (x *UpdateNoteRequest) GetTitle() string
- func (*UpdateNoteRequest) ProtoMessage()
- func (x *UpdateNoteRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNoteRequest) Reset()
- func (x *UpdateNoteRequest) String() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetFirstName() string
- func (x *UpdateUserRequest) GetLastName() string
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetFirstName() string
- func (x *User) GetId() string
- func (x *User) GetLastName() string
- func (x *User) GetPassword() string
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceClient
- type UserServiceServer
Constants ¶
const ( AuthService_SignUp_FullMethodName = "/go.grpc.notes.microservices.test.proto.authapi.AuthService/SignUp" AuthService_SignIn_FullMethodName = "/go.grpc.notes.microservices.test.proto.authapi.AuthService/SignIn" AuthService_SignOut_FullMethodName = "/go.grpc.notes.microservices.test.proto.authapi.AuthService/SignOut" AuthService_GetSession_FullMethodName = "/go.grpc.notes.microservices.test.proto.authapi.AuthService/GetSession" )
const ( CategoryService_ListCategories_FullMethodName = "/grpc_notes_microservices_test.proto.categoryapi.CategoryService/ListCategories" CategoryService_GetCategory_FullMethodName = "/grpc_notes_microservices_test.proto.categoryapi.CategoryService/GetCategory" CategoryService_CreateCategory_FullMethodName = "/grpc_notes_microservices_test.proto.categoryapi.CategoryService/CreateCategory" CategoryService_UpdateCategory_FullMethodName = "/grpc_notes_microservices_test.proto.categoryapi.CategoryService/UpdateCategory" CategoryService_DeleteCategory_FullMethodName = "/grpc_notes_microservices_test.proto.categoryapi.CategoryService/DeleteCategory" )
const ( NoteService_ListNotes_FullMethodName = "/grpc_notes_microservices_test.proto.noteapi.NoteService/ListNotes" NoteService_GetNote_FullMethodName = "/grpc_notes_microservices_test.proto.noteapi.NoteService/GetNote" NoteService_CreateNote_FullMethodName = "/grpc_notes_microservices_test.proto.noteapi.NoteService/CreateNote" NoteService_UpdateNote_FullMethodName = "/grpc_notes_microservices_test.proto.noteapi.NoteService/UpdateNote" NoteService_DeleteNote_FullMethodName = "/grpc_notes_microservices_test.proto.noteapi.NoteService/DeleteNote" )
const ( UserService_GetMe_FullMethodName = "/grpc_notes_microservices_test.proto.userapi.UserService/GetMe" UserService_CreateUser_FullMethodName = "/grpc_notes_microservices_test.proto.userapi.UserService/CreateUser" UserService_UpdateUser_FullMethodName = "/grpc_notes_microservices_test.proto.userapi.UserService/UpdateUser" UserService_DeleteUser_FullMethodName = "/grpc_notes_microservices_test.proto.userapi.UserService/DeleteUser" UserService_GetUserByEmail_FullMethodName = "/grpc_notes_microservices_test.proto.userapi.UserService/GetUserByEmail" )
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "go.grpc.notes.microservices.test.proto.authapi.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignUp", Handler: _AuthService_SignUp_Handler, }, { MethodName: "SignIn", Handler: _AuthService_SignIn_Handler, }, { MethodName: "SignOut", Handler: _AuthService_SignOut_Handler, }, { MethodName: "GetSession", Handler: _AuthService_GetSession_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CategoryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc_notes_microservices_test.proto.categoryapi.CategoryService", HandlerType: (*CategoryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListCategories", Handler: _CategoryService_ListCategories_Handler, }, { MethodName: "GetCategory", Handler: _CategoryService_GetCategory_Handler, }, { MethodName: "CreateCategory", Handler: _CategoryService_CreateCategory_Handler, }, { MethodName: "UpdateCategory", Handler: _CategoryService_UpdateCategory_Handler, }, { MethodName: "DeleteCategory", Handler: _CategoryService_DeleteCategory_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "category.proto", }
CategoryService_ServiceDesc is the grpc.ServiceDesc for CategoryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_proto protoreflect.FileDescriptor
var File_category_proto protoreflect.FileDescriptor
var File_note_proto protoreflect.FileDescriptor
var File_user_proto protoreflect.FileDescriptor
var NoteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc_notes_microservices_test.proto.noteapi.NoteService", HandlerType: (*NoteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListNotes", Handler: _NoteService_ListNotes_Handler, }, { MethodName: "GetNote", Handler: _NoteService_GetNote_Handler, }, { MethodName: "CreateNote", Handler: _NoteService_CreateNote_Handler, }, { MethodName: "UpdateNote", Handler: _NoteService_UpdateNote_Handler, }, { MethodName: "DeleteNote", Handler: _NoteService_DeleteNote_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "note.proto", }
NoteService_ServiceDesc is the grpc.ServiceDesc for NoteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc_notes_microservices_test.proto.userapi.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetMe", Handler: _UserService_GetMe_Handler, }, { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, { MethodName: "GetUserByEmail", Handler: _UserService_GetUserByEmail_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user.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 RegisterAuthServiceHandler ¶
func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthServiceHandler registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthServiceHandlerClient ¶
func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
RegisterAuthServiceHandlerClient registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthServiceClient" to call the correct interceptors.
func RegisterAuthServiceHandlerFromEndpoint ¶
func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthServiceHandlerServer ¶
func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error
RegisterAuthServiceHandlerServer registers the http handlers for service AuthService to "mux". UnaryRPC :call AuthServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthServiceHandlerFromEndpoint instead.
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterCategoryServiceHandler ¶
func RegisterCategoryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCategoryServiceHandler registers the http handlers for service CategoryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCategoryServiceHandlerClient ¶
func RegisterCategoryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CategoryServiceClient) error
RegisterCategoryServiceHandlerClient registers the http handlers for service CategoryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CategoryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CategoryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CategoryServiceClient" to call the correct interceptors.
func RegisterCategoryServiceHandlerFromEndpoint ¶
func RegisterCategoryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCategoryServiceHandlerFromEndpoint is same as RegisterCategoryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCategoryServiceHandlerServer ¶
func RegisterCategoryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CategoryServiceServer) error
RegisterCategoryServiceHandlerServer registers the http handlers for service CategoryService to "mux". UnaryRPC :call CategoryServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCategoryServiceHandlerFromEndpoint instead.
func RegisterCategoryServiceServer ¶
func RegisterCategoryServiceServer(s grpc.ServiceRegistrar, srv CategoryServiceServer)
func RegisterNoteServiceHandler ¶
func RegisterNoteServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNoteServiceHandler registers the http handlers for service NoteService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNoteServiceHandlerClient ¶
func RegisterNoteServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NoteServiceClient) error
RegisterNoteServiceHandlerClient registers the http handlers for service NoteService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NoteServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NoteServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NoteServiceClient" to call the correct interceptors.
func RegisterNoteServiceHandlerFromEndpoint ¶
func RegisterNoteServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNoteServiceHandlerFromEndpoint is same as RegisterNoteServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNoteServiceHandlerServer ¶
func RegisterNoteServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NoteServiceServer) error
RegisterNoteServiceHandlerServer registers the http handlers for service NoteService to "mux". UnaryRPC :call NoteServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNoteServiceHandlerFromEndpoint instead.
func RegisterNoteServiceServer ¶
func RegisterNoteServiceServer(s grpc.ServiceRegistrar, srv NoteServiceServer)
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserServiceHandlerClient ¶
func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.
func RegisterUserServiceHandlerFromEndpoint ¶
func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserServiceHandlerServer ¶
func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead.
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*SignUpResponse, error) SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error) SignOut(ctx context.Context, in *SignOutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetSession(ctx context.Context, in *GetSessionRequest, opts ...grpc.CallOption) (*Session, error) }
AuthServiceClient is the client API for AuthService 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.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error) SignIn(context.Context, *SignInRequest) (*SignInResponse, error) SignOut(context.Context, *SignOutRequest) (*emptypb.Empty, error) GetSession(context.Context, *GetSessionRequest) (*Session, error) }
AuthServiceServer is the server API for AuthService service. All implementations should embed UnimplementedAuthServiceServer for forward compatibility
type Category ¶
type Category struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Pinned bool `protobuf:"varint,4,opt,name=pinned,proto3" json:"pinned,omitempty"` Priority int32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Category) Descriptor
deprecated
func (*Category) GetCreatedAt ¶
func (x *Category) GetCreatedAt() *timestamppb.Timestamp
func (*Category) GetPriority ¶
func (*Category) GetUpdatedAt ¶
func (x *Category) GetUpdatedAt() *timestamppb.Timestamp
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
type CategoryServiceClient ¶
type CategoryServiceClient interface { ListCategories(ctx context.Context, in *ListCategoriesRequest, opts ...grpc.CallOption) (*ListCategoriesResponse, error) GetCategory(ctx context.Context, in *GetCategoryRequest, opts ...grpc.CallOption) (*Category, error) CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*Category, error) UpdateCategory(ctx context.Context, in *UpdateCategoryRequest, opts ...grpc.CallOption) (*Category, error) DeleteCategory(ctx context.Context, in *DeleteCategoryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
CategoryServiceClient is the client API for CategoryService 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.
func NewCategoryServiceClient ¶
func NewCategoryServiceClient(cc grpc.ClientConnInterface) CategoryServiceClient
type CategoryServiceServer ¶
type CategoryServiceServer interface { ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error) GetCategory(context.Context, *GetCategoryRequest) (*Category, error) CreateCategory(context.Context, *CreateCategoryRequest) (*Category, error) UpdateCategory(context.Context, *UpdateCategoryRequest) (*Category, error) DeleteCategory(context.Context, *DeleteCategoryRequest) (*emptypb.Empty, error) }
CategoryServiceServer is the server API for CategoryService service. All implementations should embed UnimplementedCategoryServiceServer for forward compatibility
type CreateCategoryRequest ¶
type CreateCategoryRequest struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Pinned bool `protobuf:"varint,2,opt,name=pinned,proto3" json:"pinned,omitempty"` Priority int32 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"` // contains filtered or unexported fields }
func (*CreateCategoryRequest) Descriptor
deprecated
func (*CreateCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCategoryRequest.ProtoReflect.Descriptor instead.
func (*CreateCategoryRequest) GetPinned ¶
func (x *CreateCategoryRequest) GetPinned() bool
func (*CreateCategoryRequest) GetPriority ¶
func (x *CreateCategoryRequest) GetPriority() int32
func (*CreateCategoryRequest) GetTitle ¶
func (x *CreateCategoryRequest) GetTitle() string
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 CreateNoteRequest ¶
type CreateNoteRequest struct { CategoryId *string `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3,oneof" json:"category_id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` Pinned bool `protobuf:"varint,4,opt,name=pinned,proto3" json:"pinned,omitempty"` Priority int32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` // contains filtered or unexported fields }
func (*CreateNoteRequest) Descriptor
deprecated
func (*CreateNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateNoteRequest.ProtoReflect.Descriptor instead.
func (*CreateNoteRequest) GetCategoryId ¶
func (x *CreateNoteRequest) GetCategoryId() string
func (*CreateNoteRequest) GetContent ¶
func (x *CreateNoteRequest) GetContent() string
func (*CreateNoteRequest) GetPinned ¶
func (x *CreateNoteRequest) GetPinned() bool
func (*CreateNoteRequest) GetPriority ¶
func (x *CreateNoteRequest) GetPriority() int32
func (*CreateNoteRequest) GetTitle ¶
func (x *CreateNoteRequest) GetTitle() string
func (*CreateNoteRequest) ProtoMessage ¶
func (*CreateNoteRequest) ProtoMessage()
func (*CreateNoteRequest) ProtoReflect ¶
func (x *CreateNoteRequest) ProtoReflect() protoreflect.Message
func (*CreateNoteRequest) Reset ¶
func (x *CreateNoteRequest) Reset()
func (*CreateNoteRequest) String ¶
func (x *CreateNoteRequest) String() string
type CreateUserRequest ¶
type CreateUserRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetEmail ¶
func (x *CreateUserRequest) GetEmail() string
func (*CreateUserRequest) GetPassword ¶
func (x *CreateUserRequest) GetPassword() string
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 DeleteCategoryRequest ¶
type DeleteCategoryRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCategoryRequest) Descriptor
deprecated
func (*DeleteCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCategoryRequest.ProtoReflect.Descriptor instead.
func (*DeleteCategoryRequest) GetId ¶
func (x *DeleteCategoryRequest) GetId() 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 DeleteNoteRequest ¶
type DeleteNoteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteNoteRequest) Descriptor
deprecated
func (*DeleteNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNoteRequest.ProtoReflect.Descriptor instead.
func (*DeleteNoteRequest) GetId ¶
func (x *DeleteNoteRequest) GetId() string
func (*DeleteNoteRequest) ProtoMessage ¶
func (*DeleteNoteRequest) ProtoMessage()
func (*DeleteNoteRequest) ProtoReflect ¶
func (x *DeleteNoteRequest) ProtoReflect() protoreflect.Message
func (*DeleteNoteRequest) Reset ¶
func (x *DeleteNoteRequest) Reset()
func (*DeleteNoteRequest) String ¶
func (x *DeleteNoteRequest) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct {
// contains filtered or unexported fields
}
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
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 GetCategoryRequest ¶
type GetCategoryRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCategoryRequest) Descriptor
deprecated
func (*GetCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCategoryRequest.ProtoReflect.Descriptor instead.
func (*GetCategoryRequest) GetId ¶
func (x *GetCategoryRequest) GetId() 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 GetMeRequest ¶
type GetMeRequest struct {
// contains filtered or unexported fields
}
func (*GetMeRequest) Descriptor
deprecated
func (*GetMeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMeRequest.ProtoReflect.Descriptor instead.
func (*GetMeRequest) ProtoMessage ¶
func (*GetMeRequest) ProtoMessage()
func (*GetMeRequest) ProtoReflect ¶
func (x *GetMeRequest) ProtoReflect() protoreflect.Message
func (*GetMeRequest) Reset ¶
func (x *GetMeRequest) Reset()
func (*GetMeRequest) String ¶
func (x *GetMeRequest) String() string
type GetNoteRequest ¶
type GetNoteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetNoteRequest) Descriptor
deprecated
func (*GetNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNoteRequest.ProtoReflect.Descriptor instead.
func (*GetNoteRequest) GetId ¶
func (x *GetNoteRequest) GetId() string
func (*GetNoteRequest) ProtoMessage ¶
func (*GetNoteRequest) ProtoMessage()
func (*GetNoteRequest) ProtoReflect ¶
func (x *GetNoteRequest) ProtoReflect() protoreflect.Message
func (*GetNoteRequest) Reset ¶
func (x *GetNoteRequest) Reset()
func (*GetNoteRequest) String ¶
func (x *GetNoteRequest) String() string
type GetSessionRequest ¶
type GetSessionRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GetSessionRequest) Descriptor
deprecated
func (*GetSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionRequest.ProtoReflect.Descriptor instead.
func (*GetSessionRequest) GetToken ¶
func (x *GetSessionRequest) GetToken() string
func (*GetSessionRequest) ProtoMessage ¶
func (*GetSessionRequest) ProtoMessage()
func (*GetSessionRequest) ProtoReflect ¶
func (x *GetSessionRequest) ProtoReflect() protoreflect.Message
func (*GetSessionRequest) Reset ¶
func (x *GetSessionRequest) Reset()
func (*GetSessionRequest) String ¶
func (x *GetSessionRequest) String() string
type GetUserByEmailRequest ¶
type GetUserByEmailRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetUserByEmailRequest) Descriptor
deprecated
func (*GetUserByEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByEmailRequest.ProtoReflect.Descriptor instead.
func (*GetUserByEmailRequest) GetEmail ¶
func (x *GetUserByEmailRequest) GetEmail() string
func (*GetUserByEmailRequest) ProtoMessage ¶
func (*GetUserByEmailRequest) ProtoMessage()
func (*GetUserByEmailRequest) ProtoReflect ¶
func (x *GetUserByEmailRequest) ProtoReflect() protoreflect.Message
func (*GetUserByEmailRequest) Reset ¶
func (x *GetUserByEmailRequest) Reset()
func (*GetUserByEmailRequest) String ¶
func (x *GetUserByEmailRequest) String() string
type ListCategoriesRequest ¶
type ListCategoriesRequest struct { Limit *int32 `protobuf:"varint,1,opt,name=limit,proto3,oneof" json:"limit,omitempty"` Offset *int32 `protobuf:"varint,2,opt,name=offset,proto3,oneof" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListCategoriesRequest) Descriptor
deprecated
func (*ListCategoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCategoriesRequest.ProtoReflect.Descriptor instead.
func (*ListCategoriesRequest) GetLimit ¶
func (x *ListCategoriesRequest) GetLimit() int32
func (*ListCategoriesRequest) GetOffset ¶
func (x *ListCategoriesRequest) GetOffset() int32
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 []*Category `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() []*Category
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 ListNotesRequest ¶
type ListNotesRequest struct { Limit *int32 `protobuf:"varint,1,opt,name=limit,proto3,oneof" json:"limit,omitempty"` Offset *int32 `protobuf:"varint,2,opt,name=offset,proto3,oneof" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListNotesRequest) Descriptor
deprecated
func (*ListNotesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNotesRequest.ProtoReflect.Descriptor instead.
func (*ListNotesRequest) GetLimit ¶
func (x *ListNotesRequest) GetLimit() int32
func (*ListNotesRequest) GetOffset ¶
func (x *ListNotesRequest) GetOffset() int32
func (*ListNotesRequest) ProtoMessage ¶
func (*ListNotesRequest) ProtoMessage()
func (*ListNotesRequest) ProtoReflect ¶
func (x *ListNotesRequest) ProtoReflect() protoreflect.Message
func (*ListNotesRequest) Reset ¶
func (x *ListNotesRequest) Reset()
func (*ListNotesRequest) String ¶
func (x *ListNotesRequest) String() string
type ListNotesResponse ¶
type ListNotesResponse struct { Notes []*Note `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"` // contains filtered or unexported fields }
func (*ListNotesResponse) Descriptor
deprecated
func (*ListNotesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNotesResponse.ProtoReflect.Descriptor instead.
func (*ListNotesResponse) GetNotes ¶
func (x *ListNotesResponse) GetNotes() []*Note
func (*ListNotesResponse) ProtoMessage ¶
func (*ListNotesResponse) ProtoMessage()
func (*ListNotesResponse) ProtoReflect ¶
func (x *ListNotesResponse) ProtoReflect() protoreflect.Message
func (*ListNotesResponse) Reset ¶
func (x *ListNotesResponse) Reset()
func (*ListNotesResponse) String ¶
func (x *ListNotesResponse) String() string
type Note ¶
type Note struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` CategoryId *string `protobuf:"bytes,3,opt,name=category_id,json=categoryId,proto3,oneof" json:"category_id,omitempty"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` Pinned bool `protobuf:"varint,6,opt,name=pinned,proto3" json:"pinned,omitempty"` Priority int32 `protobuf:"varint,7,opt,name=priority,proto3" json:"priority,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Note) Descriptor
deprecated
func (*Note) GetCategoryId ¶
func (*Note) GetContent ¶
func (*Note) GetCreatedAt ¶
func (x *Note) GetCreatedAt() *timestamppb.Timestamp
func (*Note) GetPriority ¶
func (*Note) GetUpdatedAt ¶
func (x *Note) GetUpdatedAt() *timestamppb.Timestamp
func (*Note) ProtoMessage ¶
func (*Note) ProtoMessage()
func (*Note) ProtoReflect ¶
func (x *Note) ProtoReflect() protoreflect.Message
type NoteServiceClient ¶
type NoteServiceClient interface { ListNotes(ctx context.Context, in *ListNotesRequest, opts ...grpc.CallOption) (*ListNotesResponse, error) GetNote(ctx context.Context, in *GetNoteRequest, opts ...grpc.CallOption) (*Note, error) CreateNote(ctx context.Context, in *CreateNoteRequest, opts ...grpc.CallOption) (*Note, error) UpdateNote(ctx context.Context, in *UpdateNoteRequest, opts ...grpc.CallOption) (*Note, error) DeleteNote(ctx context.Context, in *DeleteNoteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
NoteServiceClient is the client API for NoteService 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.
func NewNoteServiceClient ¶
func NewNoteServiceClient(cc grpc.ClientConnInterface) NoteServiceClient
type NoteServiceServer ¶
type NoteServiceServer interface { ListNotes(context.Context, *ListNotesRequest) (*ListNotesResponse, error) GetNote(context.Context, *GetNoteRequest) (*Note, error) CreateNote(context.Context, *CreateNoteRequest) (*Note, error) UpdateNote(context.Context, *UpdateNoteRequest) (*Note, error) DeleteNote(context.Context, *DeleteNoteRequest) (*emptypb.Empty, error) }
NoteServiceServer is the server API for NoteService service. All implementations should embed UnimplementedNoteServiceServer for forward compatibility
type Session ¶
type Session struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*Session) Descriptor
deprecated
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
type SignInRequest ¶
type SignInRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SignInRequest) Descriptor
deprecated
func (*SignInRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
func (*SignInRequest) GetEmail ¶
func (x *SignInRequest) GetEmail() string
func (*SignInRequest) GetPassword ¶
func (x *SignInRequest) GetPassword() string
func (*SignInRequest) ProtoMessage ¶
func (*SignInRequest) ProtoMessage()
func (*SignInRequest) ProtoReflect ¶
func (x *SignInRequest) ProtoReflect() protoreflect.Message
func (*SignInRequest) Reset ¶
func (x *SignInRequest) Reset()
func (*SignInRequest) String ¶
func (x *SignInRequest) String() string
type SignInResponse ¶
type SignInResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*SignInResponse) Descriptor
deprecated
func (*SignInResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.
func (*SignInResponse) GetToken ¶
func (x *SignInResponse) GetToken() string
func (*SignInResponse) ProtoMessage ¶
func (*SignInResponse) ProtoMessage()
func (*SignInResponse) ProtoReflect ¶
func (x *SignInResponse) ProtoReflect() protoreflect.Message
func (*SignInResponse) Reset ¶
func (x *SignInResponse) Reset()
func (*SignInResponse) String ¶
func (x *SignInResponse) String() string
type SignOutRequest ¶
type SignOutRequest struct {
// contains filtered or unexported fields
}
func (*SignOutRequest) Descriptor
deprecated
func (*SignOutRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignOutRequest.ProtoReflect.Descriptor instead.
func (*SignOutRequest) ProtoMessage ¶
func (*SignOutRequest) ProtoMessage()
func (*SignOutRequest) ProtoReflect ¶
func (x *SignOutRequest) ProtoReflect() protoreflect.Message
func (*SignOutRequest) Reset ¶
func (x *SignOutRequest) Reset()
func (*SignOutRequest) String ¶
func (x *SignOutRequest) String() string
type SignUpRequest ¶
type SignUpRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SignUpRequest) Descriptor
deprecated
func (*SignUpRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
func (*SignUpRequest) GetEmail ¶
func (x *SignUpRequest) GetEmail() string
func (*SignUpRequest) GetPassword ¶
func (x *SignUpRequest) GetPassword() string
func (*SignUpRequest) ProtoMessage ¶
func (*SignUpRequest) ProtoMessage()
func (*SignUpRequest) ProtoReflect ¶
func (x *SignUpRequest) ProtoReflect() protoreflect.Message
func (*SignUpRequest) Reset ¶
func (x *SignUpRequest) Reset()
func (*SignUpRequest) String ¶
func (x *SignUpRequest) String() string
type SignUpResponse ¶
type SignUpResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*SignUpResponse) Descriptor
deprecated
func (*SignUpResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignUpResponse.ProtoReflect.Descriptor instead.
func (*SignUpResponse) GetToken ¶
func (x *SignUpResponse) GetToken() string
func (*SignUpResponse) ProtoMessage ¶
func (*SignUpResponse) ProtoMessage()
func (*SignUpResponse) ProtoReflect ¶
func (x *SignUpResponse) ProtoReflect() protoreflect.Message
func (*SignUpResponse) Reset ¶
func (x *SignUpResponse) Reset()
func (*SignUpResponse) String ¶
func (x *SignUpResponse) String() string
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) GetSession ¶
func (UnimplementedAuthServiceServer) GetSession(context.Context, *GetSessionRequest) (*Session, error)
func (UnimplementedAuthServiceServer) SignIn ¶
func (UnimplementedAuthServiceServer) SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
func (UnimplementedAuthServiceServer) SignOut ¶
func (UnimplementedAuthServiceServer) SignOut(context.Context, *SignOutRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServiceServer) SignUp ¶
func (UnimplementedAuthServiceServer) SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error)
type UnimplementedCategoryServiceServer ¶
type UnimplementedCategoryServiceServer struct { }
UnimplementedCategoryServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedCategoryServiceServer) CreateCategory ¶
func (UnimplementedCategoryServiceServer) CreateCategory(context.Context, *CreateCategoryRequest) (*Category, error)
func (UnimplementedCategoryServiceServer) DeleteCategory ¶
func (UnimplementedCategoryServiceServer) DeleteCategory(context.Context, *DeleteCategoryRequest) (*emptypb.Empty, error)
func (UnimplementedCategoryServiceServer) GetCategory ¶
func (UnimplementedCategoryServiceServer) GetCategory(context.Context, *GetCategoryRequest) (*Category, error)
func (UnimplementedCategoryServiceServer) ListCategories ¶
func (UnimplementedCategoryServiceServer) ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
func (UnimplementedCategoryServiceServer) UpdateCategory ¶
func (UnimplementedCategoryServiceServer) UpdateCategory(context.Context, *UpdateCategoryRequest) (*Category, error)
type UnimplementedNoteServiceServer ¶
type UnimplementedNoteServiceServer struct { }
UnimplementedNoteServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedNoteServiceServer) CreateNote ¶
func (UnimplementedNoteServiceServer) CreateNote(context.Context, *CreateNoteRequest) (*Note, error)
func (UnimplementedNoteServiceServer) DeleteNote ¶
func (UnimplementedNoteServiceServer) DeleteNote(context.Context, *DeleteNoteRequest) (*emptypb.Empty, error)
func (UnimplementedNoteServiceServer) GetNote ¶
func (UnimplementedNoteServiceServer) GetNote(context.Context, *GetNoteRequest) (*Note, error)
func (UnimplementedNoteServiceServer) ListNotes ¶
func (UnimplementedNoteServiceServer) ListNotes(context.Context, *ListNotesRequest) (*ListNotesResponse, error)
func (UnimplementedNoteServiceServer) UpdateNote ¶
func (UnimplementedNoteServiceServer) UpdateNote(context.Context, *UpdateNoteRequest) (*Note, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
func (UnimplementedUserServiceServer) GetMe ¶
func (UnimplementedUserServiceServer) GetMe(context.Context, *GetMeRequest) (*User, error)
func (UnimplementedUserServiceServer) GetUserByEmail ¶
func (UnimplementedUserServiceServer) GetUserByEmail(context.Context, *GetUserByEmailRequest) (*User, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeCategoryServiceServer ¶
type UnsafeCategoryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCategoryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CategoryServiceServer will result in compilation errors.
type UnsafeNoteServiceServer ¶
type UnsafeNoteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNoteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NoteServiceServer 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 UpdateCategoryRequest ¶
type UpdateCategoryRequest 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"` Pinned bool `protobuf:"varint,3,opt,name=pinned,proto3" json:"pinned,omitempty"` Priority int32 `protobuf:"varint,4,opt,name=priority,proto3" json:"priority,omitempty"` // contains filtered or unexported fields }
func (*UpdateCategoryRequest) Descriptor
deprecated
func (*UpdateCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCategoryRequest.ProtoReflect.Descriptor instead.
func (*UpdateCategoryRequest) GetId ¶
func (x *UpdateCategoryRequest) GetId() string
func (*UpdateCategoryRequest) GetPinned ¶
func (x *UpdateCategoryRequest) GetPinned() bool
func (*UpdateCategoryRequest) GetPriority ¶
func (x *UpdateCategoryRequest) GetPriority() int32
func (*UpdateCategoryRequest) GetTitle ¶
func (x *UpdateCategoryRequest) GetTitle() string
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 UpdateNoteRequest ¶
type UpdateNoteRequest 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"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` Pinned bool `protobuf:"varint,4,opt,name=pinned,proto3" json:"pinned,omitempty"` Priority int32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` // contains filtered or unexported fields }
func (*UpdateNoteRequest) Descriptor
deprecated
func (*UpdateNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNoteRequest.ProtoReflect.Descriptor instead.
func (*UpdateNoteRequest) GetContent ¶
func (x *UpdateNoteRequest) GetContent() string
func (*UpdateNoteRequest) GetId ¶
func (x *UpdateNoteRequest) GetId() string
func (*UpdateNoteRequest) GetPinned ¶
func (x *UpdateNoteRequest) GetPinned() bool
func (*UpdateNoteRequest) GetPriority ¶
func (x *UpdateNoteRequest) GetPriority() int32
func (*UpdateNoteRequest) GetTitle ¶
func (x *UpdateNoteRequest) GetTitle() string
func (*UpdateNoteRequest) ProtoMessage ¶
func (*UpdateNoteRequest) ProtoMessage()
func (*UpdateNoteRequest) ProtoReflect ¶
func (x *UpdateNoteRequest) ProtoReflect() protoreflect.Message
func (*UpdateNoteRequest) Reset ¶
func (x *UpdateNoteRequest) Reset()
func (*UpdateNoteRequest) String ¶
func (x *UpdateNoteRequest) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetFirstName ¶
func (x *UpdateUserRequest) GetFirstName() string
func (*UpdateUserRequest) GetLastName ¶
func (x *UpdateUserRequest) GetLastName() string
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 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"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetFirstName ¶
func (*User) GetLastName ¶
func (*User) GetPassword ¶
func (*User) GetUpdatedAt ¶
func (x *User) GetUpdatedAt() *timestamppb.Timestamp
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { GetMe(ctx context.Context, in *GetMeRequest, opts ...grpc.CallOption) (*User, error) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetUserByEmail(ctx context.Context, in *GetUserByEmailRequest, opts ...grpc.CallOption) (*User, 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.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { GetMe(context.Context, *GetMeRequest) (*User, error) CreateUser(context.Context, *CreateUserRequest) (*User, error) UpdateUser(context.Context, *UpdateUserRequest) (*User, error) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) GetUserByEmail(context.Context, *GetUserByEmailRequest) (*User, error) }
UserServiceServer is the server API for UserService service. All implementations should embed UnimplementedUserServiceServer for forward compatibility