pb

package
v0.0.0-...-2c8b9bc Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_article_proto protoreflect.FileDescriptor
View Source
var File_rpc_article_proto protoreflect.FileDescriptor
View Source
var File_rpc_user_proto protoreflect.FileDescriptor
View Source
var File_service_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Article.ProtoReflect.Descriptor instead.

func (*Article) GetAuthor

func (x *Article) GetAuthor() *Profile

func (*Article) GetBody

func (x *Article) GetBody() string

func (*Article) GetCreatedAt

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

func (*Article) GetDescription

func (x *Article) GetDescription() string

func (*Article) GetFavoriteCount

func (x *Article) GetFavoriteCount() int64

func (*Article) GetFavorited

func (x *Article) GetFavorited() bool

func (*Article) GetSlug

func (x *Article) GetSlug() string

func (*Article) GetTagList

func (x *Article) GetTagList() []string

func (*Article) GetTitle

func (x *Article) GetTitle() string

func (*Article) GetUpdatedAt

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

func (*Article) ProtoMessage

func (*Article) ProtoMessage()

func (*Article) ProtoReflect

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

func (*Article) Reset

func (x *Article) Reset()

func (*Article) String

func (x *Article) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetAuthor

func (x *Comment) GetAuthor() *Profile

func (*Comment) GetBody

func (x *Comment) GetBody() string

func (*Comment) GetCreatedAt

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

func (*Comment) GetId

func (x *Comment) GetId() string

func (*Comment) GetUpdatedAt

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

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

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

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

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 (*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 (*CreateArticleRequest_Article) Reset

func (x *CreateArticleRequest_Article) Reset()

func (*CreateArticleRequest_Article) 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 (*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 (*CreateCommentRequest_Comment) Reset

func (x *CreateCommentRequest_Comment) Reset()

func (*CreateCommentRequest_Comment) 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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetBio

func (x *Profile) GetBio() string

func (*Profile) GetFollowing

func (x *Profile) GetFollowing() bool

func (*Profile) GetImage

func (x *Profile) GetImage() string

func (*Profile) GetUsername

func (x *Profile) GetUsername() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

type ProfileResponse

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

func (*ProfileResponse) Descriptor deprecated

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

Deprecated: Use ProfileResponse.ProtoReflect.Descriptor instead.

func (*ProfileResponse) GetProfile

func (x *ProfileResponse) GetProfile() *Profile

func (*ProfileResponse) ProtoMessage

func (*ProfileResponse) ProtoMessage()

func (*ProfileResponse) ProtoReflect

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

func (*ProfileResponse) Reset

func (x *ProfileResponse) Reset()

func (*ProfileResponse) String

func (x *ProfileResponse) String() string

type 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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetStatus

func (x *Response) GetStatus() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedRealWorldServer

type UnimplementedRealWorldServer struct {
}

UnimplementedRealWorldServer must be embedded to have forward compatible implementations.

func (UnimplementedRealWorldServer) CreateArticle

func (UnimplementedRealWorldServer) CreateComment

func (UnimplementedRealWorldServer) CurrentUser

func (UnimplementedRealWorldServer) DeleteArticle

func (UnimplementedRealWorldServer) DeleteComment

func (UnimplementedRealWorldServer) FavoriteArticle

func (UnimplementedRealWorldServer) FeedArticle

func (UnimplementedRealWorldServer) FollowUser

func (UnimplementedRealWorldServer) GetArticle

func (UnimplementedRealWorldServer) GetProfile

func (UnimplementedRealWorldServer) ListArticle

func (UnimplementedRealWorldServer) ListComment

func (UnimplementedRealWorldServer) ListTag

func (UnimplementedRealWorldServer) LoginUser

func (UnimplementedRealWorldServer) RegisterUser

func (UnimplementedRealWorldServer) UnFavoriteArticle

func (UnimplementedRealWorldServer) UnFollowUser

func (UnimplementedRealWorldServer) UpdateArticle

func (UnimplementedRealWorldServer) UpdateUser

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 (*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 (*UpdateArticleRequest_Article) Reset

func (x *UpdateArticleRequest_Article) Reset()

func (*UpdateArticleRequest_Article) 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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetBio

func (x *User) GetBio() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetImage

func (x *User) GetImage() string

func (*User) GetToken

func (x *User) GetToken() string

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type 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

Jump to

Keyboard shortcuts

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