Documentation ¶
Index ¶
- Variables
- func ErrorContentMissing(format string, args ...interface{}) *errors.Error
- func ErrorUserNotFound(format string, args ...interface{}) *errors.Error
- func IsContentMissing(err error) bool
- func IsUserNotFound(err error) bool
- func RegisterAccountHTTPServer(s *http.Server, srv AccountHTTPServer)
- func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
- func RegisterRealWorldHTTPServer(s *http.Server, srv RealWorldHTTPServer)
- func RegisterRealWorldServer(s grpc.ServiceRegistrar, srv RealWorldServer)
- type AccountClient
- type AccountHTTPClient
- type AccountHTTPClientImpl
- type AccountHTTPServer
- type AccountServer
- type AccountsReply
- type AccountsReply_Account
- func (*AccountsReply_Account) Descriptor() ([]byte, []int)deprecated
- func (x *AccountsReply_Account) GetBalance() string
- func (x *AccountsReply_Account) GetCtime() string
- func (x *AccountsReply_Account) GetDT() string
- func (x *AccountsReply_Account) GetID() int32
- func (x *AccountsReply_Account) GetTag() string
- func (x *AccountsReply_Account) GetType() int32
- func (x *AccountsReply_Account) GetUid() int32
- func (*AccountsReply_Account) ProtoMessage()
- func (x *AccountsReply_Account) ProtoReflect() protoreflect.Message
- func (x *AccountsReply_Account) Reset()
- func (x *AccountsReply_Account) String() string
- type AccountsRequest
- type AddCommentsRequest
- func (*AddCommentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddCommentsRequest) GetComment() *AddCommentsRequest_Comment
- func (x *AddCommentsRequest) GetSlug() string
- func (*AddCommentsRequest) ProtoMessage()
- func (x *AddCommentsRequest) ProtoReflect() protoreflect.Message
- func (x *AddCommentsRequest) Reset()
- func (x *AddCommentsRequest) String() string
- type AddCommentsRequest_Comment
- func (*AddCommentsRequest_Comment) Descriptor() ([]byte, []int)deprecated
- func (x *AddCommentsRequest_Comment) GetBody() string
- func (*AddCommentsRequest_Comment) ProtoMessage()
- func (x *AddCommentsRequest_Comment) ProtoReflect() protoreflect.Message
- func (x *AddCommentsRequest_Comment) Reset()
- func (x *AddCommentsRequest_Comment) String() string
- 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 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 DeleteCommentsRequest
- func (*DeleteCommentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCommentsRequest) GetId() int64
- func (x *DeleteCommentsRequest) GetSlug() string
- func (*DeleteCommentsRequest) ProtoMessage()
- func (x *DeleteCommentsRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCommentsRequest) Reset()
- func (x *DeleteCommentsRequest) String() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type FavoriteArticleRequest
- func (*FavoriteArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteArticleRequest) GetSlug() string
- func (*FavoriteArticleRequest) ProtoMessage()
- func (x *FavoriteArticleRequest) ProtoReflect() protoreflect.Message
- func (x *FavoriteArticleRequest) Reset()
- func (x *FavoriteArticleRequest) String() string
- type FeedArticlesRequest
- func (*FeedArticlesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FeedArticlesRequest) GetLimit() int64
- func (x *FeedArticlesRequest) GetOffset() int64
- func (*FeedArticlesRequest) ProtoMessage()
- func (x *FeedArticlesRequest) ProtoReflect() protoreflect.Message
- func (x *FeedArticlesRequest) Reset()
- func (x *FeedArticlesRequest) String() string
- type FollowUserRequest
- type GetArticleRequest
- type GetCommentsRequest
- func (*GetCommentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCommentsRequest) GetSlug() string
- func (*GetCommentsRequest) ProtoMessage()
- func (x *GetCommentsRequest) ProtoReflect() protoreflect.Message
- func (x *GetCommentsRequest) Reset()
- func (x *GetCommentsRequest) String() string
- type GetProfileRequest
- type ListArticlesRequest
- func (*ListArticlesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListArticlesRequest) GetAuthor() string
- func (x *ListArticlesRequest) GetFavorited() string
- func (x *ListArticlesRequest) GetLimit() int64
- func (x *ListArticlesRequest) GetOffset() int64
- func (x *ListArticlesRequest) GetTag() string
- func (*ListArticlesRequest) ProtoMessage()
- func (x *ListArticlesRequest) ProtoReflect() protoreflect.Message
- func (x *ListArticlesRequest) Reset()
- func (x *ListArticlesRequest) String() string
- type LoginRequest
- type LoginRequest_User
- func (*LoginRequest_User) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest_User) GetEmail() string
- func (x *LoginRequest_User) GetPassword() string
- func (*LoginRequest_User) ProtoMessage()
- func (x *LoginRequest_User) ProtoReflect() protoreflect.Message
- func (x *LoginRequest_User) Reset()
- func (x *LoginRequest_User) String() string
- type MultipleArticlesReply
- func (*MultipleArticlesReply) Descriptor() ([]byte, []int)deprecated
- func (x *MultipleArticlesReply) GetArticles() []*MultipleArticlesReply_Articles
- func (x *MultipleArticlesReply) GetArticlesCount() uint32
- func (*MultipleArticlesReply) ProtoMessage()
- func (x *MultipleArticlesReply) ProtoReflect() protoreflect.Message
- func (x *MultipleArticlesReply) Reset()
- func (x *MultipleArticlesReply) String() string
- type MultipleArticlesReply_Articles
- func (*MultipleArticlesReply_Articles) Descriptor() ([]byte, []int)deprecated
- func (x *MultipleArticlesReply_Articles) GetAuthor() *MultipleArticlesReply_Author
- func (x *MultipleArticlesReply_Articles) GetBody() string
- func (x *MultipleArticlesReply_Articles) GetCreatedAt() string
- func (x *MultipleArticlesReply_Articles) GetDescription() string
- func (x *MultipleArticlesReply_Articles) GetFavorited() bool
- func (x *MultipleArticlesReply_Articles) GetFavoritesCount() uint32
- func (x *MultipleArticlesReply_Articles) GetSlug() string
- func (x *MultipleArticlesReply_Articles) GetTagList() []string
- func (x *MultipleArticlesReply_Articles) GetTitle() string
- func (x *MultipleArticlesReply_Articles) GetUpdatedAt() string
- func (*MultipleArticlesReply_Articles) ProtoMessage()
- func (x *MultipleArticlesReply_Articles) ProtoReflect() protoreflect.Message
- func (x *MultipleArticlesReply_Articles) Reset()
- func (x *MultipleArticlesReply_Articles) String() string
- type MultipleArticlesReply_Author
- func (*MultipleArticlesReply_Author) Descriptor() ([]byte, []int)deprecated
- func (x *MultipleArticlesReply_Author) GetBio() string
- func (x *MultipleArticlesReply_Author) GetFollowing() bool
- func (x *MultipleArticlesReply_Author) GetImage() string
- func (x *MultipleArticlesReply_Author) GetUsername() string
- func (*MultipleArticlesReply_Author) ProtoMessage()
- func (x *MultipleArticlesReply_Author) ProtoReflect() protoreflect.Message
- func (x *MultipleArticlesReply_Author) Reset()
- func (x *MultipleArticlesReply_Author) String() string
- type MultipleCommentsReply
- func (*MultipleCommentsReply) Descriptor() ([]byte, []int)deprecated
- func (x *MultipleCommentsReply) GetComments() []*MultipleCommentsReply_Comments
- func (*MultipleCommentsReply) ProtoMessage()
- func (x *MultipleCommentsReply) ProtoReflect() protoreflect.Message
- func (x *MultipleCommentsReply) Reset()
- func (x *MultipleCommentsReply) String() string
- type MultipleCommentsReply_Author
- func (*MultipleCommentsReply_Author) Descriptor() ([]byte, []int)deprecated
- func (x *MultipleCommentsReply_Author) GetBio() string
- func (x *MultipleCommentsReply_Author) GetFollowing() bool
- func (x *MultipleCommentsReply_Author) GetImage() string
- func (x *MultipleCommentsReply_Author) GetUsername() string
- func (*MultipleCommentsReply_Author) ProtoMessage()
- func (x *MultipleCommentsReply_Author) ProtoReflect() protoreflect.Message
- func (x *MultipleCommentsReply_Author) Reset()
- func (x *MultipleCommentsReply_Author) String() string
- type MultipleCommentsReply_Comments
- func (*MultipleCommentsReply_Comments) Descriptor() ([]byte, []int)deprecated
- func (x *MultipleCommentsReply_Comments) GetAuthor() *MultipleCommentsReply_Author
- func (x *MultipleCommentsReply_Comments) GetBody() string
- func (x *MultipleCommentsReply_Comments) GetCreatedAt() string
- func (x *MultipleCommentsReply_Comments) GetId() uint32
- func (x *MultipleCommentsReply_Comments) GetUpdatedAt() string
- func (*MultipleCommentsReply_Comments) ProtoMessage()
- func (x *MultipleCommentsReply_Comments) ProtoReflect() protoreflect.Message
- func (x *MultipleCommentsReply_Comments) Reset()
- func (x *MultipleCommentsReply_Comments) String() string
- type ProfileReply
- type ProfileReply_Profile
- func (*ProfileReply_Profile) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileReply_Profile) GetBio() string
- func (x *ProfileReply_Profile) GetFollowing() bool
- func (x *ProfileReply_Profile) GetImage() string
- func (x *ProfileReply_Profile) GetUsername() string
- func (*ProfileReply_Profile) ProtoMessage()
- func (x *ProfileReply_Profile) ProtoReflect() protoreflect.Message
- func (x *ProfileReply_Profile) Reset()
- func (x *ProfileReply_Profile) String() string
- type RealWorldClient
- type RealWorldHTTPClient
- type RealWorldHTTPClientImpl
- func (c *RealWorldHTTPClientImpl) AddComments(ctx context.Context, in *AddCommentsRequest, opts ...http.CallOption) (*SingleCommentReply, error)
- func (c *RealWorldHTTPClientImpl) CreateArticle(ctx context.Context, in *CreateArticleRequest, opts ...http.CallOption) (*MultipleArticlesReply, error)
- func (c *RealWorldHTTPClientImpl) DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...http.CallOption) (*SingleArticleReply, error)
- func (c *RealWorldHTTPClientImpl) DeleteComment(ctx context.Context, in *DeleteCommentsRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *RealWorldHTTPClientImpl) FavoriteArticle(ctx context.Context, in *FavoriteArticleRequest, opts ...http.CallOption) (*SingleArticleReply, error)
- func (c *RealWorldHTTPClientImpl) FeedArticles(ctx context.Context, in *FeedArticlesRequest, opts ...http.CallOption) (*MultipleArticlesReply, error)
- func (c *RealWorldHTTPClientImpl) FollowUser(ctx context.Context, in *FollowUserRequest, opts ...http.CallOption) (*ProfileReply, error)
- func (c *RealWorldHTTPClientImpl) GetArticle(ctx context.Context, in *GetArticleRequest, opts ...http.CallOption) (*SingleArticleReply, error)
- func (c *RealWorldHTTPClientImpl) GetComments(ctx context.Context, in *GetCommentsRequest, opts ...http.CallOption) (*MultipleCommentsReply, error)
- func (c *RealWorldHTTPClientImpl) GetCurrentUser(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserReply, error)
- func (c *RealWorldHTTPClientImpl) GetProfile(ctx context.Context, in *GetProfileRequest, opts ...http.CallOption) (*ProfileReply, error)
- func (c *RealWorldHTTPClientImpl) GetTags(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*TagListReply, error)
- func (c *RealWorldHTTPClientImpl) ListArticles(ctx context.Context, in *ListArticlesRequest, opts ...http.CallOption) (*MultipleArticlesReply, error)
- func (c *RealWorldHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*UserReply, error)
- func (c *RealWorldHTTPClientImpl) Register(ctx context.Context, in *RegisterRequest, opts ...http.CallOption) (*UserReply, error)
- func (c *RealWorldHTTPClientImpl) UnfavoriteArticle(ctx context.Context, in *UnfavoriteArticleRequest, opts ...http.CallOption) (*SingleArticleReply, error)
- func (c *RealWorldHTTPClientImpl) UnfollowUser(ctx context.Context, in *UnfollowUserRequest, opts ...http.CallOption) (*ProfileReply, error)
- func (c *RealWorldHTTPClientImpl) UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...http.CallOption) (*SingleArticleReply, error)
- func (c *RealWorldHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*UserReply, error)
- type RealWorldHTTPServer
- type RealWorldServer
- type RegisterRequest
- type RegisterRequest_User
- func (*RegisterRequest_User) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest_User) GetEmail() string
- func (x *RegisterRequest_User) GetPassword() string
- func (x *RegisterRequest_User) GetUsername() string
- func (*RegisterRequest_User) ProtoMessage()
- func (x *RegisterRequest_User) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest_User) Reset()
- func (x *RegisterRequest_User) String() string
- type SingleArticleReply
- func (*SingleArticleReply) Descriptor() ([]byte, []int)deprecated
- func (x *SingleArticleReply) GetAuthor() *SingleArticleReply_Author
- func (x *SingleArticleReply) GetBody() string
- func (x *SingleArticleReply) GetCreatedAt() string
- func (x *SingleArticleReply) GetDescription() string
- func (x *SingleArticleReply) GetFavorited() bool
- func (x *SingleArticleReply) GetFavoritesCount() uint32
- func (x *SingleArticleReply) GetSlug() string
- func (x *SingleArticleReply) GetTagList() []string
- func (x *SingleArticleReply) GetTitle() string
- func (x *SingleArticleReply) GetUpdatedAt() string
- func (*SingleArticleReply) ProtoMessage()
- func (x *SingleArticleReply) ProtoReflect() protoreflect.Message
- func (x *SingleArticleReply) Reset()
- func (x *SingleArticleReply) String() string
- type SingleArticleReply_Author
- func (*SingleArticleReply_Author) Descriptor() ([]byte, []int)deprecated
- func (x *SingleArticleReply_Author) GetBio() string
- func (x *SingleArticleReply_Author) GetFollowing() bool
- func (x *SingleArticleReply_Author) GetImage() string
- func (x *SingleArticleReply_Author) GetUsername() string
- func (*SingleArticleReply_Author) ProtoMessage()
- func (x *SingleArticleReply_Author) ProtoReflect() protoreflect.Message
- func (x *SingleArticleReply_Author) Reset()
- func (x *SingleArticleReply_Author) String() string
- type SingleCommentReply
- func (*SingleCommentReply) Descriptor() ([]byte, []int)deprecated
- func (x *SingleCommentReply) GetComment() *SingleCommentReply_Comment
- func (*SingleCommentReply) ProtoMessage()
- func (x *SingleCommentReply) ProtoReflect() protoreflect.Message
- func (x *SingleCommentReply) Reset()
- func (x *SingleCommentReply) String() string
- type SingleCommentReply_Author
- func (*SingleCommentReply_Author) Descriptor() ([]byte, []int)deprecated
- func (x *SingleCommentReply_Author) GetBio() string
- func (x *SingleCommentReply_Author) GetFollowing() bool
- func (x *SingleCommentReply_Author) GetImage() string
- func (x *SingleCommentReply_Author) GetUsername() string
- func (*SingleCommentReply_Author) ProtoMessage()
- func (x *SingleCommentReply_Author) ProtoReflect() protoreflect.Message
- func (x *SingleCommentReply_Author) Reset()
- func (x *SingleCommentReply_Author) String() string
- type SingleCommentReply_Comment
- func (*SingleCommentReply_Comment) Descriptor() ([]byte, []int)deprecated
- func (x *SingleCommentReply_Comment) GetAuthor() *SingleCommentReply_Author
- func (x *SingleCommentReply_Comment) GetBody() string
- func (x *SingleCommentReply_Comment) GetCreatedAt() string
- func (x *SingleCommentReply_Comment) GetId() uint32
- func (x *SingleCommentReply_Comment) GetUpdatedAt() string
- func (*SingleCommentReply_Comment) ProtoMessage()
- func (x *SingleCommentReply_Comment) ProtoReflect() protoreflect.Message
- func (x *SingleCommentReply_Comment) Reset()
- func (x *SingleCommentReply_Comment) String() string
- type TagListReply
- type UnfavoriteArticleRequest
- func (*UnfavoriteArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnfavoriteArticleRequest) GetSlug() string
- func (*UnfavoriteArticleRequest) ProtoMessage()
- func (x *UnfavoriteArticleRequest) ProtoReflect() protoreflect.Message
- func (x *UnfavoriteArticleRequest) Reset()
- func (x *UnfavoriteArticleRequest) String() string
- type UnfollowUserRequest
- func (*UnfollowUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnfollowUserRequest) GetUsername() string
- func (*UnfollowUserRequest) ProtoMessage()
- func (x *UnfollowUserRequest) ProtoReflect() protoreflect.Message
- func (x *UnfollowUserRequest) Reset()
- func (x *UnfollowUserRequest) String() string
- type UnimplementedAccountServer
- type UnimplementedRealWorldServer
- func (UnimplementedRealWorldServer) AddComments(context.Context, *AddCommentsRequest) (*SingleCommentReply, error)
- func (UnimplementedRealWorldServer) CreateArticle(context.Context, *CreateArticleRequest) (*MultipleArticlesReply, error)
- func (UnimplementedRealWorldServer) DeleteArticle(context.Context, *DeleteArticleRequest) (*SingleArticleReply, error)
- func (UnimplementedRealWorldServer) DeleteComment(context.Context, *DeleteCommentsRequest) (*emptypb.Empty, error)
- func (UnimplementedRealWorldServer) FavoriteArticle(context.Context, *FavoriteArticleRequest) (*SingleArticleReply, error)
- func (UnimplementedRealWorldServer) FeedArticles(context.Context, *FeedArticlesRequest) (*MultipleArticlesReply, error)
- func (UnimplementedRealWorldServer) FollowUser(context.Context, *FollowUserRequest) (*ProfileReply, error)
- func (UnimplementedRealWorldServer) GetArticle(context.Context, *GetArticleRequest) (*SingleArticleReply, error)
- func (UnimplementedRealWorldServer) GetComments(context.Context, *GetCommentsRequest) (*MultipleCommentsReply, error)
- func (UnimplementedRealWorldServer) GetCurrentUser(context.Context, *emptypb.Empty) (*UserReply, error)
- func (UnimplementedRealWorldServer) GetProfile(context.Context, *GetProfileRequest) (*ProfileReply, error)
- func (UnimplementedRealWorldServer) GetTags(context.Context, *emptypb.Empty) (*TagListReply, error)
- func (UnimplementedRealWorldServer) ListArticles(context.Context, *ListArticlesRequest) (*MultipleArticlesReply, error)
- func (UnimplementedRealWorldServer) Login(context.Context, *LoginRequest) (*UserReply, error)
- func (UnimplementedRealWorldServer) Register(context.Context, *RegisterRequest) (*UserReply, error)
- func (UnimplementedRealWorldServer) UnfavoriteArticle(context.Context, *UnfavoriteArticleRequest) (*SingleArticleReply, error)
- func (UnimplementedRealWorldServer) UnfollowUser(context.Context, *UnfollowUserRequest) (*ProfileReply, error)
- func (UnimplementedRealWorldServer) UpdateArticle(context.Context, *UpdateArticleRequest) (*SingleArticleReply, error)
- func (UnimplementedRealWorldServer) UpdateUser(context.Context, *UpdateUserRequest) (*UserReply, error)
- type UnsafeAccountServer
- 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) GetSlug() []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 (*UpdateUserRequest_User) ProtoMessage()
- func (x *UpdateUserRequest_User) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest_User) Reset()
- func (x *UpdateUserRequest_User) String() string
- type UserReply
- type UserReply_User
- func (*UserReply_User) Descriptor() ([]byte, []int)deprecated
- func (x *UserReply_User) GetBio() string
- func (x *UserReply_User) GetEmail() string
- func (x *UserReply_User) GetImage() *anypb.Any
- func (x *UserReply_User) GetToken() string
- func (x *UserReply_User) GetUsername() string
- func (*UserReply_User) ProtoMessage()
- func (x *UserReply_User) ProtoReflect() protoreflect.Message
- func (x *UserReply_User) Reset()
- func (x *UserReply_User) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "USER_NOT_FOUND", 1: "CONTENT_MISSING", } ErrorReason_value = map[string]int32{ "USER_NOT_FOUND": 0, "CONTENT_MISSING": 1, } )
Enum value maps for ErrorReason.
var Account_ServiceDesc = grpc.ServiceDesc{ ServiceName: "account.v1.Account", HandlerType: (*AccountServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Accounts", Handler: _Account_Accounts_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/realworld/v1/account.proto", }
Account_ServiceDesc is the grpc.ServiceDesc for Account service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_realworld_v1_account_proto protoreflect.FileDescriptor
var File_api_realworld_v1_error_reason_proto protoreflect.FileDescriptor
var File_api_realworld_v1_realworld_proto protoreflect.FileDescriptor
var RealWorld_ServiceDesc = grpc.ServiceDesc{ ServiceName: "realworld.v1.RealWorld", HandlerType: (*RealWorldServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _RealWorld_Login_Handler, }, { MethodName: "Register", Handler: _RealWorld_Register_Handler, }, { MethodName: "GetCurrentUser", Handler: _RealWorld_GetCurrentUser_Handler, }, { MethodName: "UpdateUser", Handler: _RealWorld_UpdateUser_Handler, }, { MethodName: "GetProfile", Handler: _RealWorld_GetProfile_Handler, }, { MethodName: "FollowUser", Handler: _RealWorld_FollowUser_Handler, }, { MethodName: "UnfollowUser", Handler: _RealWorld_UnfollowUser_Handler, }, { MethodName: "ListArticles", Handler: _RealWorld_ListArticles_Handler, }, { MethodName: "FeedArticles", Handler: _RealWorld_FeedArticles_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: "AddComments", Handler: _RealWorld_AddComments_Handler, }, { MethodName: "GetComments", Handler: _RealWorld_GetComments_Handler, }, { MethodName: "DeleteComment", Handler: _RealWorld_DeleteComment_Handler, }, { MethodName: "FavoriteArticle", Handler: _RealWorld_FavoriteArticle_Handler, }, { MethodName: "UnfavoriteArticle", Handler: _RealWorld_UnfavoriteArticle_Handler, }, { MethodName: "GetTags", Handler: _RealWorld_GetTags_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/realworld/v1/realworld.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 ErrorContentMissing ¶
func ErrorUserNotFound ¶
func IsContentMissing ¶
func IsUserNotFound ¶
func RegisterAccountHTTPServer ¶
func RegisterAccountHTTPServer(s *http.Server, srv AccountHTTPServer)
func RegisterAccountServer ¶
func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
func RegisterRealWorldHTTPServer ¶
func RegisterRealWorldHTTPServer(s *http.Server, srv RealWorldHTTPServer)
func RegisterRealWorldServer ¶
func RegisterRealWorldServer(s grpc.ServiceRegistrar, srv RealWorldServer)
Types ¶
type AccountClient ¶
type AccountClient interface {
Accounts(ctx context.Context, in *AccountsRequest, opts ...grpc.CallOption) (*AccountsReply, error)
}
AccountClient is the client API for Account 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 NewAccountClient ¶
func NewAccountClient(cc grpc.ClientConnInterface) AccountClient
type AccountHTTPClient ¶
type AccountHTTPClient interface {
Accounts(ctx context.Context, req *AccountsRequest, opts ...http.CallOption) (rsp *AccountsReply, err error)
}
func NewAccountHTTPClient ¶
func NewAccountHTTPClient(client *http.Client) AccountHTTPClient
type AccountHTTPClientImpl ¶
type AccountHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AccountHTTPClientImpl) Accounts ¶
func (c *AccountHTTPClientImpl) Accounts(ctx context.Context, in *AccountsRequest, opts ...http.CallOption) (*AccountsReply, error)
type AccountHTTPServer ¶
type AccountHTTPServer interface {
Accounts(context.Context, *AccountsRequest) (*AccountsReply, error)
}
type AccountServer ¶
type AccountServer interface { Accounts(context.Context, *AccountsRequest) (*AccountsReply, error) // contains filtered or unexported methods }
AccountServer is the server API for Account service. All implementations must embed UnimplementedAccountServer for forward compatibility
type AccountsReply ¶
type AccountsReply struct { Account []*AccountsReply_Account `protobuf:"bytes,1,rep,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*AccountsReply) Descriptor
deprecated
func (*AccountsReply) Descriptor() ([]byte, []int)
Deprecated: Use AccountsReply.ProtoReflect.Descriptor instead.
func (*AccountsReply) GetAccount ¶
func (x *AccountsReply) GetAccount() []*AccountsReply_Account
func (*AccountsReply) ProtoMessage ¶
func (*AccountsReply) ProtoMessage()
func (*AccountsReply) ProtoReflect ¶
func (x *AccountsReply) ProtoReflect() protoreflect.Message
func (*AccountsReply) Reset ¶
func (x *AccountsReply) Reset()
func (*AccountsReply) String ¶
func (x *AccountsReply) String() string
type AccountsReply_Account ¶
type AccountsReply_Account struct { ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Uid int32 `protobuf:"varint,2,opt,name=Uid,proto3" json:"Uid,omitempty"` Type int32 `protobuf:"varint,3,opt,name=Type,proto3" json:"Type,omitempty"` Balance string `protobuf:"bytes,4,opt,name=Balance,proto3" json:"Balance,omitempty"` Tag string `protobuf:"bytes,5,opt,name=Tag,proto3" json:"Tag,omitempty"` DT string `protobuf:"bytes,6,opt,name=DT,proto3" json:"DT,omitempty"` Ctime string `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime,omitempty"` // contains filtered or unexported fields }
func (*AccountsReply_Account) Descriptor
deprecated
func (*AccountsReply_Account) Descriptor() ([]byte, []int)
Deprecated: Use AccountsReply_Account.ProtoReflect.Descriptor instead.
func (*AccountsReply_Account) GetBalance ¶
func (x *AccountsReply_Account) GetBalance() string
func (*AccountsReply_Account) GetCtime ¶
func (x *AccountsReply_Account) GetCtime() string
func (*AccountsReply_Account) GetDT ¶
func (x *AccountsReply_Account) GetDT() string
func (*AccountsReply_Account) GetID ¶
func (x *AccountsReply_Account) GetID() int32
func (*AccountsReply_Account) GetTag ¶
func (x *AccountsReply_Account) GetTag() string
func (*AccountsReply_Account) GetType ¶
func (x *AccountsReply_Account) GetType() int32
func (*AccountsReply_Account) GetUid ¶
func (x *AccountsReply_Account) GetUid() int32
func (*AccountsReply_Account) ProtoMessage ¶
func (*AccountsReply_Account) ProtoMessage()
func (*AccountsReply_Account) ProtoReflect ¶
func (x *AccountsReply_Account) ProtoReflect() protoreflect.Message
func (*AccountsReply_Account) Reset ¶
func (x *AccountsReply_Account) Reset()
func (*AccountsReply_Account) String ¶
func (x *AccountsReply_Account) String() string
type AccountsRequest ¶
type AccountsRequest struct { Limit *int32 `protobuf:"varint,1,opt,name=limit,proto3,oneof" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*AccountsRequest) Descriptor
deprecated
func (*AccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use AccountsRequest.ProtoReflect.Descriptor instead.
func (*AccountsRequest) GetLimit ¶
func (x *AccountsRequest) GetLimit() int32
func (*AccountsRequest) ProtoMessage ¶
func (*AccountsRequest) ProtoMessage()
func (*AccountsRequest) ProtoReflect ¶
func (x *AccountsRequest) ProtoReflect() protoreflect.Message
func (*AccountsRequest) Reset ¶
func (x *AccountsRequest) Reset()
func (*AccountsRequest) String ¶
func (x *AccountsRequest) String() string
type AddCommentsRequest ¶
type AddCommentsRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` Comment *AddCommentsRequest_Comment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*AddCommentsRequest) Descriptor
deprecated
func (*AddCommentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddCommentsRequest.ProtoReflect.Descriptor instead.
func (*AddCommentsRequest) GetComment ¶
func (x *AddCommentsRequest) GetComment() *AddCommentsRequest_Comment
func (*AddCommentsRequest) GetSlug ¶
func (x *AddCommentsRequest) GetSlug() string
func (*AddCommentsRequest) ProtoMessage ¶
func (*AddCommentsRequest) ProtoMessage()
func (*AddCommentsRequest) ProtoReflect ¶
func (x *AddCommentsRequest) ProtoReflect() protoreflect.Message
func (*AddCommentsRequest) Reset ¶
func (x *AddCommentsRequest) Reset()
func (*AddCommentsRequest) String ¶
func (x *AddCommentsRequest) String() string
type AddCommentsRequest_Comment ¶
type AddCommentsRequest_Comment struct { Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*AddCommentsRequest_Comment) Descriptor
deprecated
func (*AddCommentsRequest_Comment) Descriptor() ([]byte, []int)
Deprecated: Use AddCommentsRequest_Comment.ProtoReflect.Descriptor instead.
func (*AddCommentsRequest_Comment) GetBody ¶
func (x *AddCommentsRequest_Comment) GetBody() string
func (*AddCommentsRequest_Comment) ProtoMessage ¶
func (*AddCommentsRequest_Comment) ProtoMessage()
func (*AddCommentsRequest_Comment) ProtoReflect ¶
func (x *AddCommentsRequest_Comment) ProtoReflect() protoreflect.Message
func (*AddCommentsRequest_Comment) Reset ¶
func (x *AddCommentsRequest_Comment) Reset()
func (*AddCommentsRequest_Comment) String ¶
func (x *AddCommentsRequest_Comment) 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=tagList,proto3" json:"tagList,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 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 DeleteCommentsRequest ¶
type DeleteCommentsRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCommentsRequest) Descriptor
deprecated
func (*DeleteCommentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCommentsRequest.ProtoReflect.Descriptor instead.
func (*DeleteCommentsRequest) GetId ¶
func (x *DeleteCommentsRequest) GetId() int64
func (*DeleteCommentsRequest) GetSlug ¶
func (x *DeleteCommentsRequest) GetSlug() string
func (*DeleteCommentsRequest) ProtoMessage ¶
func (*DeleteCommentsRequest) ProtoMessage()
func (*DeleteCommentsRequest) ProtoReflect ¶
func (x *DeleteCommentsRequest) ProtoReflect() protoreflect.Message
func (*DeleteCommentsRequest) Reset ¶
func (x *DeleteCommentsRequest) Reset()
func (*DeleteCommentsRequest) String ¶
func (x *DeleteCommentsRequest) String() string
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_USER_NOT_FOUND ErrorReason = 0 ErrorReason_CONTENT_MISSING ErrorReason = 1 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type FavoriteArticleRequest ¶
type FavoriteArticleRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` // contains filtered or unexported fields }
func (*FavoriteArticleRequest) Descriptor
deprecated
func (*FavoriteArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteArticleRequest.ProtoReflect.Descriptor instead.
func (*FavoriteArticleRequest) GetSlug ¶
func (x *FavoriteArticleRequest) GetSlug() string
func (*FavoriteArticleRequest) ProtoMessage ¶
func (*FavoriteArticleRequest) ProtoMessage()
func (*FavoriteArticleRequest) ProtoReflect ¶
func (x *FavoriteArticleRequest) ProtoReflect() protoreflect.Message
func (*FavoriteArticleRequest) Reset ¶
func (x *FavoriteArticleRequest) Reset()
func (*FavoriteArticleRequest) String ¶
func (x *FavoriteArticleRequest) String() string
type FeedArticlesRequest ¶
type FeedArticlesRequest struct { Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*FeedArticlesRequest) Descriptor
deprecated
func (*FeedArticlesRequest) Descriptor() ([]byte, []int)
Deprecated: Use FeedArticlesRequest.ProtoReflect.Descriptor instead.
func (*FeedArticlesRequest) GetLimit ¶
func (x *FeedArticlesRequest) GetLimit() int64
func (*FeedArticlesRequest) GetOffset ¶
func (x *FeedArticlesRequest) GetOffset() int64
func (*FeedArticlesRequest) ProtoMessage ¶
func (*FeedArticlesRequest) ProtoMessage()
func (*FeedArticlesRequest) ProtoReflect ¶
func (x *FeedArticlesRequest) ProtoReflect() protoreflect.Message
func (*FeedArticlesRequest) Reset ¶
func (x *FeedArticlesRequest) Reset()
func (*FeedArticlesRequest) String ¶
func (x *FeedArticlesRequest) String() string
type FollowUserRequest ¶
type FollowUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*FollowUserRequest) Descriptor
deprecated
func (*FollowUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use FollowUserRequest.ProtoReflect.Descriptor instead.
func (*FollowUserRequest) GetUsername ¶
func (x *FollowUserRequest) GetUsername() string
func (*FollowUserRequest) ProtoMessage ¶
func (*FollowUserRequest) ProtoMessage()
func (*FollowUserRequest) ProtoReflect ¶
func (x *FollowUserRequest) ProtoReflect() protoreflect.Message
func (*FollowUserRequest) Reset ¶
func (x *FollowUserRequest) Reset()
func (*FollowUserRequest) String ¶
func (x *FollowUserRequest) 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 GetCommentsRequest ¶
type GetCommentsRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` // contains filtered or unexported fields }
func (*GetCommentsRequest) Descriptor
deprecated
func (*GetCommentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCommentsRequest.ProtoReflect.Descriptor instead.
func (*GetCommentsRequest) GetSlug ¶
func (x *GetCommentsRequest) GetSlug() string
func (*GetCommentsRequest) ProtoMessage ¶
func (*GetCommentsRequest) ProtoMessage()
func (*GetCommentsRequest) ProtoReflect ¶
func (x *GetCommentsRequest) ProtoReflect() protoreflect.Message
func (*GetCommentsRequest) Reset ¶
func (x *GetCommentsRequest) Reset()
func (*GetCommentsRequest) String ¶
func (x *GetCommentsRequest) 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 ListArticlesRequest ¶
type ListArticlesRequest 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 int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListArticlesRequest) Descriptor
deprecated
func (*ListArticlesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListArticlesRequest.ProtoReflect.Descriptor instead.
func (*ListArticlesRequest) GetAuthor ¶
func (x *ListArticlesRequest) GetAuthor() string
func (*ListArticlesRequest) GetFavorited ¶
func (x *ListArticlesRequest) GetFavorited() string
func (*ListArticlesRequest) GetLimit ¶
func (x *ListArticlesRequest) GetLimit() int64
func (*ListArticlesRequest) GetOffset ¶
func (x *ListArticlesRequest) GetOffset() int64
func (*ListArticlesRequest) GetTag ¶
func (x *ListArticlesRequest) GetTag() string
func (*ListArticlesRequest) ProtoMessage ¶
func (*ListArticlesRequest) ProtoMessage()
func (*ListArticlesRequest) ProtoReflect ¶
func (x *ListArticlesRequest) ProtoReflect() protoreflect.Message
func (*ListArticlesRequest) Reset ¶
func (x *ListArticlesRequest) Reset()
func (*ListArticlesRequest) String ¶
func (x *ListArticlesRequest) String() string
type LoginRequest ¶
type LoginRequest struct { User *LoginRequest_User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetUser ¶
func (x *LoginRequest) GetUser() *LoginRequest_User
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginRequest_User ¶
type LoginRequest_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 (*LoginRequest_User) Descriptor
deprecated
func (*LoginRequest_User) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest_User.ProtoReflect.Descriptor instead.
func (*LoginRequest_User) GetEmail ¶
func (x *LoginRequest_User) GetEmail() string
func (*LoginRequest_User) GetPassword ¶
func (x *LoginRequest_User) GetPassword() string
func (*LoginRequest_User) ProtoMessage ¶
func (*LoginRequest_User) ProtoMessage()
func (*LoginRequest_User) ProtoReflect ¶
func (x *LoginRequest_User) ProtoReflect() protoreflect.Message
func (*LoginRequest_User) Reset ¶
func (x *LoginRequest_User) Reset()
func (*LoginRequest_User) String ¶
func (x *LoginRequest_User) String() string
type MultipleArticlesReply ¶
type MultipleArticlesReply struct { Articles []*MultipleArticlesReply_Articles `protobuf:"bytes,1,rep,name=articles,proto3" json:"articles,omitempty"` ArticlesCount uint32 `protobuf:"varint,2,opt,name=articlesCount,proto3" json:"articlesCount,omitempty"` // contains filtered or unexported fields }
func (*MultipleArticlesReply) Descriptor
deprecated
func (*MultipleArticlesReply) Descriptor() ([]byte, []int)
Deprecated: Use MultipleArticlesReply.ProtoReflect.Descriptor instead.
func (*MultipleArticlesReply) GetArticles ¶
func (x *MultipleArticlesReply) GetArticles() []*MultipleArticlesReply_Articles
func (*MultipleArticlesReply) GetArticlesCount ¶
func (x *MultipleArticlesReply) GetArticlesCount() uint32
func (*MultipleArticlesReply) ProtoMessage ¶
func (*MultipleArticlesReply) ProtoMessage()
func (*MultipleArticlesReply) ProtoReflect ¶
func (x *MultipleArticlesReply) ProtoReflect() protoreflect.Message
func (*MultipleArticlesReply) Reset ¶
func (x *MultipleArticlesReply) Reset()
func (*MultipleArticlesReply) String ¶
func (x *MultipleArticlesReply) String() string
type MultipleArticlesReply_Articles ¶
type MultipleArticlesReply_Articles 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 uint32 `protobuf:"varint,9,opt,name=favoritesCount,proto3" json:"favoritesCount,omitempty"` Author *MultipleArticlesReply_Author `protobuf:"bytes,10,opt,name=author,proto3" json:"author,omitempty"` // contains filtered or unexported fields }
func (*MultipleArticlesReply_Articles) Descriptor
deprecated
func (*MultipleArticlesReply_Articles) Descriptor() ([]byte, []int)
Deprecated: Use MultipleArticlesReply_Articles.ProtoReflect.Descriptor instead.
func (*MultipleArticlesReply_Articles) GetAuthor ¶
func (x *MultipleArticlesReply_Articles) GetAuthor() *MultipleArticlesReply_Author
func (*MultipleArticlesReply_Articles) GetBody ¶
func (x *MultipleArticlesReply_Articles) GetBody() string
func (*MultipleArticlesReply_Articles) GetCreatedAt ¶
func (x *MultipleArticlesReply_Articles) GetCreatedAt() string
func (*MultipleArticlesReply_Articles) GetDescription ¶
func (x *MultipleArticlesReply_Articles) GetDescription() string
func (*MultipleArticlesReply_Articles) GetFavorited ¶
func (x *MultipleArticlesReply_Articles) GetFavorited() bool
func (*MultipleArticlesReply_Articles) GetFavoritesCount ¶
func (x *MultipleArticlesReply_Articles) GetFavoritesCount() uint32
func (*MultipleArticlesReply_Articles) GetSlug ¶
func (x *MultipleArticlesReply_Articles) GetSlug() string
func (*MultipleArticlesReply_Articles) GetTagList ¶
func (x *MultipleArticlesReply_Articles) GetTagList() []string
func (*MultipleArticlesReply_Articles) GetTitle ¶
func (x *MultipleArticlesReply_Articles) GetTitle() string
func (*MultipleArticlesReply_Articles) GetUpdatedAt ¶
func (x *MultipleArticlesReply_Articles) GetUpdatedAt() string
func (*MultipleArticlesReply_Articles) ProtoMessage ¶
func (*MultipleArticlesReply_Articles) ProtoMessage()
func (*MultipleArticlesReply_Articles) ProtoReflect ¶
func (x *MultipleArticlesReply_Articles) ProtoReflect() protoreflect.Message
func (*MultipleArticlesReply_Articles) Reset ¶
func (x *MultipleArticlesReply_Articles) Reset()
func (*MultipleArticlesReply_Articles) String ¶
func (x *MultipleArticlesReply_Articles) String() string
type MultipleArticlesReply_Author ¶
type MultipleArticlesReply_Author 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 (*MultipleArticlesReply_Author) Descriptor
deprecated
func (*MultipleArticlesReply_Author) Descriptor() ([]byte, []int)
Deprecated: Use MultipleArticlesReply_Author.ProtoReflect.Descriptor instead.
func (*MultipleArticlesReply_Author) GetBio ¶
func (x *MultipleArticlesReply_Author) GetBio() string
func (*MultipleArticlesReply_Author) GetFollowing ¶
func (x *MultipleArticlesReply_Author) GetFollowing() bool
func (*MultipleArticlesReply_Author) GetImage ¶
func (x *MultipleArticlesReply_Author) GetImage() string
func (*MultipleArticlesReply_Author) GetUsername ¶
func (x *MultipleArticlesReply_Author) GetUsername() string
func (*MultipleArticlesReply_Author) ProtoMessage ¶
func (*MultipleArticlesReply_Author) ProtoMessage()
func (*MultipleArticlesReply_Author) ProtoReflect ¶
func (x *MultipleArticlesReply_Author) ProtoReflect() protoreflect.Message
func (*MultipleArticlesReply_Author) Reset ¶
func (x *MultipleArticlesReply_Author) Reset()
func (*MultipleArticlesReply_Author) String ¶
func (x *MultipleArticlesReply_Author) String() string
type MultipleCommentsReply ¶
type MultipleCommentsReply struct { Comments []*MultipleCommentsReply_Comments `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` // contains filtered or unexported fields }
func (*MultipleCommentsReply) Descriptor
deprecated
func (*MultipleCommentsReply) Descriptor() ([]byte, []int)
Deprecated: Use MultipleCommentsReply.ProtoReflect.Descriptor instead.
func (*MultipleCommentsReply) GetComments ¶
func (x *MultipleCommentsReply) GetComments() []*MultipleCommentsReply_Comments
func (*MultipleCommentsReply) ProtoMessage ¶
func (*MultipleCommentsReply) ProtoMessage()
func (*MultipleCommentsReply) ProtoReflect ¶
func (x *MultipleCommentsReply) ProtoReflect() protoreflect.Message
func (*MultipleCommentsReply) Reset ¶
func (x *MultipleCommentsReply) Reset()
func (*MultipleCommentsReply) String ¶
func (x *MultipleCommentsReply) String() string
type MultipleCommentsReply_Author ¶
type MultipleCommentsReply_Author 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 (*MultipleCommentsReply_Author) Descriptor
deprecated
func (*MultipleCommentsReply_Author) Descriptor() ([]byte, []int)
Deprecated: Use MultipleCommentsReply_Author.ProtoReflect.Descriptor instead.
func (*MultipleCommentsReply_Author) GetBio ¶
func (x *MultipleCommentsReply_Author) GetBio() string
func (*MultipleCommentsReply_Author) GetFollowing ¶
func (x *MultipleCommentsReply_Author) GetFollowing() bool
func (*MultipleCommentsReply_Author) GetImage ¶
func (x *MultipleCommentsReply_Author) GetImage() string
func (*MultipleCommentsReply_Author) GetUsername ¶
func (x *MultipleCommentsReply_Author) GetUsername() string
func (*MultipleCommentsReply_Author) ProtoMessage ¶
func (*MultipleCommentsReply_Author) ProtoMessage()
func (*MultipleCommentsReply_Author) ProtoReflect ¶
func (x *MultipleCommentsReply_Author) ProtoReflect() protoreflect.Message
func (*MultipleCommentsReply_Author) Reset ¶
func (x *MultipleCommentsReply_Author) Reset()
func (*MultipleCommentsReply_Author) String ¶
func (x *MultipleCommentsReply_Author) String() string
type MultipleCommentsReply_Comments ¶
type MultipleCommentsReply_Comments struct { Id uint32 `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 *MultipleCommentsReply_Author `protobuf:"bytes,5,opt,name=author,proto3" json:"author,omitempty"` // contains filtered or unexported fields }
func (*MultipleCommentsReply_Comments) Descriptor
deprecated
func (*MultipleCommentsReply_Comments) Descriptor() ([]byte, []int)
Deprecated: Use MultipleCommentsReply_Comments.ProtoReflect.Descriptor instead.
func (*MultipleCommentsReply_Comments) GetAuthor ¶
func (x *MultipleCommentsReply_Comments) GetAuthor() *MultipleCommentsReply_Author
func (*MultipleCommentsReply_Comments) GetBody ¶
func (x *MultipleCommentsReply_Comments) GetBody() string
func (*MultipleCommentsReply_Comments) GetCreatedAt ¶
func (x *MultipleCommentsReply_Comments) GetCreatedAt() string
func (*MultipleCommentsReply_Comments) GetId ¶
func (x *MultipleCommentsReply_Comments) GetId() uint32
func (*MultipleCommentsReply_Comments) GetUpdatedAt ¶
func (x *MultipleCommentsReply_Comments) GetUpdatedAt() string
func (*MultipleCommentsReply_Comments) ProtoMessage ¶
func (*MultipleCommentsReply_Comments) ProtoMessage()
func (*MultipleCommentsReply_Comments) ProtoReflect ¶
func (x *MultipleCommentsReply_Comments) ProtoReflect() protoreflect.Message
func (*MultipleCommentsReply_Comments) Reset ¶
func (x *MultipleCommentsReply_Comments) Reset()
func (*MultipleCommentsReply_Comments) String ¶
func (x *MultipleCommentsReply_Comments) String() string
type ProfileReply ¶
type ProfileReply struct { Profile *ProfileReply_Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*ProfileReply) Descriptor
deprecated
func (*ProfileReply) Descriptor() ([]byte, []int)
Deprecated: Use ProfileReply.ProtoReflect.Descriptor instead.
func (*ProfileReply) GetProfile ¶
func (x *ProfileReply) GetProfile() *ProfileReply_Profile
func (*ProfileReply) ProtoMessage ¶
func (*ProfileReply) ProtoMessage()
func (*ProfileReply) ProtoReflect ¶
func (x *ProfileReply) ProtoReflect() protoreflect.Message
func (*ProfileReply) Reset ¶
func (x *ProfileReply) Reset()
func (*ProfileReply) String ¶
func (x *ProfileReply) String() string
type ProfileReply_Profile ¶
type ProfileReply_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 (*ProfileReply_Profile) Descriptor
deprecated
func (*ProfileReply_Profile) Descriptor() ([]byte, []int)
Deprecated: Use ProfileReply_Profile.ProtoReflect.Descriptor instead.
func (*ProfileReply_Profile) GetBio ¶
func (x *ProfileReply_Profile) GetBio() string
func (*ProfileReply_Profile) GetFollowing ¶
func (x *ProfileReply_Profile) GetFollowing() bool
func (*ProfileReply_Profile) GetImage ¶
func (x *ProfileReply_Profile) GetImage() string
func (*ProfileReply_Profile) GetUsername ¶
func (x *ProfileReply_Profile) GetUsername() string
func (*ProfileReply_Profile) ProtoMessage ¶
func (*ProfileReply_Profile) ProtoMessage()
func (*ProfileReply_Profile) ProtoReflect ¶
func (x *ProfileReply_Profile) ProtoReflect() protoreflect.Message
func (*ProfileReply_Profile) Reset ¶
func (x *ProfileReply_Profile) Reset()
func (*ProfileReply_Profile) String ¶
func (x *ProfileReply_Profile) String() string
type RealWorldClient ¶
type RealWorldClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*UserReply, error) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*UserReply, error) GetCurrentUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserReply, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UserReply, error) GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*ProfileReply, error) FollowUser(ctx context.Context, in *FollowUserRequest, opts ...grpc.CallOption) (*ProfileReply, error) UnfollowUser(ctx context.Context, in *UnfollowUserRequest, opts ...grpc.CallOption) (*ProfileReply, error) ListArticles(ctx context.Context, in *ListArticlesRequest, opts ...grpc.CallOption) (*MultipleArticlesReply, error) FeedArticles(ctx context.Context, in *FeedArticlesRequest, opts ...grpc.CallOption) (*MultipleArticlesReply, error) GetArticle(ctx context.Context, in *GetArticleRequest, opts ...grpc.CallOption) (*SingleArticleReply, error) CreateArticle(ctx context.Context, in *CreateArticleRequest, opts ...grpc.CallOption) (*MultipleArticlesReply, error) UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...grpc.CallOption) (*SingleArticleReply, error) DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...grpc.CallOption) (*SingleArticleReply, error) AddComments(ctx context.Context, in *AddCommentsRequest, opts ...grpc.CallOption) (*SingleCommentReply, error) GetComments(ctx context.Context, in *GetCommentsRequest, opts ...grpc.CallOption) (*MultipleCommentsReply, error) DeleteComment(ctx context.Context, in *DeleteCommentsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) FavoriteArticle(ctx context.Context, in *FavoriteArticleRequest, opts ...grpc.CallOption) (*SingleArticleReply, error) UnfavoriteArticle(ctx context.Context, in *UnfavoriteArticleRequest, opts ...grpc.CallOption) (*SingleArticleReply, error) GetTags(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TagListReply, 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 RealWorldHTTPClient ¶
type RealWorldHTTPClient interface { AddComments(ctx context.Context, req *AddCommentsRequest, opts ...http.CallOption) (rsp *SingleCommentReply, err error) CreateArticle(ctx context.Context, req *CreateArticleRequest, opts ...http.CallOption) (rsp *MultipleArticlesReply, err error) DeleteArticle(ctx context.Context, req *DeleteArticleRequest, opts ...http.CallOption) (rsp *SingleArticleReply, err error) DeleteComment(ctx context.Context, req *DeleteCommentsRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) FavoriteArticle(ctx context.Context, req *FavoriteArticleRequest, opts ...http.CallOption) (rsp *SingleArticleReply, err error) FeedArticles(ctx context.Context, req *FeedArticlesRequest, opts ...http.CallOption) (rsp *MultipleArticlesReply, err error) FollowUser(ctx context.Context, req *FollowUserRequest, opts ...http.CallOption) (rsp *ProfileReply, err error) GetArticle(ctx context.Context, req *GetArticleRequest, opts ...http.CallOption) (rsp *SingleArticleReply, err error) GetComments(ctx context.Context, req *GetCommentsRequest, opts ...http.CallOption) (rsp *MultipleCommentsReply, err error) GetCurrentUser(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserReply, err error) GetProfile(ctx context.Context, req *GetProfileRequest, opts ...http.CallOption) (rsp *ProfileReply, err error) GetTags(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *TagListReply, err error) ListArticles(ctx context.Context, req *ListArticlesRequest, opts ...http.CallOption) (rsp *MultipleArticlesReply, err error) Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *UserReply, err error) Register(ctx context.Context, req *RegisterRequest, opts ...http.CallOption) (rsp *UserReply, err error) UnfavoriteArticle(ctx context.Context, req *UnfavoriteArticleRequest, opts ...http.CallOption) (rsp *SingleArticleReply, err error) UnfollowUser(ctx context.Context, req *UnfollowUserRequest, opts ...http.CallOption) (rsp *ProfileReply, err error) UpdateArticle(ctx context.Context, req *UpdateArticleRequest, opts ...http.CallOption) (rsp *SingleArticleReply, err error) UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *UserReply, err error) }
func NewRealWorldHTTPClient ¶
func NewRealWorldHTTPClient(client *http.Client) RealWorldHTTPClient
type RealWorldHTTPClientImpl ¶
type RealWorldHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*RealWorldHTTPClientImpl) AddComments ¶
func (c *RealWorldHTTPClientImpl) AddComments(ctx context.Context, in *AddCommentsRequest, opts ...http.CallOption) (*SingleCommentReply, error)
func (*RealWorldHTTPClientImpl) CreateArticle ¶
func (c *RealWorldHTTPClientImpl) CreateArticle(ctx context.Context, in *CreateArticleRequest, opts ...http.CallOption) (*MultipleArticlesReply, error)
func (*RealWorldHTTPClientImpl) DeleteArticle ¶
func (c *RealWorldHTTPClientImpl) DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...http.CallOption) (*SingleArticleReply, error)
func (*RealWorldHTTPClientImpl) DeleteComment ¶
func (c *RealWorldHTTPClientImpl) DeleteComment(ctx context.Context, in *DeleteCommentsRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*RealWorldHTTPClientImpl) FavoriteArticle ¶
func (c *RealWorldHTTPClientImpl) FavoriteArticle(ctx context.Context, in *FavoriteArticleRequest, opts ...http.CallOption) (*SingleArticleReply, error)
func (*RealWorldHTTPClientImpl) FeedArticles ¶
func (c *RealWorldHTTPClientImpl) FeedArticles(ctx context.Context, in *FeedArticlesRequest, opts ...http.CallOption) (*MultipleArticlesReply, error)
func (*RealWorldHTTPClientImpl) FollowUser ¶
func (c *RealWorldHTTPClientImpl) FollowUser(ctx context.Context, in *FollowUserRequest, opts ...http.CallOption) (*ProfileReply, error)
func (*RealWorldHTTPClientImpl) GetArticle ¶
func (c *RealWorldHTTPClientImpl) GetArticle(ctx context.Context, in *GetArticleRequest, opts ...http.CallOption) (*SingleArticleReply, error)
func (*RealWorldHTTPClientImpl) GetComments ¶
func (c *RealWorldHTTPClientImpl) GetComments(ctx context.Context, in *GetCommentsRequest, opts ...http.CallOption) (*MultipleCommentsReply, error)
func (*RealWorldHTTPClientImpl) GetCurrentUser ¶
func (c *RealWorldHTTPClientImpl) GetCurrentUser(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserReply, error)
func (*RealWorldHTTPClientImpl) GetProfile ¶
func (c *RealWorldHTTPClientImpl) GetProfile(ctx context.Context, in *GetProfileRequest, opts ...http.CallOption) (*ProfileReply, error)
func (*RealWorldHTTPClientImpl) GetTags ¶
func (c *RealWorldHTTPClientImpl) GetTags(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*TagListReply, error)
func (*RealWorldHTTPClientImpl) ListArticles ¶
func (c *RealWorldHTTPClientImpl) ListArticles(ctx context.Context, in *ListArticlesRequest, opts ...http.CallOption) (*MultipleArticlesReply, error)
func (*RealWorldHTTPClientImpl) Login ¶
func (c *RealWorldHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*UserReply, error)
func (*RealWorldHTTPClientImpl) Register ¶
func (c *RealWorldHTTPClientImpl) Register(ctx context.Context, in *RegisterRequest, opts ...http.CallOption) (*UserReply, error)
func (*RealWorldHTTPClientImpl) UnfavoriteArticle ¶
func (c *RealWorldHTTPClientImpl) UnfavoriteArticle(ctx context.Context, in *UnfavoriteArticleRequest, opts ...http.CallOption) (*SingleArticleReply, error)
func (*RealWorldHTTPClientImpl) UnfollowUser ¶
func (c *RealWorldHTTPClientImpl) UnfollowUser(ctx context.Context, in *UnfollowUserRequest, opts ...http.CallOption) (*ProfileReply, error)
func (*RealWorldHTTPClientImpl) UpdateArticle ¶
func (c *RealWorldHTTPClientImpl) UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...http.CallOption) (*SingleArticleReply, error)
func (*RealWorldHTTPClientImpl) UpdateUser ¶
func (c *RealWorldHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*UserReply, error)
type RealWorldHTTPServer ¶
type RealWorldHTTPServer interface { AddComments(context.Context, *AddCommentsRequest) (*SingleCommentReply, error) CreateArticle(context.Context, *CreateArticleRequest) (*MultipleArticlesReply, error) DeleteArticle(context.Context, *DeleteArticleRequest) (*SingleArticleReply, error) DeleteComment(context.Context, *DeleteCommentsRequest) (*emptypb.Empty, error) FavoriteArticle(context.Context, *FavoriteArticleRequest) (*SingleArticleReply, error) FeedArticles(context.Context, *FeedArticlesRequest) (*MultipleArticlesReply, error) FollowUser(context.Context, *FollowUserRequest) (*ProfileReply, error) GetArticle(context.Context, *GetArticleRequest) (*SingleArticleReply, error) GetComments(context.Context, *GetCommentsRequest) (*MultipleCommentsReply, error) GetCurrentUser(context.Context, *emptypb.Empty) (*UserReply, error) GetProfile(context.Context, *GetProfileRequest) (*ProfileReply, error) GetTags(context.Context, *emptypb.Empty) (*TagListReply, error) ListArticles(context.Context, *ListArticlesRequest) (*MultipleArticlesReply, error) Login(context.Context, *LoginRequest) (*UserReply, error) Register(context.Context, *RegisterRequest) (*UserReply, error) UnfavoriteArticle(context.Context, *UnfavoriteArticleRequest) (*SingleArticleReply, error) UnfollowUser(context.Context, *UnfollowUserRequest) (*ProfileReply, error) UpdateArticle(context.Context, *UpdateArticleRequest) (*SingleArticleReply, error) UpdateUser(context.Context, *UpdateUserRequest) (*UserReply, error) }
type RealWorldServer ¶
type RealWorldServer interface { Login(context.Context, *LoginRequest) (*UserReply, error) Register(context.Context, *RegisterRequest) (*UserReply, error) GetCurrentUser(context.Context, *emptypb.Empty) (*UserReply, error) UpdateUser(context.Context, *UpdateUserRequest) (*UserReply, error) GetProfile(context.Context, *GetProfileRequest) (*ProfileReply, error) FollowUser(context.Context, *FollowUserRequest) (*ProfileReply, error) UnfollowUser(context.Context, *UnfollowUserRequest) (*ProfileReply, error) ListArticles(context.Context, *ListArticlesRequest) (*MultipleArticlesReply, error) FeedArticles(context.Context, *FeedArticlesRequest) (*MultipleArticlesReply, error) GetArticle(context.Context, *GetArticleRequest) (*SingleArticleReply, error) CreateArticle(context.Context, *CreateArticleRequest) (*MultipleArticlesReply, error) UpdateArticle(context.Context, *UpdateArticleRequest) (*SingleArticleReply, error) DeleteArticle(context.Context, *DeleteArticleRequest) (*SingleArticleReply, error) AddComments(context.Context, *AddCommentsRequest) (*SingleCommentReply, error) GetComments(context.Context, *GetCommentsRequest) (*MultipleCommentsReply, error) DeleteComment(context.Context, *DeleteCommentsRequest) (*emptypb.Empty, error) FavoriteArticle(context.Context, *FavoriteArticleRequest) (*SingleArticleReply, error) UnfavoriteArticle(context.Context, *UnfavoriteArticleRequest) (*SingleArticleReply, error) GetTags(context.Context, *emptypb.Empty) (*TagListReply, error) // contains filtered or unexported methods }
RealWorldServer is the server API for RealWorld service. All implementations must embed UnimplementedRealWorldServer for forward compatibility
type RegisterRequest ¶
type RegisterRequest struct { User *RegisterRequest_User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetUser ¶
func (x *RegisterRequest) GetUser() *RegisterRequest_User
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterRequest_User ¶
type RegisterRequest_User 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 (*RegisterRequest_User) Descriptor
deprecated
func (*RegisterRequest_User) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest_User.ProtoReflect.Descriptor instead.
func (*RegisterRequest_User) GetEmail ¶
func (x *RegisterRequest_User) GetEmail() string
func (*RegisterRequest_User) GetPassword ¶
func (x *RegisterRequest_User) GetPassword() string
func (*RegisterRequest_User) GetUsername ¶
func (x *RegisterRequest_User) GetUsername() string
func (*RegisterRequest_User) ProtoMessage ¶
func (*RegisterRequest_User) ProtoMessage()
func (*RegisterRequest_User) ProtoReflect ¶
func (x *RegisterRequest_User) ProtoReflect() protoreflect.Message
func (*RegisterRequest_User) Reset ¶
func (x *RegisterRequest_User) Reset()
func (*RegisterRequest_User) String ¶
func (x *RegisterRequest_User) String() string
type SingleArticleReply ¶
type SingleArticleReply 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 uint32 `protobuf:"varint,9,opt,name=favoritesCount,proto3" json:"favoritesCount,omitempty"` Author *SingleArticleReply_Author `protobuf:"bytes,10,opt,name=author,proto3" json:"author,omitempty"` // contains filtered or unexported fields }
func (*SingleArticleReply) Descriptor
deprecated
func (*SingleArticleReply) Descriptor() ([]byte, []int)
Deprecated: Use SingleArticleReply.ProtoReflect.Descriptor instead.
func (*SingleArticleReply) GetAuthor ¶
func (x *SingleArticleReply) GetAuthor() *SingleArticleReply_Author
func (*SingleArticleReply) GetBody ¶
func (x *SingleArticleReply) GetBody() string
func (*SingleArticleReply) GetCreatedAt ¶
func (x *SingleArticleReply) GetCreatedAt() string
func (*SingleArticleReply) GetDescription ¶
func (x *SingleArticleReply) GetDescription() string
func (*SingleArticleReply) GetFavorited ¶
func (x *SingleArticleReply) GetFavorited() bool
func (*SingleArticleReply) GetFavoritesCount ¶
func (x *SingleArticleReply) GetFavoritesCount() uint32
func (*SingleArticleReply) GetSlug ¶
func (x *SingleArticleReply) GetSlug() string
func (*SingleArticleReply) GetTagList ¶
func (x *SingleArticleReply) GetTagList() []string
func (*SingleArticleReply) GetTitle ¶
func (x *SingleArticleReply) GetTitle() string
func (*SingleArticleReply) GetUpdatedAt ¶
func (x *SingleArticleReply) GetUpdatedAt() string
func (*SingleArticleReply) ProtoMessage ¶
func (*SingleArticleReply) ProtoMessage()
func (*SingleArticleReply) ProtoReflect ¶
func (x *SingleArticleReply) ProtoReflect() protoreflect.Message
func (*SingleArticleReply) Reset ¶
func (x *SingleArticleReply) Reset()
func (*SingleArticleReply) String ¶
func (x *SingleArticleReply) String() string
type SingleArticleReply_Author ¶
type SingleArticleReply_Author 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 (*SingleArticleReply_Author) Descriptor
deprecated
func (*SingleArticleReply_Author) Descriptor() ([]byte, []int)
Deprecated: Use SingleArticleReply_Author.ProtoReflect.Descriptor instead.
func (*SingleArticleReply_Author) GetBio ¶
func (x *SingleArticleReply_Author) GetBio() string
func (*SingleArticleReply_Author) GetFollowing ¶
func (x *SingleArticleReply_Author) GetFollowing() bool
func (*SingleArticleReply_Author) GetImage ¶
func (x *SingleArticleReply_Author) GetImage() string
func (*SingleArticleReply_Author) GetUsername ¶
func (x *SingleArticleReply_Author) GetUsername() string
func (*SingleArticleReply_Author) ProtoMessage ¶
func (*SingleArticleReply_Author) ProtoMessage()
func (*SingleArticleReply_Author) ProtoReflect ¶
func (x *SingleArticleReply_Author) ProtoReflect() protoreflect.Message
func (*SingleArticleReply_Author) Reset ¶
func (x *SingleArticleReply_Author) Reset()
func (*SingleArticleReply_Author) String ¶
func (x *SingleArticleReply_Author) String() string
type SingleCommentReply ¶
type SingleCommentReply struct { Comment *SingleCommentReply_Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*SingleCommentReply) Descriptor
deprecated
func (*SingleCommentReply) Descriptor() ([]byte, []int)
Deprecated: Use SingleCommentReply.ProtoReflect.Descriptor instead.
func (*SingleCommentReply) GetComment ¶
func (x *SingleCommentReply) GetComment() *SingleCommentReply_Comment
func (*SingleCommentReply) ProtoMessage ¶
func (*SingleCommentReply) ProtoMessage()
func (*SingleCommentReply) ProtoReflect ¶
func (x *SingleCommentReply) ProtoReflect() protoreflect.Message
func (*SingleCommentReply) Reset ¶
func (x *SingleCommentReply) Reset()
func (*SingleCommentReply) String ¶
func (x *SingleCommentReply) String() string
type SingleCommentReply_Author ¶
type SingleCommentReply_Author 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 (*SingleCommentReply_Author) Descriptor
deprecated
func (*SingleCommentReply_Author) Descriptor() ([]byte, []int)
Deprecated: Use SingleCommentReply_Author.ProtoReflect.Descriptor instead.
func (*SingleCommentReply_Author) GetBio ¶
func (x *SingleCommentReply_Author) GetBio() string
func (*SingleCommentReply_Author) GetFollowing ¶
func (x *SingleCommentReply_Author) GetFollowing() bool
func (*SingleCommentReply_Author) GetImage ¶
func (x *SingleCommentReply_Author) GetImage() string
func (*SingleCommentReply_Author) GetUsername ¶
func (x *SingleCommentReply_Author) GetUsername() string
func (*SingleCommentReply_Author) ProtoMessage ¶
func (*SingleCommentReply_Author) ProtoMessage()
func (*SingleCommentReply_Author) ProtoReflect ¶
func (x *SingleCommentReply_Author) ProtoReflect() protoreflect.Message
func (*SingleCommentReply_Author) Reset ¶
func (x *SingleCommentReply_Author) Reset()
func (*SingleCommentReply_Author) String ¶
func (x *SingleCommentReply_Author) String() string
type SingleCommentReply_Comment ¶
type SingleCommentReply_Comment struct { Id uint32 `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 *SingleCommentReply_Author `protobuf:"bytes,5,opt,name=author,proto3" json:"author,omitempty"` // contains filtered or unexported fields }
func (*SingleCommentReply_Comment) Descriptor
deprecated
func (*SingleCommentReply_Comment) Descriptor() ([]byte, []int)
Deprecated: Use SingleCommentReply_Comment.ProtoReflect.Descriptor instead.
func (*SingleCommentReply_Comment) GetAuthor ¶
func (x *SingleCommentReply_Comment) GetAuthor() *SingleCommentReply_Author
func (*SingleCommentReply_Comment) GetBody ¶
func (x *SingleCommentReply_Comment) GetBody() string
func (*SingleCommentReply_Comment) GetCreatedAt ¶
func (x *SingleCommentReply_Comment) GetCreatedAt() string
func (*SingleCommentReply_Comment) GetId ¶
func (x *SingleCommentReply_Comment) GetId() uint32
func (*SingleCommentReply_Comment) GetUpdatedAt ¶
func (x *SingleCommentReply_Comment) GetUpdatedAt() string
func (*SingleCommentReply_Comment) ProtoMessage ¶
func (*SingleCommentReply_Comment) ProtoMessage()
func (*SingleCommentReply_Comment) ProtoReflect ¶
func (x *SingleCommentReply_Comment) ProtoReflect() protoreflect.Message
func (*SingleCommentReply_Comment) Reset ¶
func (x *SingleCommentReply_Comment) Reset()
func (*SingleCommentReply_Comment) String ¶
func (x *SingleCommentReply_Comment) String() string
type TagListReply ¶
type TagListReply struct { Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*TagListReply) Descriptor
deprecated
func (*TagListReply) Descriptor() ([]byte, []int)
Deprecated: Use TagListReply.ProtoReflect.Descriptor instead.
func (*TagListReply) GetTags ¶
func (x *TagListReply) GetTags() []string
func (*TagListReply) ProtoMessage ¶
func (*TagListReply) ProtoMessage()
func (*TagListReply) ProtoReflect ¶
func (x *TagListReply) ProtoReflect() protoreflect.Message
func (*TagListReply) Reset ¶
func (x *TagListReply) Reset()
func (*TagListReply) String ¶
func (x *TagListReply) String() string
type UnfavoriteArticleRequest ¶
type UnfavoriteArticleRequest struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` // contains filtered or unexported fields }
func (*UnfavoriteArticleRequest) Descriptor
deprecated
func (*UnfavoriteArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnfavoriteArticleRequest.ProtoReflect.Descriptor instead.
func (*UnfavoriteArticleRequest) GetSlug ¶
func (x *UnfavoriteArticleRequest) GetSlug() string
func (*UnfavoriteArticleRequest) ProtoMessage ¶
func (*UnfavoriteArticleRequest) ProtoMessage()
func (*UnfavoriteArticleRequest) ProtoReflect ¶
func (x *UnfavoriteArticleRequest) ProtoReflect() protoreflect.Message
func (*UnfavoriteArticleRequest) Reset ¶
func (x *UnfavoriteArticleRequest) Reset()
func (*UnfavoriteArticleRequest) String ¶
func (x *UnfavoriteArticleRequest) String() string
type UnfollowUserRequest ¶
type UnfollowUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*UnfollowUserRequest) Descriptor
deprecated
func (*UnfollowUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnfollowUserRequest.ProtoReflect.Descriptor instead.
func (*UnfollowUserRequest) GetUsername ¶
func (x *UnfollowUserRequest) GetUsername() string
func (*UnfollowUserRequest) ProtoMessage ¶
func (*UnfollowUserRequest) ProtoMessage()
func (*UnfollowUserRequest) ProtoReflect ¶
func (x *UnfollowUserRequest) ProtoReflect() protoreflect.Message
func (*UnfollowUserRequest) Reset ¶
func (x *UnfollowUserRequest) Reset()
func (*UnfollowUserRequest) String ¶
func (x *UnfollowUserRequest) String() string
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct { }
UnimplementedAccountServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountServer) Accounts ¶
func (UnimplementedAccountServer) Accounts(context.Context, *AccountsRequest) (*AccountsReply, error)
type UnimplementedRealWorldServer ¶
type UnimplementedRealWorldServer struct { }
UnimplementedRealWorldServer must be embedded to have forward compatible implementations.
func (UnimplementedRealWorldServer) AddComments ¶
func (UnimplementedRealWorldServer) AddComments(context.Context, *AddCommentsRequest) (*SingleCommentReply, error)
func (UnimplementedRealWorldServer) CreateArticle ¶
func (UnimplementedRealWorldServer) CreateArticle(context.Context, *CreateArticleRequest) (*MultipleArticlesReply, error)
func (UnimplementedRealWorldServer) DeleteArticle ¶
func (UnimplementedRealWorldServer) DeleteArticle(context.Context, *DeleteArticleRequest) (*SingleArticleReply, error)
func (UnimplementedRealWorldServer) DeleteComment ¶
func (UnimplementedRealWorldServer) DeleteComment(context.Context, *DeleteCommentsRequest) (*emptypb.Empty, error)
func (UnimplementedRealWorldServer) FavoriteArticle ¶
func (UnimplementedRealWorldServer) FavoriteArticle(context.Context, *FavoriteArticleRequest) (*SingleArticleReply, error)
func (UnimplementedRealWorldServer) FeedArticles ¶
func (UnimplementedRealWorldServer) FeedArticles(context.Context, *FeedArticlesRequest) (*MultipleArticlesReply, error)
func (UnimplementedRealWorldServer) FollowUser ¶
func (UnimplementedRealWorldServer) FollowUser(context.Context, *FollowUserRequest) (*ProfileReply, error)
func (UnimplementedRealWorldServer) GetArticle ¶
func (UnimplementedRealWorldServer) GetArticle(context.Context, *GetArticleRequest) (*SingleArticleReply, error)
func (UnimplementedRealWorldServer) GetComments ¶
func (UnimplementedRealWorldServer) GetComments(context.Context, *GetCommentsRequest) (*MultipleCommentsReply, error)
func (UnimplementedRealWorldServer) GetCurrentUser ¶
func (UnimplementedRealWorldServer) GetProfile ¶
func (UnimplementedRealWorldServer) GetProfile(context.Context, *GetProfileRequest) (*ProfileReply, error)
func (UnimplementedRealWorldServer) GetTags ¶
func (UnimplementedRealWorldServer) GetTags(context.Context, *emptypb.Empty) (*TagListReply, error)
func (UnimplementedRealWorldServer) ListArticles ¶
func (UnimplementedRealWorldServer) ListArticles(context.Context, *ListArticlesRequest) (*MultipleArticlesReply, error)
func (UnimplementedRealWorldServer) Login ¶
func (UnimplementedRealWorldServer) Login(context.Context, *LoginRequest) (*UserReply, error)
func (UnimplementedRealWorldServer) Register ¶
func (UnimplementedRealWorldServer) Register(context.Context, *RegisterRequest) (*UserReply, error)
func (UnimplementedRealWorldServer) UnfavoriteArticle ¶
func (UnimplementedRealWorldServer) UnfavoriteArticle(context.Context, *UnfavoriteArticleRequest) (*SingleArticleReply, error)
func (UnimplementedRealWorldServer) UnfollowUser ¶
func (UnimplementedRealWorldServer) UnfollowUser(context.Context, *UnfollowUserRequest) (*ProfileReply, error)
func (UnimplementedRealWorldServer) UpdateArticle ¶
func (UnimplementedRealWorldServer) UpdateArticle(context.Context, *UpdateArticleRequest) (*SingleArticleReply, error)
func (UnimplementedRealWorldServer) UpdateUser ¶
func (UnimplementedRealWorldServer) UpdateUser(context.Context, *UpdateUserRequest) (*UserReply, error)
type UnsafeAccountServer ¶
type UnsafeAccountServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServer will result in compilation errors.
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 { Article *UpdateArticleRequest_Article `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"` Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,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"` Slug []string `protobuf:"bytes,4,rep,name=slug,proto3" json:"slug,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) GetSlug ¶
func (x *UpdateArticleRequest_Article) GetSlug() []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"` 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 (*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) 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 UserReply ¶
type UserReply struct { User *UserReply_User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UserReply) Descriptor
deprecated
func (*UserReply) GetUser ¶
func (x *UserReply) GetUser() *UserReply_User
func (*UserReply) ProtoMessage ¶
func (*UserReply) ProtoMessage()
func (*UserReply) ProtoReflect ¶
func (x *UserReply) ProtoReflect() protoreflect.Message
type UserReply_User ¶
type UserReply_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 *anypb.Any `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*UserReply_User) Descriptor
deprecated
func (*UserReply_User) Descriptor() ([]byte, []int)
Deprecated: Use UserReply_User.ProtoReflect.Descriptor instead.
func (*UserReply_User) GetBio ¶
func (x *UserReply_User) GetBio() string
func (*UserReply_User) GetEmail ¶
func (x *UserReply_User) GetEmail() string
func (*UserReply_User) GetImage ¶
func (x *UserReply_User) GetImage() *anypb.Any
func (*UserReply_User) GetToken ¶
func (x *UserReply_User) GetToken() string
func (*UserReply_User) GetUsername ¶
func (x *UserReply_User) GetUsername() string
func (*UserReply_User) ProtoMessage ¶
func (*UserReply_User) ProtoMessage()
func (*UserReply_User) ProtoReflect ¶
func (x *UserReply_User) ProtoReflect() protoreflect.Message
func (*UserReply_User) Reset ¶
func (x *UserReply_User) Reset()
func (*UserReply_User) String ¶
func (x *UserReply_User) String() string