Documentation ¶
Overview ¶
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterArticleServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterArticleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArticleServiceClient) error
- func RegisterArticleServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterArticleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArticleServiceServer) error
- func RegisterArticleServiceServer(s grpc.ServiceRegistrar, srv ArticleServiceServer)
- func RegisterProfileServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProfileServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileServiceClient) error
- func RegisterProfileServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProfileServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServiceServer) error
- func RegisterProfileServiceServer(s grpc.ServiceRegistrar, srv ProfileServiceServer)
- 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 Article
- func (*Article) Descriptor() ([]byte, []int)deprecated
- func (x *Article) GetAuthor() *Profile
- func (x *Article) GetBody() string
- func (x *Article) GetCreatedAt() string
- func (x *Article) GetDescription() string
- func (x *Article) GetFavorited() bool
- func (x *Article) GetFavoritesCount() int32
- func (x *Article) GetSlug() string
- func (x *Article) GetTagList() []string
- func (x *Article) GetTitle() string
- func (x *Article) GetUpdatedAt() string
- func (*Article) ProtoMessage()
- func (x *Article) ProtoReflect() protoreflect.Message
- func (x *Article) Reset()
- func (x *Article) String() string
- type ArticleServiceClient
- type ArticleServiceServer
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetAuthor() *Profile
- func (x *Comment) GetBody() string
- func (x *Comment) GetCreatedAt() string
- func (x *Comment) GetId() int32
- func (x *Comment) GetUpdatedAt() string
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type CreateArticleFavoriteRequest
- func (*CreateArticleFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateArticleFavoriteRequest) GetSlug() string
- func (*CreateArticleFavoriteRequest) ProtoMessage()
- func (x *CreateArticleFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *CreateArticleFavoriteRequest) Reset()
- func (x *CreateArticleFavoriteRequest) String() string
- type CreateProfileRequest
- func (*CreateProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProfileRequest) GetId() string
- func (x *CreateProfileRequest) GetProfile() *ProfileInfo
- func (*CreateProfileRequest) ProtoMessage()
- func (x *CreateProfileRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProfileRequest) Reset()
- func (x *CreateProfileRequest) String() string
- type DeleteArticleCommentRequest
- func (*DeleteArticleCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteArticleCommentRequest) GetId() int32
- func (x *DeleteArticleCommentRequest) GetSlug() string
- func (*DeleteArticleCommentRequest) ProtoMessage()
- func (x *DeleteArticleCommentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteArticleCommentRequest) Reset()
- func (x *DeleteArticleCommentRequest) String() string
- type DeleteArticleFavoriteRequest
- func (*DeleteArticleFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteArticleFavoriteRequest) GetSlug() string
- func (*DeleteArticleFavoriteRequest) ProtoMessage()
- func (x *DeleteArticleFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteArticleFavoriteRequest) Reset()
- func (x *DeleteArticleFavoriteRequest) String() string
- type DeleteArticleRequest
- func (*DeleteArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteArticleRequest) GetSlug() string
- func (*DeleteArticleRequest) ProtoMessage()
- func (x *DeleteArticleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteArticleRequest) Reset()
- func (x *DeleteArticleRequest) String() string
- type FollowRequest
- type FollowedIds
- type GetArticleCommentsRequest
- func (*GetArticleCommentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticleCommentsRequest) GetSlug() string
- func (*GetArticleCommentsRequest) ProtoMessage()
- func (x *GetArticleCommentsRequest) ProtoReflect() protoreflect.Message
- func (x *GetArticleCommentsRequest) Reset()
- func (x *GetArticleCommentsRequest) String() string
- type GetArticleRequest
- type GetArticlesFeedRequest
- func (*GetArticlesFeedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticlesFeedRequest) GetLimit() int32
- func (x *GetArticlesFeedRequest) GetOffset() int32
- func (*GetArticlesFeedRequest) ProtoMessage()
- func (x *GetArticlesFeedRequest) ProtoReflect() protoreflect.Message
- func (x *GetArticlesFeedRequest) Reset()
- func (x *GetArticlesFeedRequest) String() string
- type GetArticlesRequest
- func (*GetArticlesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticlesRequest) GetAuthor() string
- func (x *GetArticlesRequest) GetFavorited() string
- func (x *GetArticlesRequest) GetLimit() int32
- func (x *GetArticlesRequest) GetOffset() int32
- func (x *GetArticlesRequest) GetTag() string
- func (*GetArticlesRequest) ProtoMessage()
- func (x *GetArticlesRequest) ProtoReflect() protoreflect.Message
- func (x *GetArticlesRequest) Reset()
- func (x *GetArticlesRequest) String() string
- type LoginUser
- type LoginUserRequest
- type MultipleArticlesResponse
- func (*MultipleArticlesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MultipleArticlesResponse) GetArticles() []*Article
- func (x *MultipleArticlesResponse) GetArticlesCount() int32
- func (*MultipleArticlesResponse) ProtoMessage()
- func (x *MultipleArticlesResponse) ProtoReflect() protoreflect.Message
- func (x *MultipleArticlesResponse) Reset()
- func (x *MultipleArticlesResponse) String() string
- type MultipleCommentsResponse
- func (*MultipleCommentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MultipleCommentsResponse) GetComments() []*Comment
- func (*MultipleCommentsResponse) ProtoMessage()
- func (x *MultipleCommentsResponse) ProtoReflect() protoreflect.Message
- func (x *MultipleCommentsResponse) Reset()
- func (x *MultipleCommentsResponse) String() string
- type NewArticle
- func (*NewArticle) Descriptor() ([]byte, []int)deprecated
- func (x *NewArticle) GetBody() string
- func (x *NewArticle) GetDescription() string
- func (x *NewArticle) GetTagList() []string
- func (x *NewArticle) GetTitle() string
- func (*NewArticle) ProtoMessage()
- func (x *NewArticle) ProtoReflect() protoreflect.Message
- func (x *NewArticle) Reset()
- func (x *NewArticle) String() string
- type NewArticleRequest
- func (*NewArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewArticleRequest) GetArticle() *NewArticle
- func (*NewArticleRequest) ProtoMessage()
- func (x *NewArticleRequest) ProtoReflect() protoreflect.Message
- func (x *NewArticleRequest) Reset()
- func (x *NewArticleRequest) String() string
- type NewCommentRequest
- func (*NewCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewCommentRequest) GetComment() *NewCommentRequest_NewComment
- func (*NewCommentRequest) ProtoMessage()
- func (x *NewCommentRequest) ProtoReflect() protoreflect.Message
- func (x *NewCommentRequest) Reset()
- func (x *NewCommentRequest) String() string
- type NewCommentRequest_NewComment
- func (*NewCommentRequest_NewComment) Descriptor() ([]byte, []int)deprecated
- func (x *NewCommentRequest_NewComment) GetBody() string
- func (x *NewCommentRequest_NewComment) GetSlug() string
- func (*NewCommentRequest_NewComment) ProtoMessage()
- func (x *NewCommentRequest_NewComment) ProtoReflect() protoreflect.Message
- func (x *NewCommentRequest_NewComment) Reset()
- func (x *NewCommentRequest_NewComment) String() string
- type NewUser
- func (*NewUser) Descriptor() ([]byte, []int)deprecated
- func (x *NewUser) GetEmail() string
- func (x *NewUser) GetPassword() string
- func (x *NewUser) GetUsername() string
- func (*NewUser) ProtoMessage()
- func (x *NewUser) ProtoReflect() protoreflect.Message
- func (x *NewUser) Reset()
- func (x *NewUser) String() string
- type NewUserRequest
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetBio() string
- func (x *Profile) GetFollowing() bool
- func (x *Profile) GetImage() string
- func (x *Profile) GetUsername() string
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type ProfileIdRequest
- type ProfileIdResponse
- type ProfileIdUsernameRequest
- func (*ProfileIdUsernameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileIdUsernameRequest) GetUsername() string
- func (*ProfileIdUsernameRequest) ProtoMessage()
- func (x *ProfileIdUsernameRequest) ProtoReflect() protoreflect.Message
- func (x *ProfileIdUsernameRequest) Reset()
- func (x *ProfileIdUsernameRequest) String() string
- type ProfileInfo
- func (*ProfileInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileInfo) GetBio() string
- func (x *ProfileInfo) GetImage() string
- func (x *ProfileInfo) GetUsername() string
- func (*ProfileInfo) ProtoMessage()
- func (x *ProfileInfo) ProtoReflect() protoreflect.Message
- func (x *ProfileInfo) Reset()
- func (x *ProfileInfo) String() string
- type ProfileResponse
- type ProfileServiceClient
- type ProfileServiceServer
- type ProfileUsernameRequest
- func (*ProfileUsernameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileUsernameRequest) GetUsername() string
- func (*ProfileUsernameRequest) ProtoMessage()
- func (x *ProfileUsernameRequest) ProtoReflect() protoreflect.Message
- func (x *ProfileUsernameRequest) Reset()
- func (x *ProfileUsernameRequest) String() string
- type SingleArticleResponse
- func (*SingleArticleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SingleArticleResponse) GetArticle() *Article
- func (*SingleArticleResponse) ProtoMessage()
- func (x *SingleArticleResponse) ProtoReflect() protoreflect.Message
- func (x *SingleArticleResponse) Reset()
- func (x *SingleArticleResponse) String() string
- type SingleCommentResponse
- func (*SingleCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SingleCommentResponse) GetComment() *Comment
- func (*SingleCommentResponse) ProtoMessage()
- func (x *SingleCommentResponse) ProtoReflect() protoreflect.Message
- func (x *SingleCommentResponse) Reset()
- func (x *SingleCommentResponse) String() string
- type TagsResponse
- type UnfollowRequest
- type UnimplementedArticleServiceServer
- func (UnimplementedArticleServiceServer) CreateArticle(context.Context, *NewArticleRequest) (*SingleArticleResponse, error)
- func (UnimplementedArticleServiceServer) CreateArticleComment(context.Context, *NewCommentRequest) (*SingleCommentResponse, error)
- func (UnimplementedArticleServiceServer) CreateArticleFavorite(context.Context, *CreateArticleFavoriteRequest) (*SingleArticleResponse, error)
- func (UnimplementedArticleServiceServer) DeleteArticle(context.Context, *DeleteArticleRequest) (*emptypb.Empty, error)
- func (UnimplementedArticleServiceServer) DeleteArticleComment(context.Context, *DeleteArticleCommentRequest) (*emptypb.Empty, error)
- func (UnimplementedArticleServiceServer) DeleteArticleFavorite(context.Context, *DeleteArticleFavoriteRequest) (*SingleArticleResponse, error)
- func (UnimplementedArticleServiceServer) GetArticle(context.Context, *GetArticleRequest) (*SingleArticleResponse, error)
- func (UnimplementedArticleServiceServer) GetArticleComments(context.Context, *GetArticleCommentsRequest) (*MultipleCommentsResponse, error)
- func (UnimplementedArticleServiceServer) GetArticles(context.Context, *GetArticlesRequest) (*MultipleArticlesResponse, error)
- func (UnimplementedArticleServiceServer) GetArticlesFeed(context.Context, *GetArticlesFeedRequest) (*MultipleArticlesResponse, error)
- func (UnimplementedArticleServiceServer) GetTags(context.Context, *emptypb.Empty) (*TagsResponse, error)
- func (UnimplementedArticleServiceServer) UpdateArticle(context.Context, *UpdateArticleRequest) (*SingleArticleResponse, error)
- type UnimplementedProfileServiceServer
- func (UnimplementedProfileServiceServer) CreateProfile(context.Context, *CreateProfileRequest) (*ProfileInfo, error)
- func (UnimplementedProfileServiceServer) FollowUserByUsername(context.Context, *FollowRequest) (*ProfileResponse, error)
- func (UnimplementedProfileServiceServer) GetFollowedProfileIds(context.Context, *emptypb.Empty) (*FollowedIds, error)
- func (UnimplementedProfileServiceServer) GetProfileById(context.Context, *ProfileIdRequest) (*ProfileResponse, error)
- func (UnimplementedProfileServiceServer) GetProfileByUsername(context.Context, *ProfileUsernameRequest) (*ProfileResponse, error)
- func (UnimplementedProfileServiceServer) GetProfileIdByUsername(context.Context, *ProfileIdUsernameRequest) (*ProfileIdResponse, error)
- func (UnimplementedProfileServiceServer) UnfollowUserByUsername(context.Context, *UnfollowRequest) (*ProfileResponse, error)
- func (UnimplementedProfileServiceServer) UpdateProfile(context.Context, *UpdateProfileRequest) (*ProfileInfo, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *NewUserRequest) (*UserResponse, error)
- func (UnimplementedUserServiceServer) GetCurrentUser(context.Context, *emptypb.Empty) (*UserResponse, error)
- func (UnimplementedUserServiceServer) Login(context.Context, *LoginUserRequest) (*UserResponse, error)
- func (UnimplementedUserServiceServer) UpdateCurrentUser(context.Context, *UpdateUserRequest) (*UserResponse, error)
- type UnsafeArticleServiceServer
- type UnsafeProfileServiceServer
- type UnsafeUserServiceServer
- type UpdateArticleRequest
- func (*UpdateArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateArticleRequest) GetArticle() *UpdateArticleRequest_UpdateArticle
- func (*UpdateArticleRequest) ProtoMessage()
- func (x *UpdateArticleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateArticleRequest) Reset()
- func (x *UpdateArticleRequest) String() string
- type UpdateArticleRequest_UpdateArticle
- func (*UpdateArticleRequest_UpdateArticle) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateArticleRequest_UpdateArticle) GetBody() string
- func (x *UpdateArticleRequest_UpdateArticle) GetDescription() string
- func (x *UpdateArticleRequest_UpdateArticle) GetSlug() string
- func (x *UpdateArticleRequest_UpdateArticle) GetTitle() string
- func (*UpdateArticleRequest_UpdateArticle) ProtoMessage()
- func (x *UpdateArticleRequest_UpdateArticle) ProtoReflect() protoreflect.Message
- func (x *UpdateArticleRequest_UpdateArticle) Reset()
- func (x *UpdateArticleRequest_UpdateArticle) String() string
- type UpdateProfileRequest
- func (*UpdateProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProfileRequest) GetId() string
- func (x *UpdateProfileRequest) GetProfile() *ProfileInfo
- func (*UpdateProfileRequest) ProtoMessage()
- func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProfileRequest) Reset()
- func (x *UpdateProfileRequest) String() string
- type UpdateUser
- func (*UpdateUser) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUser) GetBio() string
- func (x *UpdateUser) GetEmail() string
- func (x *UpdateUser) GetImage() string
- func (x *UpdateUser) GetToken() string
- func (x *UpdateUser) GetUsername() string
- func (*UpdateUser) ProtoMessage()
- func (x *UpdateUser) ProtoReflect() protoreflect.Message
- func (x *UpdateUser) Reset()
- func (x *UpdateUser) String() string
- type UpdateUserRequest
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetBio() string
- func (x *User) GetEmail() string
- func (x *User) GetImage() string
- func (x *User) GetToken() string
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserResponse
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var ArticleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "article.ArticleService", HandlerType: (*ArticleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetArticles", Handler: _ArticleService_GetArticles_Handler, }, { MethodName: "CreateArticle", Handler: _ArticleService_CreateArticle_Handler, }, { MethodName: "GetArticle", Handler: _ArticleService_GetArticle_Handler, }, { MethodName: "GetArticlesFeed", Handler: _ArticleService_GetArticlesFeed_Handler, }, { MethodName: "UpdateArticle", Handler: _ArticleService_UpdateArticle_Handler, }, { MethodName: "DeleteArticle", Handler: _ArticleService_DeleteArticle_Handler, }, { MethodName: "GetArticleComments", Handler: _ArticleService_GetArticleComments_Handler, }, { MethodName: "CreateArticleComment", Handler: _ArticleService_CreateArticleComment_Handler, }, { MethodName: "DeleteArticleComment", Handler: _ArticleService_DeleteArticleComment_Handler, }, { MethodName: "CreateArticleFavorite", Handler: _ArticleService_CreateArticleFavorite_Handler, }, { MethodName: "DeleteArticleFavorite", Handler: _ArticleService_DeleteArticleFavorite_Handler, }, { MethodName: "GetTags", Handler: _ArticleService_GetTags_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "article_service.proto", }
ArticleService_ServiceDesc is the grpc.ServiceDesc for ArticleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_article_service_proto protoreflect.FileDescriptor
var File_profile_service_proto protoreflect.FileDescriptor
var File_user_service_proto protoreflect.FileDescriptor
var ProfileService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "profile.ProfileService", HandlerType: (*ProfileServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetProfileByUsername", Handler: _ProfileService_GetProfileByUsername_Handler, }, { MethodName: "FollowUserByUsername", Handler: _ProfileService_FollowUserByUsername_Handler, }, { MethodName: "UnfollowUserByUsername", Handler: _ProfileService_UnfollowUserByUsername_Handler, }, { MethodName: "GetProfileById", Handler: _ProfileService_GetProfileById_Handler, }, { MethodName: "CreateProfile", Handler: _ProfileService_CreateProfile_Handler, }, { MethodName: "UpdateProfile", Handler: _ProfileService_UpdateProfile_Handler, }, { MethodName: "GetProfileIdByUsername", Handler: _ProfileService_GetProfileIdByUsername_Handler, }, { MethodName: "GetFollowedProfileIds", Handler: _ProfileService_GetFollowedProfileIds_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "profile_service.proto", }
ProfileService_ServiceDesc is the grpc.ServiceDesc for ProfileService 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: "user.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _UserService_Login_Handler, }, { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "GetCurrentUser", Handler: _UserService_GetCurrentUser_Handler, }, { MethodName: "UpdateCurrentUser", Handler: _UserService_UpdateCurrentUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user_service.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 RegisterArticleServiceHandler ¶
func RegisterArticleServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterArticleServiceHandler registers the http handlers for service ArticleService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterArticleServiceHandlerClient ¶
func RegisterArticleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArticleServiceClient) error
RegisterArticleServiceHandlerClient registers the http handlers for service ArticleService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ArticleServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ArticleServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ArticleServiceClient" to call the correct interceptors.
func RegisterArticleServiceHandlerFromEndpoint ¶
func RegisterArticleServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterArticleServiceHandlerFromEndpoint is same as RegisterArticleServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterArticleServiceHandlerServer ¶
func RegisterArticleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArticleServiceServer) error
RegisterArticleServiceHandlerServer registers the http handlers for service ArticleService to "mux". UnaryRPC :call ArticleServiceServer 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 RegisterArticleServiceHandlerFromEndpoint instead.
func RegisterArticleServiceServer ¶
func RegisterArticleServiceServer(s grpc.ServiceRegistrar, srv ArticleServiceServer)
func RegisterProfileServiceHandler ¶
func RegisterProfileServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterProfileServiceHandler registers the http handlers for service ProfileService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterProfileServiceHandlerClient ¶
func RegisterProfileServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileServiceClient) error
RegisterProfileServiceHandlerClient registers the http handlers for service ProfileService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProfileServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProfileServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProfileServiceClient" to call the correct interceptors.
func RegisterProfileServiceHandlerFromEndpoint ¶
func RegisterProfileServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterProfileServiceHandlerFromEndpoint is same as RegisterProfileServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterProfileServiceHandlerServer ¶
func RegisterProfileServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServiceServer) error
RegisterProfileServiceHandlerServer registers the http handlers for service ProfileService to "mux". UnaryRPC :call ProfileServiceServer 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 RegisterProfileServiceHandlerFromEndpoint instead.
func RegisterProfileServiceServer ¶
func RegisterProfileServiceServer(s grpc.ServiceRegistrar, srv ProfileServiceServer)
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 Article ¶
type Article struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` TagList []string `protobuf:"bytes,5,rep,name=tagList,proto3" json:"tagList,omitempty"` CreatedAt string `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt string `protobuf:"bytes,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` Favorited bool `protobuf:"varint,8,opt,name=favorited,proto3" json:"favorited,omitempty"` FavoritesCount int32 `protobuf:"varint,9,opt,name=favoritesCount,proto3" json:"favoritesCount,omitempty"` Author *Profile `protobuf:"bytes,10,opt,name=author,proto3" json:"author,omitempty"` // contains filtered or unexported fields }
func (*Article) Descriptor
deprecated
func (*Article) GetCreatedAt ¶
func (*Article) GetDescription ¶
func (*Article) GetFavorited ¶
func (*Article) GetFavoritesCount ¶
func (*Article) GetTagList ¶
func (*Article) GetUpdatedAt ¶
func (*Article) ProtoMessage ¶
func (*Article) ProtoMessage()
func (*Article) ProtoReflect ¶
func (x *Article) ProtoReflect() protoreflect.Message
type ArticleServiceClient ¶
type ArticleServiceClient interface { GetArticles(ctx context.Context, in *GetArticlesRequest, opts ...grpc.CallOption) (*MultipleArticlesResponse, error) CreateArticle(ctx context.Context, in *NewArticleRequest, opts ...grpc.CallOption) (*SingleArticleResponse, error) GetArticle(ctx context.Context, in *GetArticleRequest, opts ...grpc.CallOption) (*SingleArticleResponse, error) GetArticlesFeed(ctx context.Context, in *GetArticlesFeedRequest, opts ...grpc.CallOption) (*MultipleArticlesResponse, error) UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...grpc.CallOption) (*SingleArticleResponse, error) DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetArticleComments(ctx context.Context, in *GetArticleCommentsRequest, opts ...grpc.CallOption) (*MultipleCommentsResponse, error) CreateArticleComment(ctx context.Context, in *NewCommentRequest, opts ...grpc.CallOption) (*SingleCommentResponse, error) DeleteArticleComment(ctx context.Context, in *DeleteArticleCommentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CreateArticleFavorite(ctx context.Context, in *CreateArticleFavoriteRequest, opts ...grpc.CallOption) (*SingleArticleResponse, error) DeleteArticleFavorite(ctx context.Context, in *DeleteArticleFavoriteRequest, opts ...grpc.CallOption) (*SingleArticleResponse, error) GetTags(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TagsResponse, error) }
ArticleServiceClient is the client API for ArticleService 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 NewArticleServiceClient ¶
func NewArticleServiceClient(cc grpc.ClientConnInterface) ArticleServiceClient
type ArticleServiceServer ¶
type ArticleServiceServer interface { GetArticles(context.Context, *GetArticlesRequest) (*MultipleArticlesResponse, error) CreateArticle(context.Context, *NewArticleRequest) (*SingleArticleResponse, error) GetArticle(context.Context, *GetArticleRequest) (*SingleArticleResponse, error) GetArticlesFeed(context.Context, *GetArticlesFeedRequest) (*MultipleArticlesResponse, error) UpdateArticle(context.Context, *UpdateArticleRequest) (*SingleArticleResponse, error) DeleteArticle(context.Context, *DeleteArticleRequest) (*emptypb.Empty, error) GetArticleComments(context.Context, *GetArticleCommentsRequest) (*MultipleCommentsResponse, error) CreateArticleComment(context.Context, *NewCommentRequest) (*SingleCommentResponse, error) DeleteArticleComment(context.Context, *DeleteArticleCommentRequest) (*emptypb.Empty, error) CreateArticleFavorite(context.Context, *CreateArticleFavoriteRequest) (*SingleArticleResponse, error) DeleteArticleFavorite(context.Context, *DeleteArticleFavoriteRequest) (*SingleArticleResponse, error) GetTags(context.Context, *emptypb.Empty) (*TagsResponse, error) // contains filtered or unexported methods }
ArticleServiceServer is the server API for ArticleService service. All implementations must embed UnimplementedArticleServiceServer for forward compatibility
type Comment ¶
type Comment struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt string `protobuf:"bytes,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt string `protobuf:"bytes,3,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` Author *Profile `protobuf:"bytes,5,opt,name=author,proto3" json:"author,omitempty"` // contains filtered or unexported fields }
func (*Comment) Descriptor
deprecated
func (*Comment) GetCreatedAt ¶
func (*Comment) GetUpdatedAt ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type CreateArticleFavoriteRequest ¶
type CreateArticleFavoriteRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` // contains filtered or unexported fields }
func (*CreateArticleFavoriteRequest) Descriptor
deprecated
func (*CreateArticleFavoriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateArticleFavoriteRequest.ProtoReflect.Descriptor instead.
func (*CreateArticleFavoriteRequest) GetSlug ¶
func (x *CreateArticleFavoriteRequest) GetSlug() string
func (*CreateArticleFavoriteRequest) ProtoMessage ¶
func (*CreateArticleFavoriteRequest) ProtoMessage()
func (*CreateArticleFavoriteRequest) ProtoReflect ¶
func (x *CreateArticleFavoriteRequest) ProtoReflect() protoreflect.Message
func (*CreateArticleFavoriteRequest) Reset ¶
func (x *CreateArticleFavoriteRequest) Reset()
func (*CreateArticleFavoriteRequest) String ¶
func (x *CreateArticleFavoriteRequest) String() string
type CreateProfileRequest ¶
type CreateProfileRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Profile *ProfileInfo `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*CreateProfileRequest) Descriptor
deprecated
func (*CreateProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateProfileRequest.ProtoReflect.Descriptor instead.
func (*CreateProfileRequest) GetId ¶
func (x *CreateProfileRequest) GetId() string
func (*CreateProfileRequest) GetProfile ¶
func (x *CreateProfileRequest) GetProfile() *ProfileInfo
func (*CreateProfileRequest) ProtoMessage ¶
func (*CreateProfileRequest) ProtoMessage()
func (*CreateProfileRequest) ProtoReflect ¶
func (x *CreateProfileRequest) ProtoReflect() protoreflect.Message
func (*CreateProfileRequest) Reset ¶
func (x *CreateProfileRequest) Reset()
func (*CreateProfileRequest) String ¶
func (x *CreateProfileRequest) String() string
type DeleteArticleCommentRequest ¶
type DeleteArticleCommentRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteArticleCommentRequest) Descriptor
deprecated
func (*DeleteArticleCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteArticleCommentRequest.ProtoReflect.Descriptor instead.
func (*DeleteArticleCommentRequest) GetId ¶
func (x *DeleteArticleCommentRequest) GetId() int32
func (*DeleteArticleCommentRequest) GetSlug ¶
func (x *DeleteArticleCommentRequest) GetSlug() string
func (*DeleteArticleCommentRequest) ProtoMessage ¶
func (*DeleteArticleCommentRequest) ProtoMessage()
func (*DeleteArticleCommentRequest) ProtoReflect ¶
func (x *DeleteArticleCommentRequest) ProtoReflect() protoreflect.Message
func (*DeleteArticleCommentRequest) Reset ¶
func (x *DeleteArticleCommentRequest) Reset()
func (*DeleteArticleCommentRequest) String ¶
func (x *DeleteArticleCommentRequest) String() string
type DeleteArticleFavoriteRequest ¶
type DeleteArticleFavoriteRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` // contains filtered or unexported fields }
func (*DeleteArticleFavoriteRequest) Descriptor
deprecated
func (*DeleteArticleFavoriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteArticleFavoriteRequest.ProtoReflect.Descriptor instead.
func (*DeleteArticleFavoriteRequest) GetSlug ¶
func (x *DeleteArticleFavoriteRequest) GetSlug() string
func (*DeleteArticleFavoriteRequest) ProtoMessage ¶
func (*DeleteArticleFavoriteRequest) ProtoMessage()
func (*DeleteArticleFavoriteRequest) ProtoReflect ¶
func (x *DeleteArticleFavoriteRequest) ProtoReflect() protoreflect.Message
func (*DeleteArticleFavoriteRequest) Reset ¶
func (x *DeleteArticleFavoriteRequest) Reset()
func (*DeleteArticleFavoriteRequest) String ¶
func (x *DeleteArticleFavoriteRequest) String() string
type DeleteArticleRequest ¶
type DeleteArticleRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` // contains filtered or unexported fields }
func (*DeleteArticleRequest) Descriptor
deprecated
func (*DeleteArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteArticleRequest.ProtoReflect.Descriptor instead.
func (*DeleteArticleRequest) GetSlug ¶
func (x *DeleteArticleRequest) GetSlug() string
func (*DeleteArticleRequest) ProtoMessage ¶
func (*DeleteArticleRequest) ProtoMessage()
func (*DeleteArticleRequest) ProtoReflect ¶
func (x *DeleteArticleRequest) ProtoReflect() protoreflect.Message
func (*DeleteArticleRequest) Reset ¶
func (x *DeleteArticleRequest) Reset()
func (*DeleteArticleRequest) String ¶
func (x *DeleteArticleRequest) String() string
type FollowRequest ¶
type FollowRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*FollowRequest) Descriptor
deprecated
func (*FollowRequest) Descriptor() ([]byte, []int)
Deprecated: Use FollowRequest.ProtoReflect.Descriptor instead.
func (*FollowRequest) GetUsername ¶
func (x *FollowRequest) GetUsername() string
func (*FollowRequest) ProtoMessage ¶
func (*FollowRequest) ProtoMessage()
func (*FollowRequest) ProtoReflect ¶
func (x *FollowRequest) ProtoReflect() protoreflect.Message
func (*FollowRequest) Reset ¶
func (x *FollowRequest) Reset()
func (*FollowRequest) String ¶
func (x *FollowRequest) String() string
type FollowedIds ¶
type FollowedIds struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*FollowedIds) Descriptor
deprecated
func (*FollowedIds) Descriptor() ([]byte, []int)
Deprecated: Use FollowedIds.ProtoReflect.Descriptor instead.
func (*FollowedIds) GetIds ¶
func (x *FollowedIds) GetIds() []string
func (*FollowedIds) ProtoMessage ¶
func (*FollowedIds) ProtoMessage()
func (*FollowedIds) ProtoReflect ¶
func (x *FollowedIds) ProtoReflect() protoreflect.Message
func (*FollowedIds) Reset ¶
func (x *FollowedIds) Reset()
func (*FollowedIds) String ¶
func (x *FollowedIds) String() string
type GetArticleCommentsRequest ¶
type GetArticleCommentsRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` // contains filtered or unexported fields }
func (*GetArticleCommentsRequest) Descriptor
deprecated
func (*GetArticleCommentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleCommentsRequest.ProtoReflect.Descriptor instead.
func (*GetArticleCommentsRequest) GetSlug ¶
func (x *GetArticleCommentsRequest) GetSlug() string
func (*GetArticleCommentsRequest) ProtoMessage ¶
func (*GetArticleCommentsRequest) ProtoMessage()
func (*GetArticleCommentsRequest) ProtoReflect ¶
func (x *GetArticleCommentsRequest) ProtoReflect() protoreflect.Message
func (*GetArticleCommentsRequest) Reset ¶
func (x *GetArticleCommentsRequest) Reset()
func (*GetArticleCommentsRequest) String ¶
func (x *GetArticleCommentsRequest) String() string
type GetArticleRequest ¶
type GetArticleRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` // contains filtered or unexported fields }
func (*GetArticleRequest) Descriptor
deprecated
func (*GetArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleRequest.ProtoReflect.Descriptor instead.
func (*GetArticleRequest) GetSlug ¶
func (x *GetArticleRequest) GetSlug() string
func (*GetArticleRequest) ProtoMessage ¶
func (*GetArticleRequest) ProtoMessage()
func (*GetArticleRequest) ProtoReflect ¶
func (x *GetArticleRequest) ProtoReflect() protoreflect.Message
func (*GetArticleRequest) Reset ¶
func (x *GetArticleRequest) Reset()
func (*GetArticleRequest) String ¶
func (x *GetArticleRequest) String() string
type GetArticlesFeedRequest ¶
type GetArticlesFeedRequest struct { Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*GetArticlesFeedRequest) Descriptor
deprecated
func (*GetArticlesFeedRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetArticlesFeedRequest.ProtoReflect.Descriptor instead.
func (*GetArticlesFeedRequest) GetLimit ¶
func (x *GetArticlesFeedRequest) GetLimit() int32
func (*GetArticlesFeedRequest) GetOffset ¶
func (x *GetArticlesFeedRequest) GetOffset() int32
func (*GetArticlesFeedRequest) ProtoMessage ¶
func (*GetArticlesFeedRequest) ProtoMessage()
func (*GetArticlesFeedRequest) ProtoReflect ¶
func (x *GetArticlesFeedRequest) ProtoReflect() protoreflect.Message
func (*GetArticlesFeedRequest) Reset ¶
func (x *GetArticlesFeedRequest) Reset()
func (*GetArticlesFeedRequest) String ¶
func (x *GetArticlesFeedRequest) String() string
type GetArticlesRequest ¶
type GetArticlesRequest struct { Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` Favorited string `protobuf:"bytes,3,opt,name=favorited,proto3" json:"favorited,omitempty"` Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` Offset int32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*GetArticlesRequest) Descriptor
deprecated
func (*GetArticlesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetArticlesRequest.ProtoReflect.Descriptor instead.
func (*GetArticlesRequest) GetAuthor ¶
func (x *GetArticlesRequest) GetAuthor() string
func (*GetArticlesRequest) GetFavorited ¶
func (x *GetArticlesRequest) GetFavorited() string
func (*GetArticlesRequest) GetLimit ¶
func (x *GetArticlesRequest) GetLimit() int32
func (*GetArticlesRequest) GetOffset ¶
func (x *GetArticlesRequest) GetOffset() int32
func (*GetArticlesRequest) GetTag ¶
func (x *GetArticlesRequest) GetTag() string
func (*GetArticlesRequest) ProtoMessage ¶
func (*GetArticlesRequest) ProtoMessage()
func (*GetArticlesRequest) ProtoReflect ¶
func (x *GetArticlesRequest) ProtoReflect() protoreflect.Message
func (*GetArticlesRequest) Reset ¶
func (x *GetArticlesRequest) Reset()
func (*GetArticlesRequest) String ¶
func (x *GetArticlesRequest) String() string
type LoginUser ¶
type LoginUser 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 (*LoginUser) Descriptor
deprecated
func (*LoginUser) GetPassword ¶
func (*LoginUser) ProtoMessage ¶
func (*LoginUser) ProtoMessage()
func (*LoginUser) ProtoReflect ¶
func (x *LoginUser) ProtoReflect() protoreflect.Message
type LoginUserRequest ¶
type LoginUserRequest struct { User *LoginUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*LoginUserRequest) Descriptor
deprecated
func (*LoginUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginUserRequest.ProtoReflect.Descriptor instead.
func (*LoginUserRequest) GetUser ¶
func (x *LoginUserRequest) GetUser() *LoginUser
func (*LoginUserRequest) ProtoMessage ¶
func (*LoginUserRequest) ProtoMessage()
func (*LoginUserRequest) ProtoReflect ¶
func (x *LoginUserRequest) ProtoReflect() protoreflect.Message
func (*LoginUserRequest) Reset ¶
func (x *LoginUserRequest) Reset()
func (*LoginUserRequest) String ¶
func (x *LoginUserRequest) String() string
type MultipleArticlesResponse ¶
type MultipleArticlesResponse struct { Articles []*Article `protobuf:"bytes,1,rep,name=articles,proto3" json:"articles,omitempty"` ArticlesCount int32 `protobuf:"varint,2,opt,name=articlesCount,proto3" json:"articlesCount,omitempty"` // contains filtered or unexported fields }
func (*MultipleArticlesResponse) Descriptor
deprecated
func (*MultipleArticlesResponse) Descriptor() ([]byte, []int)
Deprecated: Use MultipleArticlesResponse.ProtoReflect.Descriptor instead.
func (*MultipleArticlesResponse) GetArticles ¶
func (x *MultipleArticlesResponse) GetArticles() []*Article
func (*MultipleArticlesResponse) GetArticlesCount ¶
func (x *MultipleArticlesResponse) GetArticlesCount() int32
func (*MultipleArticlesResponse) ProtoMessage ¶
func (*MultipleArticlesResponse) ProtoMessage()
func (*MultipleArticlesResponse) ProtoReflect ¶
func (x *MultipleArticlesResponse) ProtoReflect() protoreflect.Message
func (*MultipleArticlesResponse) Reset ¶
func (x *MultipleArticlesResponse) Reset()
func (*MultipleArticlesResponse) String ¶
func (x *MultipleArticlesResponse) String() string
type MultipleCommentsResponse ¶
type MultipleCommentsResponse struct { Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` // contains filtered or unexported fields }
func (*MultipleCommentsResponse) Descriptor
deprecated
func (*MultipleCommentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MultipleCommentsResponse.ProtoReflect.Descriptor instead.
func (*MultipleCommentsResponse) GetComments ¶
func (x *MultipleCommentsResponse) GetComments() []*Comment
func (*MultipleCommentsResponse) ProtoMessage ¶
func (*MultipleCommentsResponse) ProtoMessage()
func (*MultipleCommentsResponse) ProtoReflect ¶
func (x *MultipleCommentsResponse) ProtoReflect() protoreflect.Message
func (*MultipleCommentsResponse) Reset ¶
func (x *MultipleCommentsResponse) Reset()
func (*MultipleCommentsResponse) String ¶
func (x *MultipleCommentsResponse) String() string
type NewArticle ¶
type NewArticle struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` TagList []string `protobuf:"bytes,4,rep,name=tagList,proto3" json:"tagList,omitempty"` // contains filtered or unexported fields }
func (*NewArticle) Descriptor
deprecated
func (*NewArticle) Descriptor() ([]byte, []int)
Deprecated: Use NewArticle.ProtoReflect.Descriptor instead.
func (*NewArticle) GetBody ¶
func (x *NewArticle) GetBody() string
func (*NewArticle) GetDescription ¶
func (x *NewArticle) GetDescription() string
func (*NewArticle) GetTagList ¶
func (x *NewArticle) GetTagList() []string
func (*NewArticle) GetTitle ¶
func (x *NewArticle) GetTitle() string
func (*NewArticle) ProtoMessage ¶
func (*NewArticle) ProtoMessage()
func (*NewArticle) ProtoReflect ¶
func (x *NewArticle) ProtoReflect() protoreflect.Message
func (*NewArticle) Reset ¶
func (x *NewArticle) Reset()
func (*NewArticle) String ¶
func (x *NewArticle) String() string
type NewArticleRequest ¶
type NewArticleRequest struct { Article *NewArticle `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"` // contains filtered or unexported fields }
func (*NewArticleRequest) Descriptor
deprecated
func (*NewArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewArticleRequest.ProtoReflect.Descriptor instead.
func (*NewArticleRequest) GetArticle ¶
func (x *NewArticleRequest) GetArticle() *NewArticle
func (*NewArticleRequest) ProtoMessage ¶
func (*NewArticleRequest) ProtoMessage()
func (*NewArticleRequest) ProtoReflect ¶
func (x *NewArticleRequest) ProtoReflect() protoreflect.Message
func (*NewArticleRequest) Reset ¶
func (x *NewArticleRequest) Reset()
func (*NewArticleRequest) String ¶
func (x *NewArticleRequest) String() string
type NewCommentRequest ¶
type NewCommentRequest struct { Comment *NewCommentRequest_NewComment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*NewCommentRequest) Descriptor
deprecated
func (*NewCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewCommentRequest.ProtoReflect.Descriptor instead.
func (*NewCommentRequest) GetComment ¶
func (x *NewCommentRequest) GetComment() *NewCommentRequest_NewComment
func (*NewCommentRequest) ProtoMessage ¶
func (*NewCommentRequest) ProtoMessage()
func (*NewCommentRequest) ProtoReflect ¶
func (x *NewCommentRequest) ProtoReflect() protoreflect.Message
func (*NewCommentRequest) Reset ¶
func (x *NewCommentRequest) Reset()
func (*NewCommentRequest) String ¶
func (x *NewCommentRequest) String() string
type NewCommentRequest_NewComment ¶
type NewCommentRequest_NewComment struct { Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` // contains filtered or unexported fields }
func (*NewCommentRequest_NewComment) Descriptor
deprecated
func (*NewCommentRequest_NewComment) Descriptor() ([]byte, []int)
Deprecated: Use NewCommentRequest_NewComment.ProtoReflect.Descriptor instead.
func (*NewCommentRequest_NewComment) GetBody ¶
func (x *NewCommentRequest_NewComment) GetBody() string
func (*NewCommentRequest_NewComment) GetSlug ¶
func (x *NewCommentRequest_NewComment) GetSlug() string
func (*NewCommentRequest_NewComment) ProtoMessage ¶
func (*NewCommentRequest_NewComment) ProtoMessage()
func (*NewCommentRequest_NewComment) ProtoReflect ¶
func (x *NewCommentRequest_NewComment) ProtoReflect() protoreflect.Message
func (*NewCommentRequest_NewComment) Reset ¶
func (x *NewCommentRequest_NewComment) Reset()
func (*NewCommentRequest_NewComment) String ¶
func (x *NewCommentRequest_NewComment) String() string
type NewUser ¶
type NewUser struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,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"` // contains filtered or unexported fields }
func (*NewUser) Descriptor
deprecated
func (*NewUser) GetPassword ¶
func (*NewUser) GetUsername ¶
func (*NewUser) ProtoMessage ¶
func (*NewUser) ProtoMessage()
func (*NewUser) ProtoReflect ¶
func (x *NewUser) ProtoReflect() protoreflect.Message
type NewUserRequest ¶
type NewUserRequest struct { User *NewUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*NewUserRequest) Descriptor
deprecated
func (*NewUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewUserRequest.ProtoReflect.Descriptor instead.
func (*NewUserRequest) GetUser ¶
func (x *NewUserRequest) GetUser() *NewUser
func (*NewUserRequest) ProtoMessage ¶
func (*NewUserRequest) ProtoMessage()
func (*NewUserRequest) ProtoReflect ¶
func (x *NewUserRequest) ProtoReflect() protoreflect.Message
func (*NewUserRequest) Reset ¶
func (x *NewUserRequest) Reset()
func (*NewUserRequest) String ¶
func (x *NewUserRequest) String() string
type Profile ¶
type Profile struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Bio string `protobuf:"bytes,2,opt,name=bio,proto3" json:"bio,omitempty"` Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` Following bool `protobuf:"varint,4,opt,name=following,proto3" json:"following,omitempty"` // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetFollowing ¶
func (*Profile) GetUsername ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type ProfileIdRequest ¶
type ProfileIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ProfileIdRequest) Descriptor
deprecated
func (*ProfileIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProfileIdRequest.ProtoReflect.Descriptor instead.
func (*ProfileIdRequest) GetId ¶
func (x *ProfileIdRequest) GetId() string
func (*ProfileIdRequest) ProtoMessage ¶
func (*ProfileIdRequest) ProtoMessage()
func (*ProfileIdRequest) ProtoReflect ¶
func (x *ProfileIdRequest) ProtoReflect() protoreflect.Message
func (*ProfileIdRequest) Reset ¶
func (x *ProfileIdRequest) Reset()
func (*ProfileIdRequest) String ¶
func (x *ProfileIdRequest) String() string
type ProfileIdResponse ¶
type ProfileIdResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ProfileIdResponse) Descriptor
deprecated
func (*ProfileIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProfileIdResponse.ProtoReflect.Descriptor instead.
func (*ProfileIdResponse) GetId ¶
func (x *ProfileIdResponse) GetId() string
func (*ProfileIdResponse) ProtoMessage ¶
func (*ProfileIdResponse) ProtoMessage()
func (*ProfileIdResponse) ProtoReflect ¶
func (x *ProfileIdResponse) ProtoReflect() protoreflect.Message
func (*ProfileIdResponse) Reset ¶
func (x *ProfileIdResponse) Reset()
func (*ProfileIdResponse) String ¶
func (x *ProfileIdResponse) String() string
type ProfileIdUsernameRequest ¶
type ProfileIdUsernameRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*ProfileIdUsernameRequest) Descriptor
deprecated
func (*ProfileIdUsernameRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProfileIdUsernameRequest.ProtoReflect.Descriptor instead.
func (*ProfileIdUsernameRequest) GetUsername ¶
func (x *ProfileIdUsernameRequest) GetUsername() string
func (*ProfileIdUsernameRequest) ProtoMessage ¶
func (*ProfileIdUsernameRequest) ProtoMessage()
func (*ProfileIdUsernameRequest) ProtoReflect ¶
func (x *ProfileIdUsernameRequest) ProtoReflect() protoreflect.Message
func (*ProfileIdUsernameRequest) Reset ¶
func (x *ProfileIdUsernameRequest) Reset()
func (*ProfileIdUsernameRequest) String ¶
func (x *ProfileIdUsernameRequest) String() string
type ProfileInfo ¶
type ProfileInfo struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Bio string `protobuf:"bytes,2,opt,name=bio,proto3" json:"bio,omitempty"` Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*ProfileInfo) Descriptor
deprecated
func (*ProfileInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProfileInfo.ProtoReflect.Descriptor instead.
func (*ProfileInfo) GetBio ¶
func (x *ProfileInfo) GetBio() string
func (*ProfileInfo) GetImage ¶
func (x *ProfileInfo) GetImage() string
func (*ProfileInfo) GetUsername ¶
func (x *ProfileInfo) GetUsername() string
func (*ProfileInfo) ProtoMessage ¶
func (*ProfileInfo) ProtoMessage()
func (*ProfileInfo) ProtoReflect ¶
func (x *ProfileInfo) ProtoReflect() protoreflect.Message
func (*ProfileInfo) Reset ¶
func (x *ProfileInfo) Reset()
func (*ProfileInfo) String ¶
func (x *ProfileInfo) String() string
type ProfileResponse ¶
type ProfileResponse struct { Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*ProfileResponse) Descriptor
deprecated
func (*ProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProfileResponse.ProtoReflect.Descriptor instead.
func (*ProfileResponse) GetProfile ¶
func (x *ProfileResponse) GetProfile() *Profile
func (*ProfileResponse) ProtoMessage ¶
func (*ProfileResponse) ProtoMessage()
func (*ProfileResponse) ProtoReflect ¶
func (x *ProfileResponse) ProtoReflect() protoreflect.Message
func (*ProfileResponse) Reset ¶
func (x *ProfileResponse) Reset()
func (*ProfileResponse) String ¶
func (x *ProfileResponse) String() string
type ProfileServiceClient ¶
type ProfileServiceClient interface { GetProfileByUsername(ctx context.Context, in *ProfileUsernameRequest, opts ...grpc.CallOption) (*ProfileResponse, error) FollowUserByUsername(ctx context.Context, in *FollowRequest, opts ...grpc.CallOption) (*ProfileResponse, error) UnfollowUserByUsername(ctx context.Context, in *UnfollowRequest, opts ...grpc.CallOption) (*ProfileResponse, error) GetProfileById(ctx context.Context, in *ProfileIdRequest, opts ...grpc.CallOption) (*ProfileResponse, error) CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*ProfileInfo, error) UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*ProfileInfo, error) GetProfileIdByUsername(ctx context.Context, in *ProfileIdUsernameRequest, opts ...grpc.CallOption) (*ProfileIdResponse, error) GetFollowedProfileIds(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FollowedIds, error) }
ProfileServiceClient is the client API for ProfileService 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 NewProfileServiceClient ¶
func NewProfileServiceClient(cc grpc.ClientConnInterface) ProfileServiceClient
type ProfileServiceServer ¶
type ProfileServiceServer interface { GetProfileByUsername(context.Context, *ProfileUsernameRequest) (*ProfileResponse, error) FollowUserByUsername(context.Context, *FollowRequest) (*ProfileResponse, error) UnfollowUserByUsername(context.Context, *UnfollowRequest) (*ProfileResponse, error) GetProfileById(context.Context, *ProfileIdRequest) (*ProfileResponse, error) CreateProfile(context.Context, *CreateProfileRequest) (*ProfileInfo, error) UpdateProfile(context.Context, *UpdateProfileRequest) (*ProfileInfo, error) GetProfileIdByUsername(context.Context, *ProfileIdUsernameRequest) (*ProfileIdResponse, error) GetFollowedProfileIds(context.Context, *emptypb.Empty) (*FollowedIds, error) // contains filtered or unexported methods }
ProfileServiceServer is the server API for ProfileService service. All implementations must embed UnimplementedProfileServiceServer for forward compatibility
type ProfileUsernameRequest ¶
type ProfileUsernameRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*ProfileUsernameRequest) Descriptor
deprecated
func (*ProfileUsernameRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProfileUsernameRequest.ProtoReflect.Descriptor instead.
func (*ProfileUsernameRequest) GetUsername ¶
func (x *ProfileUsernameRequest) GetUsername() string
func (*ProfileUsernameRequest) ProtoMessage ¶
func (*ProfileUsernameRequest) ProtoMessage()
func (*ProfileUsernameRequest) ProtoReflect ¶
func (x *ProfileUsernameRequest) ProtoReflect() protoreflect.Message
func (*ProfileUsernameRequest) Reset ¶
func (x *ProfileUsernameRequest) Reset()
func (*ProfileUsernameRequest) String ¶
func (x *ProfileUsernameRequest) String() string
type SingleArticleResponse ¶
type SingleArticleResponse struct { Article *Article `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"` // contains filtered or unexported fields }
func (*SingleArticleResponse) Descriptor
deprecated
func (*SingleArticleResponse) Descriptor() ([]byte, []int)
Deprecated: Use SingleArticleResponse.ProtoReflect.Descriptor instead.
func (*SingleArticleResponse) GetArticle ¶
func (x *SingleArticleResponse) GetArticle() *Article
func (*SingleArticleResponse) ProtoMessage ¶
func (*SingleArticleResponse) ProtoMessage()
func (*SingleArticleResponse) ProtoReflect ¶
func (x *SingleArticleResponse) ProtoReflect() protoreflect.Message
func (*SingleArticleResponse) Reset ¶
func (x *SingleArticleResponse) Reset()
func (*SingleArticleResponse) String ¶
func (x *SingleArticleResponse) String() string
type SingleCommentResponse ¶
type SingleCommentResponse struct { Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*SingleCommentResponse) Descriptor
deprecated
func (*SingleCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use SingleCommentResponse.ProtoReflect.Descriptor instead.
func (*SingleCommentResponse) GetComment ¶
func (x *SingleCommentResponse) GetComment() *Comment
func (*SingleCommentResponse) ProtoMessage ¶
func (*SingleCommentResponse) ProtoMessage()
func (*SingleCommentResponse) ProtoReflect ¶
func (x *SingleCommentResponse) ProtoReflect() protoreflect.Message
func (*SingleCommentResponse) Reset ¶
func (x *SingleCommentResponse) Reset()
func (*SingleCommentResponse) String ¶
func (x *SingleCommentResponse) String() string
type TagsResponse ¶
type TagsResponse struct { Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*TagsResponse) Descriptor
deprecated
func (*TagsResponse) Descriptor() ([]byte, []int)
Deprecated: Use TagsResponse.ProtoReflect.Descriptor instead.
func (*TagsResponse) GetTags ¶
func (x *TagsResponse) GetTags() []string
func (*TagsResponse) ProtoMessage ¶
func (*TagsResponse) ProtoMessage()
func (*TagsResponse) ProtoReflect ¶
func (x *TagsResponse) ProtoReflect() protoreflect.Message
func (*TagsResponse) Reset ¶
func (x *TagsResponse) Reset()
func (*TagsResponse) String ¶
func (x *TagsResponse) String() string
type UnfollowRequest ¶
type UnfollowRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*UnfollowRequest) Descriptor
deprecated
func (*UnfollowRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnfollowRequest.ProtoReflect.Descriptor instead.
func (*UnfollowRequest) GetUsername ¶
func (x *UnfollowRequest) GetUsername() string
func (*UnfollowRequest) ProtoMessage ¶
func (*UnfollowRequest) ProtoMessage()
func (*UnfollowRequest) ProtoReflect ¶
func (x *UnfollowRequest) ProtoReflect() protoreflect.Message
func (*UnfollowRequest) Reset ¶
func (x *UnfollowRequest) Reset()
func (*UnfollowRequest) String ¶
func (x *UnfollowRequest) String() string
type UnimplementedArticleServiceServer ¶
type UnimplementedArticleServiceServer struct { }
UnimplementedArticleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedArticleServiceServer) CreateArticle ¶
func (UnimplementedArticleServiceServer) CreateArticle(context.Context, *NewArticleRequest) (*SingleArticleResponse, error)
func (UnimplementedArticleServiceServer) CreateArticleComment ¶
func (UnimplementedArticleServiceServer) CreateArticleComment(context.Context, *NewCommentRequest) (*SingleCommentResponse, error)
func (UnimplementedArticleServiceServer) CreateArticleFavorite ¶
func (UnimplementedArticleServiceServer) CreateArticleFavorite(context.Context, *CreateArticleFavoriteRequest) (*SingleArticleResponse, error)
func (UnimplementedArticleServiceServer) DeleteArticle ¶
func (UnimplementedArticleServiceServer) DeleteArticle(context.Context, *DeleteArticleRequest) (*emptypb.Empty, error)
func (UnimplementedArticleServiceServer) DeleteArticleComment ¶
func (UnimplementedArticleServiceServer) DeleteArticleComment(context.Context, *DeleteArticleCommentRequest) (*emptypb.Empty, error)
func (UnimplementedArticleServiceServer) DeleteArticleFavorite ¶
func (UnimplementedArticleServiceServer) DeleteArticleFavorite(context.Context, *DeleteArticleFavoriteRequest) (*SingleArticleResponse, error)
func (UnimplementedArticleServiceServer) GetArticle ¶
func (UnimplementedArticleServiceServer) GetArticle(context.Context, *GetArticleRequest) (*SingleArticleResponse, error)
func (UnimplementedArticleServiceServer) GetArticleComments ¶
func (UnimplementedArticleServiceServer) GetArticleComments(context.Context, *GetArticleCommentsRequest) (*MultipleCommentsResponse, error)
func (UnimplementedArticleServiceServer) GetArticles ¶
func (UnimplementedArticleServiceServer) GetArticles(context.Context, *GetArticlesRequest) (*MultipleArticlesResponse, error)
func (UnimplementedArticleServiceServer) GetArticlesFeed ¶
func (UnimplementedArticleServiceServer) GetArticlesFeed(context.Context, *GetArticlesFeedRequest) (*MultipleArticlesResponse, error)
func (UnimplementedArticleServiceServer) GetTags ¶
func (UnimplementedArticleServiceServer) GetTags(context.Context, *emptypb.Empty) (*TagsResponse, error)
func (UnimplementedArticleServiceServer) UpdateArticle ¶
func (UnimplementedArticleServiceServer) UpdateArticle(context.Context, *UpdateArticleRequest) (*SingleArticleResponse, error)
type UnimplementedProfileServiceServer ¶
type UnimplementedProfileServiceServer struct { }
UnimplementedProfileServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedProfileServiceServer) CreateProfile ¶
func (UnimplementedProfileServiceServer) CreateProfile(context.Context, *CreateProfileRequest) (*ProfileInfo, error)
func (UnimplementedProfileServiceServer) FollowUserByUsername ¶
func (UnimplementedProfileServiceServer) FollowUserByUsername(context.Context, *FollowRequest) (*ProfileResponse, error)
func (UnimplementedProfileServiceServer) GetFollowedProfileIds ¶
func (UnimplementedProfileServiceServer) GetFollowedProfileIds(context.Context, *emptypb.Empty) (*FollowedIds, error)
func (UnimplementedProfileServiceServer) GetProfileById ¶
func (UnimplementedProfileServiceServer) GetProfileById(context.Context, *ProfileIdRequest) (*ProfileResponse, error)
func (UnimplementedProfileServiceServer) GetProfileByUsername ¶
func (UnimplementedProfileServiceServer) GetProfileByUsername(context.Context, *ProfileUsernameRequest) (*ProfileResponse, error)
func (UnimplementedProfileServiceServer) GetProfileIdByUsername ¶
func (UnimplementedProfileServiceServer) GetProfileIdByUsername(context.Context, *ProfileIdUsernameRequest) (*ProfileIdResponse, error)
func (UnimplementedProfileServiceServer) UnfollowUserByUsername ¶
func (UnimplementedProfileServiceServer) UnfollowUserByUsername(context.Context, *UnfollowRequest) (*ProfileResponse, error)
func (UnimplementedProfileServiceServer) UpdateProfile ¶
func (UnimplementedProfileServiceServer) UpdateProfile(context.Context, *UpdateProfileRequest) (*ProfileInfo, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *NewUserRequest) (*UserResponse, error)
func (UnimplementedUserServiceServer) GetCurrentUser ¶
func (UnimplementedUserServiceServer) GetCurrentUser(context.Context, *emptypb.Empty) (*UserResponse, error)
func (UnimplementedUserServiceServer) Login ¶
func (UnimplementedUserServiceServer) Login(context.Context, *LoginUserRequest) (*UserResponse, error)
func (UnimplementedUserServiceServer) UpdateCurrentUser ¶
func (UnimplementedUserServiceServer) UpdateCurrentUser(context.Context, *UpdateUserRequest) (*UserResponse, error)
type UnsafeArticleServiceServer ¶
type UnsafeArticleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeArticleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ArticleServiceServer will result in compilation errors.
type UnsafeProfileServiceServer ¶
type UnsafeProfileServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProfileServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileServiceServer 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 UpdateArticleRequest ¶
type UpdateArticleRequest struct { Article *UpdateArticleRequest_UpdateArticle `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"` // contains filtered or unexported fields }
func (*UpdateArticleRequest) Descriptor
deprecated
func (*UpdateArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateArticleRequest.ProtoReflect.Descriptor instead.
func (*UpdateArticleRequest) GetArticle ¶
func (x *UpdateArticleRequest) GetArticle() *UpdateArticleRequest_UpdateArticle
func (*UpdateArticleRequest) ProtoMessage ¶
func (*UpdateArticleRequest) ProtoMessage()
func (*UpdateArticleRequest) ProtoReflect ¶
func (x *UpdateArticleRequest) ProtoReflect() protoreflect.Message
func (*UpdateArticleRequest) Reset ¶
func (x *UpdateArticleRequest) Reset()
func (*UpdateArticleRequest) String ¶
func (x *UpdateArticleRequest) String() string
type UpdateArticleRequest_UpdateArticle ¶
type UpdateArticleRequest_UpdateArticle struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` Slug string `protobuf:"bytes,4,opt,name=slug,proto3" json:"slug,omitempty"` // contains filtered or unexported fields }
func (*UpdateArticleRequest_UpdateArticle) Descriptor
deprecated
func (*UpdateArticleRequest_UpdateArticle) Descriptor() ([]byte, []int)
Deprecated: Use UpdateArticleRequest_UpdateArticle.ProtoReflect.Descriptor instead.
func (*UpdateArticleRequest_UpdateArticle) GetBody ¶
func (x *UpdateArticleRequest_UpdateArticle) GetBody() string
func (*UpdateArticleRequest_UpdateArticle) GetDescription ¶
func (x *UpdateArticleRequest_UpdateArticle) GetDescription() string
func (*UpdateArticleRequest_UpdateArticle) GetSlug ¶
func (x *UpdateArticleRequest_UpdateArticle) GetSlug() string
func (*UpdateArticleRequest_UpdateArticle) GetTitle ¶
func (x *UpdateArticleRequest_UpdateArticle) GetTitle() string
func (*UpdateArticleRequest_UpdateArticle) ProtoMessage ¶
func (*UpdateArticleRequest_UpdateArticle) ProtoMessage()
func (*UpdateArticleRequest_UpdateArticle) ProtoReflect ¶
func (x *UpdateArticleRequest_UpdateArticle) ProtoReflect() protoreflect.Message
func (*UpdateArticleRequest_UpdateArticle) Reset ¶
func (x *UpdateArticleRequest_UpdateArticle) Reset()
func (*UpdateArticleRequest_UpdateArticle) String ¶
func (x *UpdateArticleRequest_UpdateArticle) String() string
type UpdateProfileRequest ¶
type UpdateProfileRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Profile *ProfileInfo `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*UpdateProfileRequest) Descriptor
deprecated
func (*UpdateProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.
func (*UpdateProfileRequest) GetId ¶
func (x *UpdateProfileRequest) GetId() string
func (*UpdateProfileRequest) GetProfile ¶
func (x *UpdateProfileRequest) GetProfile() *ProfileInfo
func (*UpdateProfileRequest) ProtoMessage ¶
func (*UpdateProfileRequest) ProtoMessage()
func (*UpdateProfileRequest) ProtoReflect ¶
func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message
func (*UpdateProfileRequest) Reset ¶
func (x *UpdateProfileRequest) Reset()
func (*UpdateProfileRequest) String ¶
func (x *UpdateProfileRequest) String() string
type UpdateUser ¶
type UpdateUser struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Bio string `protobuf:"bytes,4,opt,name=bio,proto3" json:"bio,omitempty"` Image string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*UpdateUser) Descriptor
deprecated
func (*UpdateUser) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUser.ProtoReflect.Descriptor instead.
func (*UpdateUser) GetBio ¶
func (x *UpdateUser) GetBio() string
func (*UpdateUser) GetEmail ¶
func (x *UpdateUser) GetEmail() string
func (*UpdateUser) GetImage ¶
func (x *UpdateUser) GetImage() string
func (*UpdateUser) GetToken ¶
func (x *UpdateUser) GetToken() string
func (*UpdateUser) GetUsername ¶
func (x *UpdateUser) GetUsername() string
func (*UpdateUser) ProtoMessage ¶
func (*UpdateUser) ProtoMessage()
func (*UpdateUser) ProtoReflect ¶
func (x *UpdateUser) ProtoReflect() protoreflect.Message
func (*UpdateUser) Reset ¶
func (x *UpdateUser) Reset()
func (*UpdateUser) String ¶
func (x *UpdateUser) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { User *UpdateUser `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() *UpdateUser
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 { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Bio string `protobuf:"bytes,4,opt,name=bio,proto3" json:"bio,omitempty"` Image string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserResponse ¶
type UserResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UserResponse) Descriptor
deprecated
func (*UserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.
func (*UserResponse) GetUser ¶
func (x *UserResponse) GetUser() *User
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) ProtoReflect ¶
func (x *UserResponse) ProtoReflect() protoreflect.Message
func (*UserResponse) Reset ¶
func (x *UserResponse) Reset()
func (*UserResponse) String ¶
func (x *UserResponse) String() string
type UserServiceClient ¶
type UserServiceClient interface { Login(ctx context.Context, in *LoginUserRequest, opts ...grpc.CallOption) (*UserResponse, error) CreateUser(ctx context.Context, in *NewUserRequest, opts ...grpc.CallOption) (*UserResponse, error) GetCurrentUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserResponse, error) UpdateCurrentUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UserResponse, 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 { Login(context.Context, *LoginUserRequest) (*UserResponse, error) CreateUser(context.Context, *NewUserRequest) (*UserResponse, error) GetCurrentUser(context.Context, *emptypb.Empty) (*UserResponse, error) UpdateCurrentUser(context.Context, *UpdateUserRequest) (*UserResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility