Documentation ¶
Index ¶
- Variables
- func RegisterRealWorldServer(s grpc.ServiceRegistrar, srv RealWorldServer)
- type Article
- func (*Article) Descriptor() ([]byte, []int)deprecated
- func (x *Article) GetAuthor() *Profile
- func (x *Article) GetBody() string
- func (x *Article) GetCreatedAt() *timestamppb.Timestamp
- func (x *Article) GetDescription() string
- func (x *Article) GetFavoriteCount() int64
- func (x *Article) GetFavorited() bool
- func (x *Article) GetSlug() string
- func (x *Article) GetTagList() []string
- func (x *Article) GetTitle() string
- func (x *Article) GetUpdatedAt() *timestamppb.Timestamp
- func (*Article) ProtoMessage()
- func (x *Article) ProtoReflect() protoreflect.Message
- func (x *Article) Reset()
- func (x *Article) String() string
- type ArticleResponse
- type ArticlesResponse
- func (*ArticlesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ArticlesResponse) GetArticles() []*Article
- func (x *ArticlesResponse) GetCount() int64
- func (*ArticlesResponse) ProtoMessage()
- func (x *ArticlesResponse) ProtoReflect() protoreflect.Message
- func (x *ArticlesResponse) Reset()
- func (x *ArticlesResponse) String() string
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetAuthor() *Profile
- func (x *Comment) GetBody() string
- func (x *Comment) GetCreatedAt() *timestamppb.Timestamp
- func (x *Comment) GetId() string
- func (x *Comment) GetUpdatedAt() *timestamppb.Timestamp
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type CommentResponse
- type CommentsResponse
- type CreateArticleRequest
- func (*CreateArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateArticleRequest) GetArticle() *CreateArticleRequest_Article
- func (*CreateArticleRequest) ProtoMessage()
- func (x *CreateArticleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateArticleRequest) Reset()
- func (x *CreateArticleRequest) String() string
- type CreateArticleRequest_Article
- func (*CreateArticleRequest_Article) Descriptor() ([]byte, []int)deprecated
- func (x *CreateArticleRequest_Article) GetBody() string
- func (x *CreateArticleRequest_Article) GetDescription() string
- func (x *CreateArticleRequest_Article) GetTagList() []string
- func (x *CreateArticleRequest_Article) GetTitle() string
- func (*CreateArticleRequest_Article) ProtoMessage()
- func (x *CreateArticleRequest_Article) ProtoReflect() protoreflect.Message
- func (x *CreateArticleRequest_Article) Reset()
- func (x *CreateArticleRequest_Article) String() string
- type CreateCommentRequest
- func (*CreateCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCommentRequest) GetComment() *CreateCommentRequest_Comment
- func (x *CreateCommentRequest) GetSlug() string
- func (*CreateCommentRequest) ProtoMessage()
- func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCommentRequest) Reset()
- func (x *CreateCommentRequest) String() string
- type CreateCommentRequest_Comment
- func (*CreateCommentRequest_Comment) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCommentRequest_Comment) GetBody() string
- func (*CreateCommentRequest_Comment) ProtoMessage()
- func (x *CreateCommentRequest_Comment) ProtoReflect() protoreflect.Message
- func (x *CreateCommentRequest_Comment) Reset()
- func (x *CreateCommentRequest_Comment) String() string
- type FilterArticleRequest
- func (*FilterArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FilterArticleRequest) GetAuthor() string
- func (x *FilterArticleRequest) GetFavorited() string
- func (x *FilterArticleRequest) GetLimit() int64
- func (x *FilterArticleRequest) GetOffset() int64
- func (x *FilterArticleRequest) GetTag() string
- func (*FilterArticleRequest) ProtoMessage()
- func (x *FilterArticleRequest) ProtoReflect() protoreflect.Message
- func (x *FilterArticleRequest) Reset()
- func (x *FilterArticleRequest) String() string
- type GetArticleRequest
- type GetCommentRequest
- func (*GetCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCommentRequest) GetCommentId() string
- func (x *GetCommentRequest) GetSlug() string
- func (*GetCommentRequest) ProtoMessage()
- func (x *GetCommentRequest) ProtoReflect() protoreflect.Message
- func (x *GetCommentRequest) Reset()
- func (x *GetCommentRequest) String() string
- type GetProfileRequest
- type ListCommentRequest
- func (*ListCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentRequest) GetSlug() string
- func (*ListCommentRequest) ProtoMessage()
- func (x *ListCommentRequest) ProtoReflect() protoreflect.Message
- func (x *ListCommentRequest) Reset()
- func (x *ListCommentRequest) String() string
- type ListTagResponse
- type LoginUserRequest
- func (*LoginUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginUserRequest) GetUser() *LoginUserRequest_User
- func (*LoginUserRequest) ProtoMessage()
- func (x *LoginUserRequest) ProtoReflect() protoreflect.Message
- func (x *LoginUserRequest) Reset()
- func (x *LoginUserRequest) String() string
- type LoginUserRequest_User
- func (*LoginUserRequest_User) Descriptor() ([]byte, []int)deprecated
- func (x *LoginUserRequest_User) GetEmail() string
- func (x *LoginUserRequest_User) GetPassword() string
- func (*LoginUserRequest_User) ProtoMessage()
- func (x *LoginUserRequest_User) ProtoReflect() protoreflect.Message
- func (x *LoginUserRequest_User) Reset()
- func (x *LoginUserRequest_User) String() string
- 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 ProfileResponse
- type RealWorldClient
- type RealWorldServer
- type RegisterUserRequest
- func (*RegisterUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserRequest) GetUser() *RegisterUserRequest_User
- func (*RegisterUserRequest) ProtoMessage()
- func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterUserRequest) Reset()
- func (x *RegisterUserRequest) String() string
- type RegisterUserRequest_User
- func (*RegisterUserRequest_User) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserRequest_User) GetEmail() string
- func (x *RegisterUserRequest_User) GetPassword() string
- func (x *RegisterUserRequest_User) GetUsername() string
- func (*RegisterUserRequest_User) ProtoMessage()
- func (x *RegisterUserRequest_User) ProtoReflect() protoreflect.Message
- func (x *RegisterUserRequest_User) Reset()
- func (x *RegisterUserRequest_User) String() string
- type Response
- type UnimplementedRealWorldServer
- func (UnimplementedRealWorldServer) CreateArticle(context.Context, *CreateArticleRequest) (*ArticleResponse, error)
- func (UnimplementedRealWorldServer) CreateComment(context.Context, *CreateCommentRequest) (*CommentResponse, error)
- func (UnimplementedRealWorldServer) CurrentUser(context.Context, *emptypb.Empty) (*UserResponse, error)
- func (UnimplementedRealWorldServer) DeleteArticle(context.Context, *GetArticleRequest) (*Response, error)
- func (UnimplementedRealWorldServer) DeleteComment(context.Context, *GetCommentRequest) (*Response, error)
- func (UnimplementedRealWorldServer) FavoriteArticle(context.Context, *GetArticleRequest) (*ArticleResponse, error)
- func (UnimplementedRealWorldServer) FeedArticle(context.Context, *FilterArticleRequest) (*ArticlesResponse, error)
- func (UnimplementedRealWorldServer) FollowUser(context.Context, *GetProfileRequest) (*ProfileResponse, error)
- func (UnimplementedRealWorldServer) GetArticle(context.Context, *GetArticleRequest) (*ArticleResponse, error)
- func (UnimplementedRealWorldServer) GetProfile(context.Context, *GetProfileRequest) (*ProfileResponse, error)
- func (UnimplementedRealWorldServer) ListArticle(context.Context, *FilterArticleRequest) (*ArticlesResponse, error)
- func (UnimplementedRealWorldServer) ListComment(context.Context, *ListCommentRequest) (*CommentsResponse, error)
- func (UnimplementedRealWorldServer) ListTag(context.Context, *emptypb.Empty) (*ListTagResponse, error)
- func (UnimplementedRealWorldServer) LoginUser(context.Context, *LoginUserRequest) (*UserResponse, error)
- func (UnimplementedRealWorldServer) RegisterUser(context.Context, *RegisterUserRequest) (*UserResponse, error)
- func (UnimplementedRealWorldServer) UnFavoriteArticle(context.Context, *GetArticleRequest) (*ArticleResponse, error)
- func (UnimplementedRealWorldServer) UnFollowUser(context.Context, *GetProfileRequest) (*ProfileResponse, error)
- func (UnimplementedRealWorldServer) UpdateArticle(context.Context, *UpdateArticleRequest) (*ArticleResponse, error)
- func (UnimplementedRealWorldServer) UpdateUser(context.Context, *UpdateUserRequest) (*UserResponse, error)
- type UnsafeRealWorldServer
- type UpdateArticleRequest
- func (*UpdateArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateArticleRequest) GetArticle() *UpdateArticleRequest_Article
- func (x *UpdateArticleRequest) GetSlug() string
- func (*UpdateArticleRequest) ProtoMessage()
- func (x *UpdateArticleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateArticleRequest) Reset()
- func (x *UpdateArticleRequest) String() string
- type UpdateArticleRequest_Article
- func (*UpdateArticleRequest_Article) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateArticleRequest_Article) GetBody() string
- func (x *UpdateArticleRequest_Article) GetDescription() string
- func (x *UpdateArticleRequest_Article) GetTitle() string
- func (*UpdateArticleRequest_Article) ProtoMessage()
- func (x *UpdateArticleRequest_Article) ProtoReflect() protoreflect.Message
- func (x *UpdateArticleRequest_Article) Reset()
- func (x *UpdateArticleRequest_Article) String() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetUser() *UpdateUserRequest_User
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type UpdateUserRequest_User
- func (*UpdateUserRequest_User) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest_User) GetBio() string
- func (x *UpdateUserRequest_User) GetEmail() string
- func (x *UpdateUserRequest_User) GetImage() string
- func (x *UpdateUserRequest_User) GetPassword() string
- func (x *UpdateUserRequest_User) GetUsername() string
- func (*UpdateUserRequest_User) ProtoMessage()
- func (x *UpdateUserRequest_User) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest_User) Reset()
- func (x *UpdateUserRequest_User) String() string
- 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
Constants ¶
This section is empty.
Variables ¶
var File_article_proto protoreflect.FileDescriptor
var File_rpc_article_proto protoreflect.FileDescriptor
var File_rpc_user_proto protoreflect.FileDescriptor
var File_service_proto protoreflect.FileDescriptor
var File_user_proto protoreflect.FileDescriptor
var RealWorld_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.RealWorld", HandlerType: (*RealWorldServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterUser", Handler: _RealWorld_RegisterUser_Handler, }, { MethodName: "LoginUser", Handler: _RealWorld_LoginUser_Handler, }, { MethodName: "UpdateUser", Handler: _RealWorld_UpdateUser_Handler, }, { MethodName: "CurrentUser", Handler: _RealWorld_CurrentUser_Handler, }, { MethodName: "GetProfile", Handler: _RealWorld_GetProfile_Handler, }, { MethodName: "FollowUser", Handler: _RealWorld_FollowUser_Handler, }, { MethodName: "UnFollowUser", Handler: _RealWorld_UnFollowUser_Handler, }, { MethodName: "ListArticle", Handler: _RealWorld_ListArticle_Handler, }, { MethodName: "FeedArticle", Handler: _RealWorld_FeedArticle_Handler, }, { MethodName: "GetArticle", Handler: _RealWorld_GetArticle_Handler, }, { MethodName: "CreateArticle", Handler: _RealWorld_CreateArticle_Handler, }, { MethodName: "UpdateArticle", Handler: _RealWorld_UpdateArticle_Handler, }, { MethodName: "DeleteArticle", Handler: _RealWorld_DeleteArticle_Handler, }, { MethodName: "FavoriteArticle", Handler: _RealWorld_FavoriteArticle_Handler, }, { MethodName: "UnFavoriteArticle", Handler: _RealWorld_UnFavoriteArticle_Handler, }, { MethodName: "ListTag", Handler: _RealWorld_ListTag_Handler, }, { MethodName: "CreateComment", Handler: _RealWorld_CreateComment_Handler, }, { MethodName: "ListComment", Handler: _RealWorld_ListComment_Handler, }, { MethodName: "DeleteComment", Handler: _RealWorld_DeleteComment_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
RealWorld_ServiceDesc is the grpc.ServiceDesc for RealWorld service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRealWorldServer ¶
func RegisterRealWorldServer(s grpc.ServiceRegistrar, srv RealWorldServer)
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=tag_list,json=tagList,proto3" json:"tag_list,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Favorited bool `protobuf:"varint,8,opt,name=favorited,proto3" json:"favorited,omitempty"` FavoriteCount int64 `protobuf:"varint,9,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,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 (x *Article) GetCreatedAt() *timestamppb.Timestamp
func (*Article) GetDescription ¶
func (*Article) GetFavoriteCount ¶
func (*Article) GetFavorited ¶
func (*Article) GetTagList ¶
func (*Article) GetUpdatedAt ¶
func (x *Article) GetUpdatedAt() *timestamppb.Timestamp
func (*Article) ProtoMessage ¶
func (*Article) ProtoMessage()
func (*Article) ProtoReflect ¶
func (x *Article) ProtoReflect() protoreflect.Message
type ArticleResponse ¶
type ArticleResponse struct { Article *Article `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"` // contains filtered or unexported fields }
func (*ArticleResponse) Descriptor
deprecated
func (*ArticleResponse) Descriptor() ([]byte, []int)
Deprecated: Use ArticleResponse.ProtoReflect.Descriptor instead.
func (*ArticleResponse) GetArticle ¶
func (x *ArticleResponse) GetArticle() *Article
func (*ArticleResponse) ProtoMessage ¶
func (*ArticleResponse) ProtoMessage()
func (*ArticleResponse) ProtoReflect ¶
func (x *ArticleResponse) ProtoReflect() protoreflect.Message
func (*ArticleResponse) Reset ¶
func (x *ArticleResponse) Reset()
func (*ArticleResponse) String ¶
func (x *ArticleResponse) String() string
type ArticlesResponse ¶
type ArticlesResponse struct { Articles []*Article `protobuf:"bytes,1,rep,name=articles,proto3" json:"articles,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*ArticlesResponse) Descriptor
deprecated
func (*ArticlesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ArticlesResponse.ProtoReflect.Descriptor instead.
func (*ArticlesResponse) GetArticles ¶
func (x *ArticlesResponse) GetArticles() []*Article
func (*ArticlesResponse) GetCount ¶
func (x *ArticlesResponse) GetCount() int64
func (*ArticlesResponse) ProtoMessage ¶
func (*ArticlesResponse) ProtoMessage()
func (*ArticlesResponse) ProtoReflect ¶
func (x *ArticlesResponse) ProtoReflect() protoreflect.Message
func (*ArticlesResponse) Reset ¶
func (x *ArticlesResponse) Reset()
func (*ArticlesResponse) String ¶
func (x *ArticlesResponse) String() string
type Comment ¶
type Comment struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,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 (x *Comment) GetCreatedAt() *timestamppb.Timestamp
func (*Comment) GetUpdatedAt ¶
func (x *Comment) GetUpdatedAt() *timestamppb.Timestamp
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type CommentResponse ¶
type CommentResponse struct { Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*CommentResponse) Descriptor
deprecated
func (*CommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommentResponse.ProtoReflect.Descriptor instead.
func (*CommentResponse) GetComment ¶
func (x *CommentResponse) GetComment() *Comment
func (*CommentResponse) ProtoMessage ¶
func (*CommentResponse) ProtoMessage()
func (*CommentResponse) ProtoReflect ¶
func (x *CommentResponse) ProtoReflect() protoreflect.Message
func (*CommentResponse) Reset ¶
func (x *CommentResponse) Reset()
func (*CommentResponse) String ¶
func (x *CommentResponse) String() string
type CommentsResponse ¶
type CommentsResponse struct { Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` // contains filtered or unexported fields }
func (*CommentsResponse) Descriptor
deprecated
func (*CommentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommentsResponse.ProtoReflect.Descriptor instead.
func (*CommentsResponse) GetComments ¶
func (x *CommentsResponse) GetComments() []*Comment
func (*CommentsResponse) ProtoMessage ¶
func (*CommentsResponse) ProtoMessage()
func (*CommentsResponse) ProtoReflect ¶
func (x *CommentsResponse) ProtoReflect() protoreflect.Message
func (*CommentsResponse) Reset ¶
func (x *CommentsResponse) Reset()
func (*CommentsResponse) String ¶
func (x *CommentsResponse) String() string
type CreateArticleRequest ¶
type CreateArticleRequest struct { Article *CreateArticleRequest_Article `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"` // contains filtered or unexported fields }
func (*CreateArticleRequest) Descriptor
deprecated
func (*CreateArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateArticleRequest.ProtoReflect.Descriptor instead.
func (*CreateArticleRequest) GetArticle ¶
func (x *CreateArticleRequest) GetArticle() *CreateArticleRequest_Article
func (*CreateArticleRequest) ProtoMessage ¶
func (*CreateArticleRequest) ProtoMessage()
func (*CreateArticleRequest) ProtoReflect ¶
func (x *CreateArticleRequest) ProtoReflect() protoreflect.Message
func (*CreateArticleRequest) Reset ¶
func (x *CreateArticleRequest) Reset()
func (*CreateArticleRequest) String ¶
func (x *CreateArticleRequest) String() string
type CreateArticleRequest_Article ¶
type CreateArticleRequest_Article 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=tag_list,json=tagList,proto3" json:"tag_list,omitempty"` // contains filtered or unexported fields }
func (*CreateArticleRequest_Article) Descriptor
deprecated
func (*CreateArticleRequest_Article) Descriptor() ([]byte, []int)
Deprecated: Use CreateArticleRequest_Article.ProtoReflect.Descriptor instead.
func (*CreateArticleRequest_Article) GetBody ¶
func (x *CreateArticleRequest_Article) GetBody() string
func (*CreateArticleRequest_Article) GetDescription ¶
func (x *CreateArticleRequest_Article) GetDescription() string
func (*CreateArticleRequest_Article) GetTagList ¶
func (x *CreateArticleRequest_Article) GetTagList() []string
func (*CreateArticleRequest_Article) GetTitle ¶
func (x *CreateArticleRequest_Article) GetTitle() string
func (*CreateArticleRequest_Article) ProtoMessage ¶
func (*CreateArticleRequest_Article) ProtoMessage()
func (*CreateArticleRequest_Article) ProtoReflect ¶
func (x *CreateArticleRequest_Article) ProtoReflect() protoreflect.Message
func (*CreateArticleRequest_Article) Reset ¶
func (x *CreateArticleRequest_Article) Reset()
func (*CreateArticleRequest_Article) String ¶
func (x *CreateArticleRequest_Article) String() string
type CreateCommentRequest ¶
type CreateCommentRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` Comment *CreateCommentRequest_Comment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*CreateCommentRequest) Descriptor
deprecated
func (*CreateCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead.
func (*CreateCommentRequest) GetComment ¶
func (x *CreateCommentRequest) GetComment() *CreateCommentRequest_Comment
func (*CreateCommentRequest) GetSlug ¶
func (x *CreateCommentRequest) GetSlug() string
func (*CreateCommentRequest) ProtoMessage ¶
func (*CreateCommentRequest) ProtoMessage()
func (*CreateCommentRequest) ProtoReflect ¶
func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message
func (*CreateCommentRequest) Reset ¶
func (x *CreateCommentRequest) Reset()
func (*CreateCommentRequest) String ¶
func (x *CreateCommentRequest) String() string
type CreateCommentRequest_Comment ¶
type CreateCommentRequest_Comment struct { Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*CreateCommentRequest_Comment) Descriptor
deprecated
func (*CreateCommentRequest_Comment) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentRequest_Comment.ProtoReflect.Descriptor instead.
func (*CreateCommentRequest_Comment) GetBody ¶
func (x *CreateCommentRequest_Comment) GetBody() string
func (*CreateCommentRequest_Comment) ProtoMessage ¶
func (*CreateCommentRequest_Comment) ProtoMessage()
func (*CreateCommentRequest_Comment) ProtoReflect ¶
func (x *CreateCommentRequest_Comment) ProtoReflect() protoreflect.Message
func (*CreateCommentRequest_Comment) Reset ¶
func (x *CreateCommentRequest_Comment) Reset()
func (*CreateCommentRequest_Comment) String ¶
func (x *CreateCommentRequest_Comment) String() string
type FilterArticleRequest ¶
type FilterArticleRequest struct { Tag *string `protobuf:"bytes,1,opt,name=tag,proto3,oneof" json:"tag,omitempty"` Author *string `protobuf:"bytes,2,opt,name=author,proto3,oneof" json:"author,omitempty"` Favorited *string `protobuf:"bytes,3,opt,name=favorited,proto3,oneof" json:"favorited,omitempty"` Offset *int64 `protobuf:"varint,4,opt,name=offset,proto3,oneof" json:"offset,omitempty"` Limit *int64 `protobuf:"varint,5,opt,name=limit,proto3,oneof" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*FilterArticleRequest) Descriptor
deprecated
func (*FilterArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use FilterArticleRequest.ProtoReflect.Descriptor instead.
func (*FilterArticleRequest) GetAuthor ¶
func (x *FilterArticleRequest) GetAuthor() string
func (*FilterArticleRequest) GetFavorited ¶
func (x *FilterArticleRequest) GetFavorited() string
func (*FilterArticleRequest) GetLimit ¶
func (x *FilterArticleRequest) GetLimit() int64
func (*FilterArticleRequest) GetOffset ¶
func (x *FilterArticleRequest) GetOffset() int64
func (*FilterArticleRequest) GetTag ¶
func (x *FilterArticleRequest) GetTag() string
func (*FilterArticleRequest) ProtoMessage ¶
func (*FilterArticleRequest) ProtoMessage()
func (*FilterArticleRequest) ProtoReflect ¶
func (x *FilterArticleRequest) ProtoReflect() protoreflect.Message
func (*FilterArticleRequest) Reset ¶
func (x *FilterArticleRequest) Reset()
func (*FilterArticleRequest) String ¶
func (x *FilterArticleRequest) 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 GetCommentRequest ¶
type GetCommentRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` CommentId string `protobuf:"bytes,2,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // contains filtered or unexported fields }
func (*GetCommentRequest) Descriptor
deprecated
func (*GetCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCommentRequest.ProtoReflect.Descriptor instead.
func (*GetCommentRequest) GetCommentId ¶
func (x *GetCommentRequest) GetCommentId() string
func (*GetCommentRequest) GetSlug ¶
func (x *GetCommentRequest) GetSlug() string
func (*GetCommentRequest) ProtoMessage ¶
func (*GetCommentRequest) ProtoMessage()
func (*GetCommentRequest) ProtoReflect ¶
func (x *GetCommentRequest) ProtoReflect() protoreflect.Message
func (*GetCommentRequest) Reset ¶
func (x *GetCommentRequest) Reset()
func (*GetCommentRequest) String ¶
func (x *GetCommentRequest) String() string
type GetProfileRequest ¶
type GetProfileRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetProfileRequest) Descriptor
deprecated
func (*GetProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.
func (*GetProfileRequest) GetUsername ¶
func (x *GetProfileRequest) GetUsername() string
func (*GetProfileRequest) ProtoMessage ¶
func (*GetProfileRequest) ProtoMessage()
func (*GetProfileRequest) ProtoReflect ¶
func (x *GetProfileRequest) ProtoReflect() protoreflect.Message
func (*GetProfileRequest) Reset ¶
func (x *GetProfileRequest) Reset()
func (*GetProfileRequest) String ¶
func (x *GetProfileRequest) String() string
type ListCommentRequest ¶
type ListCommentRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` // contains filtered or unexported fields }
func (*ListCommentRequest) Descriptor
deprecated
func (*ListCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentRequest.ProtoReflect.Descriptor instead.
func (*ListCommentRequest) GetSlug ¶
func (x *ListCommentRequest) GetSlug() string
func (*ListCommentRequest) ProtoMessage ¶
func (*ListCommentRequest) ProtoMessage()
func (*ListCommentRequest) ProtoReflect ¶
func (x *ListCommentRequest) ProtoReflect() protoreflect.Message
func (*ListCommentRequest) Reset ¶
func (x *ListCommentRequest) Reset()
func (*ListCommentRequest) String ¶
func (x *ListCommentRequest) String() string
type ListTagResponse ¶
type ListTagResponse struct { Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*ListTagResponse) Descriptor
deprecated
func (*ListTagResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTagResponse.ProtoReflect.Descriptor instead.
func (*ListTagResponse) GetTags ¶
func (x *ListTagResponse) GetTags() []string
func (*ListTagResponse) ProtoMessage ¶
func (*ListTagResponse) ProtoMessage()
func (*ListTagResponse) ProtoReflect ¶
func (x *ListTagResponse) ProtoReflect() protoreflect.Message
func (*ListTagResponse) Reset ¶
func (x *ListTagResponse) Reset()
func (*ListTagResponse) String ¶
func (x *ListTagResponse) String() string
type LoginUserRequest ¶
type LoginUserRequest struct { User *LoginUserRequest_User `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() *LoginUserRequest_User
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 LoginUserRequest_User ¶
type LoginUserRequest_User 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 (*LoginUserRequest_User) Descriptor
deprecated
func (*LoginUserRequest_User) Descriptor() ([]byte, []int)
Deprecated: Use LoginUserRequest_User.ProtoReflect.Descriptor instead.
func (*LoginUserRequest_User) GetEmail ¶
func (x *LoginUserRequest_User) GetEmail() string
func (*LoginUserRequest_User) GetPassword ¶
func (x *LoginUserRequest_User) GetPassword() string
func (*LoginUserRequest_User) ProtoMessage ¶
func (*LoginUserRequest_User) ProtoMessage()
func (*LoginUserRequest_User) ProtoReflect ¶
func (x *LoginUserRequest_User) ProtoReflect() protoreflect.Message
func (*LoginUserRequest_User) Reset ¶
func (x *LoginUserRequest_User) Reset()
func (*LoginUserRequest_User) String ¶
func (x *LoginUserRequest_User) String() string
type Profile ¶
type Profile struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` Bio string `protobuf:"bytes,3,opt,name=bio,proto3" json:"bio,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 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 RealWorldClient ¶
type RealWorldClient interface { RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*UserResponse, error) LoginUser(ctx context.Context, in *LoginUserRequest, opts ...grpc.CallOption) (*UserResponse, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UserResponse, error) CurrentUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserResponse, error) GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*ProfileResponse, error) FollowUser(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*ProfileResponse, error) UnFollowUser(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*ProfileResponse, error) ListArticle(ctx context.Context, in *FilterArticleRequest, opts ...grpc.CallOption) (*ArticlesResponse, error) FeedArticle(ctx context.Context, in *FilterArticleRequest, opts ...grpc.CallOption) (*ArticlesResponse, error) GetArticle(ctx context.Context, in *GetArticleRequest, opts ...grpc.CallOption) (*ArticleResponse, error) CreateArticle(ctx context.Context, in *CreateArticleRequest, opts ...grpc.CallOption) (*ArticleResponse, error) UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...grpc.CallOption) (*ArticleResponse, error) DeleteArticle(ctx context.Context, in *GetArticleRequest, opts ...grpc.CallOption) (*Response, error) FavoriteArticle(ctx context.Context, in *GetArticleRequest, opts ...grpc.CallOption) (*ArticleResponse, error) UnFavoriteArticle(ctx context.Context, in *GetArticleRequest, opts ...grpc.CallOption) (*ArticleResponse, error) ListTag(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListTagResponse, error) CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*CommentResponse, error) ListComment(ctx context.Context, in *ListCommentRequest, opts ...grpc.CallOption) (*CommentsResponse, error) DeleteComment(ctx context.Context, in *GetCommentRequest, opts ...grpc.CallOption) (*Response, error) }
RealWorldClient is the client API for RealWorld 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 NewRealWorldClient ¶
func NewRealWorldClient(cc grpc.ClientConnInterface) RealWorldClient
type RealWorldServer ¶
type RealWorldServer interface { RegisterUser(context.Context, *RegisterUserRequest) (*UserResponse, error) LoginUser(context.Context, *LoginUserRequest) (*UserResponse, error) UpdateUser(context.Context, *UpdateUserRequest) (*UserResponse, error) CurrentUser(context.Context, *emptypb.Empty) (*UserResponse, error) GetProfile(context.Context, *GetProfileRequest) (*ProfileResponse, error) FollowUser(context.Context, *GetProfileRequest) (*ProfileResponse, error) UnFollowUser(context.Context, *GetProfileRequest) (*ProfileResponse, error) ListArticle(context.Context, *FilterArticleRequest) (*ArticlesResponse, error) FeedArticle(context.Context, *FilterArticleRequest) (*ArticlesResponse, error) GetArticle(context.Context, *GetArticleRequest) (*ArticleResponse, error) CreateArticle(context.Context, *CreateArticleRequest) (*ArticleResponse, error) UpdateArticle(context.Context, *UpdateArticleRequest) (*ArticleResponse, error) DeleteArticle(context.Context, *GetArticleRequest) (*Response, error) FavoriteArticle(context.Context, *GetArticleRequest) (*ArticleResponse, error) UnFavoriteArticle(context.Context, *GetArticleRequest) (*ArticleResponse, error) ListTag(context.Context, *emptypb.Empty) (*ListTagResponse, error) CreateComment(context.Context, *CreateCommentRequest) (*CommentResponse, error) ListComment(context.Context, *ListCommentRequest) (*CommentsResponse, error) DeleteComment(context.Context, *GetCommentRequest) (*Response, error) // contains filtered or unexported methods }
RealWorldServer is the server API for RealWorld service. All implementations must embed UnimplementedRealWorldServer for forward compatibility
type RegisterUserRequest ¶
type RegisterUserRequest struct { User *RegisterUserRequest_User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*RegisterUserRequest) Descriptor
deprecated
func (*RegisterUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserRequest.ProtoReflect.Descriptor instead.
func (*RegisterUserRequest) GetUser ¶
func (x *RegisterUserRequest) GetUser() *RegisterUserRequest_User
func (*RegisterUserRequest) ProtoMessage ¶
func (*RegisterUserRequest) ProtoMessage()
func (*RegisterUserRequest) ProtoReflect ¶
func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
func (*RegisterUserRequest) Reset ¶
func (x *RegisterUserRequest) Reset()
func (*RegisterUserRequest) String ¶
func (x *RegisterUserRequest) String() string
type RegisterUserRequest_User ¶
type RegisterUserRequest_User 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"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*RegisterUserRequest_User) Descriptor
deprecated
func (*RegisterUserRequest_User) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserRequest_User.ProtoReflect.Descriptor instead.
func (*RegisterUserRequest_User) GetEmail ¶
func (x *RegisterUserRequest_User) GetEmail() string
func (*RegisterUserRequest_User) GetPassword ¶
func (x *RegisterUserRequest_User) GetPassword() string
func (*RegisterUserRequest_User) GetUsername ¶
func (x *RegisterUserRequest_User) GetUsername() string
func (*RegisterUserRequest_User) ProtoMessage ¶
func (*RegisterUserRequest_User) ProtoMessage()
func (*RegisterUserRequest_User) ProtoReflect ¶
func (x *RegisterUserRequest_User) ProtoReflect() protoreflect.Message
func (*RegisterUserRequest_User) Reset ¶
func (x *RegisterUserRequest_User) Reset()
func (*RegisterUserRequest_User) String ¶
func (x *RegisterUserRequest_User) String() string
type Response ¶
type Response struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedRealWorldServer ¶
type UnimplementedRealWorldServer struct { }
UnimplementedRealWorldServer must be embedded to have forward compatible implementations.
func (UnimplementedRealWorldServer) CreateArticle ¶
func (UnimplementedRealWorldServer) CreateArticle(context.Context, *CreateArticleRequest) (*ArticleResponse, error)
func (UnimplementedRealWorldServer) CreateComment ¶
func (UnimplementedRealWorldServer) CreateComment(context.Context, *CreateCommentRequest) (*CommentResponse, error)
func (UnimplementedRealWorldServer) CurrentUser ¶
func (UnimplementedRealWorldServer) CurrentUser(context.Context, *emptypb.Empty) (*UserResponse, error)
func (UnimplementedRealWorldServer) DeleteArticle ¶
func (UnimplementedRealWorldServer) DeleteArticle(context.Context, *GetArticleRequest) (*Response, error)
func (UnimplementedRealWorldServer) DeleteComment ¶
func (UnimplementedRealWorldServer) DeleteComment(context.Context, *GetCommentRequest) (*Response, error)
func (UnimplementedRealWorldServer) FavoriteArticle ¶
func (UnimplementedRealWorldServer) FavoriteArticle(context.Context, *GetArticleRequest) (*ArticleResponse, error)
func (UnimplementedRealWorldServer) FeedArticle ¶
func (UnimplementedRealWorldServer) FeedArticle(context.Context, *FilterArticleRequest) (*ArticlesResponse, error)
func (UnimplementedRealWorldServer) FollowUser ¶
func (UnimplementedRealWorldServer) FollowUser(context.Context, *GetProfileRequest) (*ProfileResponse, error)
func (UnimplementedRealWorldServer) GetArticle ¶
func (UnimplementedRealWorldServer) GetArticle(context.Context, *GetArticleRequest) (*ArticleResponse, error)
func (UnimplementedRealWorldServer) GetProfile ¶
func (UnimplementedRealWorldServer) GetProfile(context.Context, *GetProfileRequest) (*ProfileResponse, error)
func (UnimplementedRealWorldServer) ListArticle ¶
func (UnimplementedRealWorldServer) ListArticle(context.Context, *FilterArticleRequest) (*ArticlesResponse, error)
func (UnimplementedRealWorldServer) ListComment ¶
func (UnimplementedRealWorldServer) ListComment(context.Context, *ListCommentRequest) (*CommentsResponse, error)
func (UnimplementedRealWorldServer) ListTag ¶
func (UnimplementedRealWorldServer) ListTag(context.Context, *emptypb.Empty) (*ListTagResponse, error)
func (UnimplementedRealWorldServer) LoginUser ¶
func (UnimplementedRealWorldServer) LoginUser(context.Context, *LoginUserRequest) (*UserResponse, error)
func (UnimplementedRealWorldServer) RegisterUser ¶
func (UnimplementedRealWorldServer) RegisterUser(context.Context, *RegisterUserRequest) (*UserResponse, error)
func (UnimplementedRealWorldServer) UnFavoriteArticle ¶
func (UnimplementedRealWorldServer) UnFavoriteArticle(context.Context, *GetArticleRequest) (*ArticleResponse, error)
func (UnimplementedRealWorldServer) UnFollowUser ¶
func (UnimplementedRealWorldServer) UnFollowUser(context.Context, *GetProfileRequest) (*ProfileResponse, error)
func (UnimplementedRealWorldServer) UpdateArticle ¶
func (UnimplementedRealWorldServer) UpdateArticle(context.Context, *UpdateArticleRequest) (*ArticleResponse, error)
func (UnimplementedRealWorldServer) UpdateUser ¶
func (UnimplementedRealWorldServer) UpdateUser(context.Context, *UpdateUserRequest) (*UserResponse, error)
type UnsafeRealWorldServer ¶
type UnsafeRealWorldServer interface {
// contains filtered or unexported methods
}
UnsafeRealWorldServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RealWorldServer will result in compilation errors.
type UpdateArticleRequest ¶
type UpdateArticleRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` Article *UpdateArticleRequest_Article `protobuf:"bytes,2,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_Article
func (*UpdateArticleRequest) GetSlug ¶
func (x *UpdateArticleRequest) GetSlug() string
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_Article ¶
type UpdateArticleRequest_Article 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"` // contains filtered or unexported fields }
func (*UpdateArticleRequest_Article) Descriptor
deprecated
func (*UpdateArticleRequest_Article) Descriptor() ([]byte, []int)
Deprecated: Use UpdateArticleRequest_Article.ProtoReflect.Descriptor instead.
func (*UpdateArticleRequest_Article) GetBody ¶
func (x *UpdateArticleRequest_Article) GetBody() string
func (*UpdateArticleRequest_Article) GetDescription ¶
func (x *UpdateArticleRequest_Article) GetDescription() string
func (*UpdateArticleRequest_Article) GetTitle ¶
func (x *UpdateArticleRequest_Article) GetTitle() string
func (*UpdateArticleRequest_Article) ProtoMessage ¶
func (*UpdateArticleRequest_Article) ProtoMessage()
func (*UpdateArticleRequest_Article) ProtoReflect ¶
func (x *UpdateArticleRequest_Article) ProtoReflect() protoreflect.Message
func (*UpdateArticleRequest_Article) Reset ¶
func (x *UpdateArticleRequest_Article) Reset()
func (*UpdateArticleRequest_Article) String ¶
func (x *UpdateArticleRequest_Article) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { User *UpdateUserRequest_User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetUser ¶
func (x *UpdateUserRequest) GetUser() *UpdateUserRequest_User
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type UpdateUserRequest_User ¶
type UpdateUserRequest_User struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` Bio string `protobuf:"bytes,5,opt,name=bio,proto3" json:"bio,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest_User) Descriptor
deprecated
func (*UpdateUserRequest_User) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest_User.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest_User) GetBio ¶
func (x *UpdateUserRequest_User) GetBio() string
func (*UpdateUserRequest_User) GetEmail ¶
func (x *UpdateUserRequest_User) GetEmail() string
func (*UpdateUserRequest_User) GetImage ¶
func (x *UpdateUserRequest_User) GetImage() string
func (*UpdateUserRequest_User) GetPassword ¶
func (x *UpdateUserRequest_User) GetPassword() string
func (*UpdateUserRequest_User) GetUsername ¶
func (x *UpdateUserRequest_User) GetUsername() string
func (*UpdateUserRequest_User) ProtoMessage ¶
func (*UpdateUserRequest_User) ProtoMessage()
func (*UpdateUserRequest_User) ProtoReflect ¶
func (x *UpdateUserRequest_User) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest_User) Reset ¶
func (x *UpdateUserRequest_User) Reset()
func (*UpdateUserRequest_User) String ¶
func (x *UpdateUserRequest_User) String() string
type User ¶
type User struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Bio string `protobuf:"bytes,3,opt,name=bio,proto3" json:"bio,omitempty"` Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,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