v1

package
v0.0.0-...-db98cbe Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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)

View Source
var File_api_realworld_v1_account_proto protoreflect.FileDescriptor
View Source
var File_api_realworld_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_api_realworld_v1_realworld_proto protoreflect.FileDescriptor
View Source
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 ErrorContentMissing(format string, args ...interface{}) *errors.Error

func ErrorUserNotFound

func ErrorUserNotFound(format string, args ...interface{}) *errors.Error

func IsContentMissing

func IsContentMissing(err error) bool

func IsUserNotFound

func IsUserNotFound(err error) bool

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

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

func (x *CreateArticleRequest_Article) Reset()

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

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 (*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 (*MultipleArticlesReply_Articles) GetBody

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

func (x *MultipleArticlesReply_Articles) Reset()

func (*MultipleArticlesReply_Articles) 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 (*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 (*MultipleArticlesReply_Author) Reset

func (x *MultipleArticlesReply_Author) Reset()

func (*MultipleArticlesReply_Author) 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 (*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 (*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 (*MultipleCommentsReply_Author) Reset

func (x *MultipleCommentsReply_Author) Reset()

func (*MultipleCommentsReply_Author) 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 (*MultipleCommentsReply_Comments) GetBody

func (*MultipleCommentsReply_Comments) GetCreatedAt

func (x *MultipleCommentsReply_Comments) GetCreatedAt() string

func (*MultipleCommentsReply_Comments) GetId

func (*MultipleCommentsReply_Comments) GetUpdatedAt

func (x *MultipleCommentsReply_Comments) GetUpdatedAt() string

func (*MultipleCommentsReply_Comments) ProtoMessage

func (*MultipleCommentsReply_Comments) ProtoMessage()

func (*MultipleCommentsReply_Comments) ProtoReflect

func (*MultipleCommentsReply_Comments) Reset

func (x *MultipleCommentsReply_Comments) Reset()

func (*MultipleCommentsReply_Comments) 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 (*RealWorldHTTPClientImpl) CreateArticle

func (*RealWorldHTTPClientImpl) DeleteArticle

func (*RealWorldHTTPClientImpl) DeleteComment

func (*RealWorldHTTPClientImpl) FavoriteArticle

func (*RealWorldHTTPClientImpl) FeedArticles

func (*RealWorldHTTPClientImpl) FollowUser

func (*RealWorldHTTPClientImpl) GetArticle

func (*RealWorldHTTPClientImpl) GetComments

func (*RealWorldHTTPClientImpl) GetCurrentUser

func (c *RealWorldHTTPClientImpl) GetCurrentUser(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserReply, error)

func (*RealWorldHTTPClientImpl) GetProfile

func (*RealWorldHTTPClientImpl) GetTags

func (*RealWorldHTTPClientImpl) ListArticles

func (*RealWorldHTTPClientImpl) Login

func (*RealWorldHTTPClientImpl) Register

func (*RealWorldHTTPClientImpl) UnfavoriteArticle

func (*RealWorldHTTPClientImpl) UnfollowUser

func (*RealWorldHTTPClientImpl) UpdateArticle

func (*RealWorldHTTPClientImpl) UpdateUser

type RealWorldHTTPServer

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 (*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 (*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 (*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 (*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 (*SingleCommentReply_Comment) GetBody

func (x *SingleCommentReply_Comment) GetBody() string

func (*SingleCommentReply_Comment) GetCreatedAt

func (x *SingleCommentReply_Comment) GetCreatedAt() string

func (*SingleCommentReply_Comment) GetId

func (*SingleCommentReply_Comment) GetUpdatedAt

func (x *SingleCommentReply_Comment) GetUpdatedAt() string

func (*SingleCommentReply_Comment) ProtoMessage

func (*SingleCommentReply_Comment) ProtoMessage()

func (*SingleCommentReply_Comment) ProtoReflect

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

type UnimplementedRealWorldServer

type UnimplementedRealWorldServer struct {
}

UnimplementedRealWorldServer must be embedded to have forward compatible implementations.

func (UnimplementedRealWorldServer) AddComments

func (UnimplementedRealWorldServer) CreateArticle

func (UnimplementedRealWorldServer) DeleteArticle

func (UnimplementedRealWorldServer) DeleteComment

func (UnimplementedRealWorldServer) FavoriteArticle

func (UnimplementedRealWorldServer) FeedArticles

func (UnimplementedRealWorldServer) FollowUser

func (UnimplementedRealWorldServer) GetArticle

func (UnimplementedRealWorldServer) GetComments

func (UnimplementedRealWorldServer) GetCurrentUser

func (UnimplementedRealWorldServer) GetProfile

func (UnimplementedRealWorldServer) GetTags

func (UnimplementedRealWorldServer) ListArticles

func (UnimplementedRealWorldServer) Login

func (UnimplementedRealWorldServer) Register

func (UnimplementedRealWorldServer) UnfavoriteArticle

func (UnimplementedRealWorldServer) UnfollowUser

func (UnimplementedRealWorldServer) UpdateArticle

func (UnimplementedRealWorldServer) UpdateUser

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

Deprecated: Use UserReply.ProtoReflect.Descriptor instead.

func (*UserReply) GetUser

func (x *UserReply) GetUser() *UserReply_User

func (*UserReply) ProtoMessage

func (*UserReply) ProtoMessage()

func (*UserReply) ProtoReflect

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

func (*UserReply) Reset

func (x *UserReply) Reset()

func (*UserReply) String

func (x *UserReply) String() string

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

Jump to

Keyboard shortcuts

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