Documentation ¶
Overview ¶
Package defs is a generated protocol buffer package.
It is generated from these files:
defs/comment.proto defs/common.proto defs/error.proto defs/post.proto defs/service.proto defs/session.proto defs/user.proto
It has these top-level messages:
Comment ReqCommentCreate ResComment ReqCommentUpdate ResCommentSuccess ResCommentList Pager Query GetByQuery GetByID ErrorDetails Error Post ReqPostCreate ResPost ReqPostUpdate ResPostSuccess ReqPostChangeStatus ResPostList Session User ReqRegistration ResRegistration ReqLogin ResLogin ReqProfile ResProfile ReqUpdateUser ResUpdateUser ReqChangePassword ResChangePassword ReqChangeUserStatus ResChangeUserStatus ReqChangeUserType ResChangeUserType ReqUserLogout ResUserLogout ReqResetPasswordRequest ResResetPasswordRequest ReqResetPassword ResResetPassword
Index ¶
- func RegisterRapunzelBlogServiceServer(s *grpc.Server, srv RapunzelBlogServiceServer)
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)
- func (m *Comment) GetBody() string
- func (m *Comment) GetCreatedAt() string
- func (m *Comment) GetId() string
- func (m *Comment) GetPostId() string
- func (m *Comment) GetTitle() string
- func (m *Comment) GetUpdatedAt() string
- func (m *Comment) GetUserId() string
- func (*Comment) ProtoMessage()
- func (m *Comment) Reset()
- func (m *Comment) String() string
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetCode() int32
- func (m *Error) GetDetails() string
- func (m *Error) GetErrorDetails() []*ErrorDetails
- func (m *Error) GetID() string
- func (m *Error) GetTitle() string
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) String() string
- type ErrorDetails
- type GetByID
- type GetByQuery
- type Pager
- type Post
- func (*Post) Descriptor() ([]byte, []int)
- func (m *Post) GetBody() string
- func (m *Post) GetCategories() []string
- func (m *Post) GetCreatedAt() string
- func (m *Post) GetFavourites() int64
- func (m *Post) GetId() string
- func (m *Post) GetStatus() string
- func (m *Post) GetTags() []string
- func (m *Post) GetTitle() string
- func (m *Post) GetUpdatedAt() string
- func (m *Post) GetUserId() string
- func (m *Post) GetViews() int64
- func (*Post) ProtoMessage()
- func (m *Post) Reset()
- func (m *Post) String() string
- type Query
- type RapunzelBlogServiceClient
- type RapunzelBlogServiceServer
- type ReqChangePassword
- type ReqChangeUserStatus
- type ReqChangeUserType
- type ReqCommentCreate
- func (*ReqCommentCreate) Descriptor() ([]byte, []int)
- func (m *ReqCommentCreate) GetBody() string
- func (m *ReqCommentCreate) GetPostId() string
- func (m *ReqCommentCreate) GetTitle() string
- func (*ReqCommentCreate) ProtoMessage()
- func (m *ReqCommentCreate) Reset()
- func (m *ReqCommentCreate) String() string
- type ReqCommentUpdate
- func (*ReqCommentUpdate) Descriptor() ([]byte, []int)
- func (m *ReqCommentUpdate) GetBody() string
- func (m *ReqCommentUpdate) GetId() string
- func (m *ReqCommentUpdate) GetTitle() string
- func (*ReqCommentUpdate) ProtoMessage()
- func (m *ReqCommentUpdate) Reset()
- func (m *ReqCommentUpdate) String() string
- type ReqLogin
- type ReqPostChangeStatus
- type ReqPostCreate
- func (*ReqPostCreate) Descriptor() ([]byte, []int)
- func (m *ReqPostCreate) GetBody() string
- func (m *ReqPostCreate) GetCategories() []string
- func (m *ReqPostCreate) GetTags() []string
- func (m *ReqPostCreate) GetTitle() string
- func (*ReqPostCreate) ProtoMessage()
- func (m *ReqPostCreate) Reset()
- func (m *ReqPostCreate) String() string
- type ReqPostUpdate
- func (*ReqPostUpdate) Descriptor() ([]byte, []int)
- func (m *ReqPostUpdate) GetBody() string
- func (m *ReqPostUpdate) GetCategories() []string
- func (m *ReqPostUpdate) GetId() string
- func (m *ReqPostUpdate) GetTags() []string
- func (m *ReqPostUpdate) GetTitle() string
- func (*ReqPostUpdate) ProtoMessage()
- func (m *ReqPostUpdate) Reset()
- func (m *ReqPostUpdate) String() string
- type ReqProfile
- type ReqRegistration
- func (*ReqRegistration) Descriptor() ([]byte, []int)
- func (m *ReqRegistration) GetDetails() string
- func (m *ReqRegistration) GetEmail() string
- func (m *ReqRegistration) GetName() string
- func (m *ReqRegistration) GetPassword() string
- func (m *ReqRegistration) GetUsername() string
- func (*ReqRegistration) ProtoMessage()
- func (m *ReqRegistration) Reset()
- func (m *ReqRegistration) String() string
- type ReqResetPassword
- type ReqResetPasswordRequest
- type ReqUpdateUser
- type ReqUserLogout
- type ResChangePassword
- type ResChangeUserStatus
- type ResChangeUserType
- type ResComment
- type ResCommentList
- type ResCommentSuccess
- type ResLogin
- type ResPost
- type ResPostList
- type ResPostSuccess
- type ResProfile
- type ResRegistration
- type ResResetPassword
- type ResResetPasswordRequest
- func (*ResResetPasswordRequest) Descriptor() ([]byte, []int)
- func (m *ResResetPasswordRequest) GetErrors() []*Error
- func (m *ResResetPasswordRequest) GetSuccess() bool
- func (*ResResetPasswordRequest) ProtoMessage()
- func (m *ResResetPasswordRequest) Reset()
- func (m *ResResetPasswordRequest) String() string
- type ResUpdateUser
- type ResUserLogout
- type Session
- func (*Session) Descriptor() ([]byte, []int)
- func (m *Session) GetAccessToken() string
- func (m *Session) GetCreatedTime() string
- func (m *Session) GetExpireTime() string
- func (m *Session) GetRefreshToken() string
- func (*Session) ProtoMessage()
- func (m *Session) Reset()
- func (m *Session) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetCreatedAt() string
- func (m *User) GetDetails() string
- func (m *User) GetEmail() string
- func (m *User) GetID() string
- func (m *User) GetName() string
- func (m *User) GetUpdatedAt() string
- func (m *User) GetUserStatus() string
- func (m *User) GetUserType() string
- func (m *User) GetUsername() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRapunzelBlogServiceServer ¶
func RegisterRapunzelBlogServiceServer(s *grpc.Server, srv RapunzelBlogServiceServer)
Types ¶
type Comment ¶
type Comment struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` Body string `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"` UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId" json:"user_id,omitempty"` PostId string `protobuf:"bytes,5,opt,name=post_id,json=postId" json:"post_id,omitempty"` CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"` }
func (*Comment) Descriptor ¶
func (*Comment) GetCreatedAt ¶
func (*Comment) GetUpdatedAt ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
type Error ¶
type Error struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` Title string `protobuf:"bytes,2,opt,name=Title" json:"Title,omitempty"` Code int32 `protobuf:"varint,3,opt,name=Code" json:"Code,omitempty"` Details string `protobuf:"bytes,4,opt,name=Details" json:"Details,omitempty"` ErrorDetails []*ErrorDetails `protobuf:"bytes,5,rep,name=ErrorDetails" json:"ErrorDetails,omitempty"` }
func (*Error) Descriptor ¶
func (*Error) GetDetails ¶
func (*Error) GetErrorDetails ¶
func (m *Error) GetErrorDetails() []*ErrorDetails
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
type ErrorDetails ¶
type ErrorDetails struct { Field string `protobuf:"bytes,1,opt,name=Field" json:"Field,omitempty"` Details []string `protobuf:"bytes,2,rep,name=Details" json:"Details,omitempty"` }
func (*ErrorDetails) Descriptor ¶
func (*ErrorDetails) Descriptor() ([]byte, []int)
func (*ErrorDetails) GetDetails ¶
func (m *ErrorDetails) GetDetails() []string
func (*ErrorDetails) GetField ¶
func (m *ErrorDetails) GetField() string
func (*ErrorDetails) ProtoMessage ¶
func (*ErrorDetails) ProtoMessage()
func (*ErrorDetails) Reset ¶
func (m *ErrorDetails) Reset()
func (*ErrorDetails) String ¶
func (m *ErrorDetails) String() string
type GetByID ¶
type GetByID struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
func (*GetByID) Descriptor ¶
func (*GetByID) ProtoMessage ¶
func (*GetByID) ProtoMessage()
type GetByQuery ¶
type GetByQuery struct {
Query []*Query `protobuf:"bytes,1,rep,name=query" json:"query,omitempty"`
}
func (*GetByQuery) Descriptor ¶
func (*GetByQuery) Descriptor() ([]byte, []int)
func (*GetByQuery) GetQuery ¶
func (m *GetByQuery) GetQuery() []*Query
func (*GetByQuery) ProtoMessage ¶
func (*GetByQuery) ProtoMessage()
func (*GetByQuery) Reset ¶
func (m *GetByQuery) Reset()
func (*GetByQuery) String ¶
func (m *GetByQuery) String() string
type Pager ¶
type Pager struct { CurrentPage int32 `protobuf:"varint,1,opt,name=current_page,json=currentPage" json:"current_page,omitempty"` TotalPage int32 `protobuf:"varint,2,opt,name=total_page,json=totalPage" json:"total_page,omitempty"` Total int32 `protobuf:"varint,3,opt,name=total" json:"total,omitempty"` Current int32 `protobuf:"varint,4,opt,name=current" json:"current,omitempty"` }
func (*Pager) Descriptor ¶
func (*Pager) GetCurrent ¶
func (*Pager) GetCurrentPage ¶
func (*Pager) GetTotalPage ¶
func (*Pager) ProtoMessage ¶
func (*Pager) ProtoMessage()
type Post ¶
type Post struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` Body string `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"` Categories []string `protobuf:"bytes,4,rep,name=categories" json:"categories,omitempty"` Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` UserId string `protobuf:"bytes,6,opt,name=user_id,json=userId" json:"user_id,omitempty"` CreatedAt string `protobuf:"bytes,7,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"` Status string `protobuf:"bytes,9,opt,name=status" json:"status,omitempty"` Views int64 `protobuf:"varint,10,opt,name=views" json:"views,omitempty"` Favourites int64 `protobuf:"varint,11,opt,name=favourites" json:"favourites,omitempty"` }
func (*Post) Descriptor ¶
func (*Post) GetCategories ¶
func (*Post) GetCreatedAt ¶
func (*Post) GetFavourites ¶
func (*Post) GetUpdatedAt ¶
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
type Query ¶
type Query struct { Field string `protobuf:"bytes,1,opt,name=field" json:"field,omitempty"` Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
func (*Query) Descriptor ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
type RapunzelBlogServiceClient ¶
type RapunzelBlogServiceClient interface { Register(ctx context.Context, in *ReqRegistration, opts ...grpc.CallOption) (*ResRegistration, error) Login(ctx context.Context, in *ReqLogin, opts ...grpc.CallOption) (*ResLogin, error) Profile(ctx context.Context, in *ReqProfile, opts ...grpc.CallOption) (*ResProfile, error) Update(ctx context.Context, in *ReqUpdateUser, opts ...grpc.CallOption) (*ResUpdateUser, error) ChangePassword(ctx context.Context, in *ReqChangePassword, opts ...grpc.CallOption) (*ResChangePassword, error) ChangeStatus(ctx context.Context, in *ReqChangeUserStatus, opts ...grpc.CallOption) (*ResChangeUserStatus, error) ChangeType(ctx context.Context, in *ReqChangeUserType, opts ...grpc.CallOption) (*ResChangeUserType, error) Logout(ctx context.Context, in *ReqUserLogout, opts ...grpc.CallOption) (*ResUserLogout, error) ResetPasswordRequest(ctx context.Context, in *ReqResetPasswordRequest, opts ...grpc.CallOption) (*ResResetPasswordRequest, error) ResetPassword(ctx context.Context, in *ReqResetPassword, opts ...grpc.CallOption) (*ResResetPassword, error) CreatePost(ctx context.Context, in *ReqPostCreate, opts ...grpc.CallOption) (*ResPost, error) UpdatePost(ctx context.Context, in *ReqPostUpdate, opts ...grpc.CallOption) (*ResPost, error) DeletePost(ctx context.Context, in *GetByID, opts ...grpc.CallOption) (*ResPostSuccess, error) ChangePostStatus(ctx context.Context, in *ReqPostChangeStatus, opts ...grpc.CallOption) (*ResPost, error) GetPost(ctx context.Context, in *GetByID, opts ...grpc.CallOption) (*ResPost, error) FavouritePost(ctx context.Context, in *GetByID, opts ...grpc.CallOption) (*ResPost, error) GetPosts(ctx context.Context, in *GetByQuery, opts ...grpc.CallOption) (*ResPostList, error) CreateComment(ctx context.Context, in *ReqCommentCreate, opts ...grpc.CallOption) (*ResComment, error) UpdateComment(ctx context.Context, in *ReqCommentUpdate, opts ...grpc.CallOption) (*ResComment, error) DeleteComment(ctx context.Context, in *GetByID, opts ...grpc.CallOption) (*ResCommentSuccess, error) GetComment(ctx context.Context, in *GetByID, opts ...grpc.CallOption) (*ResComment, error) GetComments(ctx context.Context, in *GetByQuery, opts ...grpc.CallOption) (*ResCommentList, error) }
func NewRapunzelBlogServiceClient ¶
func NewRapunzelBlogServiceClient(cc *grpc.ClientConn) RapunzelBlogServiceClient
type RapunzelBlogServiceServer ¶
type RapunzelBlogServiceServer interface { Register(context.Context, *ReqRegistration) (*ResRegistration, error) Login(context.Context, *ReqLogin) (*ResLogin, error) Profile(context.Context, *ReqProfile) (*ResProfile, error) Update(context.Context, *ReqUpdateUser) (*ResUpdateUser, error) ChangePassword(context.Context, *ReqChangePassword) (*ResChangePassword, error) ChangeStatus(context.Context, *ReqChangeUserStatus) (*ResChangeUserStatus, error) ChangeType(context.Context, *ReqChangeUserType) (*ResChangeUserType, error) Logout(context.Context, *ReqUserLogout) (*ResUserLogout, error) ResetPasswordRequest(context.Context, *ReqResetPasswordRequest) (*ResResetPasswordRequest, error) ResetPassword(context.Context, *ReqResetPassword) (*ResResetPassword, error) CreatePost(context.Context, *ReqPostCreate) (*ResPost, error) UpdatePost(context.Context, *ReqPostUpdate) (*ResPost, error) DeletePost(context.Context, *GetByID) (*ResPostSuccess, error) ChangePostStatus(context.Context, *ReqPostChangeStatus) (*ResPost, error) GetPost(context.Context, *GetByID) (*ResPost, error) FavouritePost(context.Context, *GetByID) (*ResPost, error) GetPosts(context.Context, *GetByQuery) (*ResPostList, error) CreateComment(context.Context, *ReqCommentCreate) (*ResComment, error) UpdateComment(context.Context, *ReqCommentUpdate) (*ResComment, error) DeleteComment(context.Context, *GetByID) (*ResCommentSuccess, error) GetComment(context.Context, *GetByID) (*ResComment, error) GetComments(context.Context, *GetByQuery) (*ResCommentList, error) }
type ReqChangePassword ¶
type ReqChangePassword struct { OldPassword string `protobuf:"bytes,1,opt,name=OldPassword" json:"OldPassword,omitempty"` NewPassword string `protobuf:"bytes,2,opt,name=NewPassword" json:"NewPassword,omitempty"` }
func (*ReqChangePassword) Descriptor ¶
func (*ReqChangePassword) Descriptor() ([]byte, []int)
func (*ReqChangePassword) GetNewPassword ¶
func (m *ReqChangePassword) GetNewPassword() string
func (*ReqChangePassword) GetOldPassword ¶
func (m *ReqChangePassword) GetOldPassword() string
func (*ReqChangePassword) ProtoMessage ¶
func (*ReqChangePassword) ProtoMessage()
func (*ReqChangePassword) Reset ¶
func (m *ReqChangePassword) Reset()
func (*ReqChangePassword) String ¶
func (m *ReqChangePassword) String() string
type ReqChangeUserStatus ¶
type ReqChangeUserStatus struct { UserID string `protobuf:"bytes,1,opt,name=UserID" json:"UserID,omitempty"` NewStatus string `protobuf:"bytes,2,opt,name=NewStatus" json:"NewStatus,omitempty"` }
func (*ReqChangeUserStatus) Descriptor ¶
func (*ReqChangeUserStatus) Descriptor() ([]byte, []int)
func (*ReqChangeUserStatus) GetNewStatus ¶
func (m *ReqChangeUserStatus) GetNewStatus() string
func (*ReqChangeUserStatus) GetUserID ¶
func (m *ReqChangeUserStatus) GetUserID() string
func (*ReqChangeUserStatus) ProtoMessage ¶
func (*ReqChangeUserStatus) ProtoMessage()
func (*ReqChangeUserStatus) Reset ¶
func (m *ReqChangeUserStatus) Reset()
func (*ReqChangeUserStatus) String ¶
func (m *ReqChangeUserStatus) String() string
type ReqChangeUserType ¶
type ReqChangeUserType struct { UserID string `protobuf:"bytes,1,opt,name=UserID" json:"UserID,omitempty"` NewType string `protobuf:"bytes,2,opt,name=NewType" json:"NewType,omitempty"` }
func (*ReqChangeUserType) Descriptor ¶
func (*ReqChangeUserType) Descriptor() ([]byte, []int)
func (*ReqChangeUserType) GetNewType ¶
func (m *ReqChangeUserType) GetNewType() string
func (*ReqChangeUserType) GetUserID ¶
func (m *ReqChangeUserType) GetUserID() string
func (*ReqChangeUserType) ProtoMessage ¶
func (*ReqChangeUserType) ProtoMessage()
func (*ReqChangeUserType) Reset ¶
func (m *ReqChangeUserType) Reset()
func (*ReqChangeUserType) String ¶
func (m *ReqChangeUserType) String() string
type ReqCommentCreate ¶
type ReqCommentCreate struct { Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` Body string `protobuf:"bytes,2,opt,name=body" json:"body,omitempty"` PostId string `protobuf:"bytes,3,opt,name=post_id,json=postId" json:"post_id,omitempty"` }
func (*ReqCommentCreate) Descriptor ¶
func (*ReqCommentCreate) Descriptor() ([]byte, []int)
func (*ReqCommentCreate) GetBody ¶
func (m *ReqCommentCreate) GetBody() string
func (*ReqCommentCreate) GetPostId ¶
func (m *ReqCommentCreate) GetPostId() string
func (*ReqCommentCreate) GetTitle ¶
func (m *ReqCommentCreate) GetTitle() string
func (*ReqCommentCreate) ProtoMessage ¶
func (*ReqCommentCreate) ProtoMessage()
func (*ReqCommentCreate) Reset ¶
func (m *ReqCommentCreate) Reset()
func (*ReqCommentCreate) String ¶
func (m *ReqCommentCreate) String() string
type ReqCommentUpdate ¶
type ReqCommentUpdate struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` Body string `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"` }
func (*ReqCommentUpdate) Descriptor ¶
func (*ReqCommentUpdate) Descriptor() ([]byte, []int)
func (*ReqCommentUpdate) GetBody ¶
func (m *ReqCommentUpdate) GetBody() string
func (*ReqCommentUpdate) GetId ¶
func (m *ReqCommentUpdate) GetId() string
func (*ReqCommentUpdate) GetTitle ¶
func (m *ReqCommentUpdate) GetTitle() string
func (*ReqCommentUpdate) ProtoMessage ¶
func (*ReqCommentUpdate) ProtoMessage()
func (*ReqCommentUpdate) Reset ¶
func (m *ReqCommentUpdate) Reset()
func (*ReqCommentUpdate) String ¶
func (m *ReqCommentUpdate) String() string
type ReqLogin ¶
type ReqLogin struct { Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"` Password string `protobuf:"bytes,2,opt,name=Password" json:"Password,omitempty"` }
func (*ReqLogin) Descriptor ¶
func (*ReqLogin) GetPassword ¶
func (*ReqLogin) GetUsername ¶
func (*ReqLogin) ProtoMessage ¶
func (*ReqLogin) ProtoMessage()
type ReqPostChangeStatus ¶
type ReqPostChangeStatus struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` NewStatus string `protobuf:"bytes,2,opt,name=new_status,json=newStatus" json:"new_status,omitempty"` }
func (*ReqPostChangeStatus) Descriptor ¶
func (*ReqPostChangeStatus) Descriptor() ([]byte, []int)
func (*ReqPostChangeStatus) GetId ¶
func (m *ReqPostChangeStatus) GetId() string
func (*ReqPostChangeStatus) GetNewStatus ¶
func (m *ReqPostChangeStatus) GetNewStatus() string
func (*ReqPostChangeStatus) ProtoMessage ¶
func (*ReqPostChangeStatus) ProtoMessage()
func (*ReqPostChangeStatus) Reset ¶
func (m *ReqPostChangeStatus) Reset()
func (*ReqPostChangeStatus) String ¶
func (m *ReqPostChangeStatus) String() string
type ReqPostCreate ¶
type ReqPostCreate struct { Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` Body string `protobuf:"bytes,2,opt,name=body" json:"body,omitempty"` Categories []string `protobuf:"bytes,3,rep,name=categories" json:"categories,omitempty"` Tags []string `protobuf:"bytes,4,rep,name=tags" json:"tags,omitempty"` }
func (*ReqPostCreate) Descriptor ¶
func (*ReqPostCreate) Descriptor() ([]byte, []int)
func (*ReqPostCreate) GetBody ¶
func (m *ReqPostCreate) GetBody() string
func (*ReqPostCreate) GetCategories ¶
func (m *ReqPostCreate) GetCategories() []string
func (*ReqPostCreate) GetTags ¶
func (m *ReqPostCreate) GetTags() []string
func (*ReqPostCreate) GetTitle ¶
func (m *ReqPostCreate) GetTitle() string
func (*ReqPostCreate) ProtoMessage ¶
func (*ReqPostCreate) ProtoMessage()
func (*ReqPostCreate) Reset ¶
func (m *ReqPostCreate) Reset()
func (*ReqPostCreate) String ¶
func (m *ReqPostCreate) String() string
type ReqPostUpdate ¶
type ReqPostUpdate struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` Body string `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"` Categories []string `protobuf:"bytes,4,rep,name=categories" json:"categories,omitempty"` Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` }
func (*ReqPostUpdate) Descriptor ¶
func (*ReqPostUpdate) Descriptor() ([]byte, []int)
func (*ReqPostUpdate) GetBody ¶
func (m *ReqPostUpdate) GetBody() string
func (*ReqPostUpdate) GetCategories ¶
func (m *ReqPostUpdate) GetCategories() []string
func (*ReqPostUpdate) GetId ¶
func (m *ReqPostUpdate) GetId() string
func (*ReqPostUpdate) GetTags ¶
func (m *ReqPostUpdate) GetTags() []string
func (*ReqPostUpdate) GetTitle ¶
func (m *ReqPostUpdate) GetTitle() string
func (*ReqPostUpdate) ProtoMessage ¶
func (*ReqPostUpdate) ProtoMessage()
func (*ReqPostUpdate) Reset ¶
func (m *ReqPostUpdate) Reset()
func (*ReqPostUpdate) String ¶
func (m *ReqPostUpdate) String() string
type ReqProfile ¶
type ReqProfile struct {
UserID string `protobuf:"bytes,1,opt,name=UserID" json:"UserID,omitempty"`
}
func (*ReqProfile) Descriptor ¶
func (*ReqProfile) Descriptor() ([]byte, []int)
func (*ReqProfile) GetUserID ¶
func (m *ReqProfile) GetUserID() string
func (*ReqProfile) ProtoMessage ¶
func (*ReqProfile) ProtoMessage()
func (*ReqProfile) Reset ¶
func (m *ReqProfile) Reset()
func (*ReqProfile) String ¶
func (m *ReqProfile) String() string
type ReqRegistration ¶
type ReqRegistration struct { Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` Username string `protobuf:"bytes,2,opt,name=Username" json:"Username,omitempty"` Email string `protobuf:"bytes,3,opt,name=Email" json:"Email,omitempty"` Password string `protobuf:"bytes,4,opt,name=Password" json:"Password,omitempty"` Details string `protobuf:"bytes,5,opt,name=Details" json:"Details,omitempty"` }
func (*ReqRegistration) Descriptor ¶
func (*ReqRegistration) Descriptor() ([]byte, []int)
func (*ReqRegistration) GetDetails ¶
func (m *ReqRegistration) GetDetails() string
func (*ReqRegistration) GetEmail ¶
func (m *ReqRegistration) GetEmail() string
func (*ReqRegistration) GetName ¶
func (m *ReqRegistration) GetName() string
func (*ReqRegistration) GetPassword ¶
func (m *ReqRegistration) GetPassword() string
func (*ReqRegistration) GetUsername ¶
func (m *ReqRegistration) GetUsername() string
func (*ReqRegistration) ProtoMessage ¶
func (*ReqRegistration) ProtoMessage()
func (*ReqRegistration) Reset ¶
func (m *ReqRegistration) Reset()
func (*ReqRegistration) String ¶
func (m *ReqRegistration) String() string
type ReqResetPassword ¶
type ReqResetPassword struct { PasswordResetToken string `protobuf:"bytes,1,opt,name=PasswordResetToken" json:"PasswordResetToken,omitempty"` NewPassword string `protobuf:"bytes,2,opt,name=NewPassword" json:"NewPassword,omitempty"` }
func (*ReqResetPassword) Descriptor ¶
func (*ReqResetPassword) Descriptor() ([]byte, []int)
func (*ReqResetPassword) GetNewPassword ¶
func (m *ReqResetPassword) GetNewPassword() string
func (*ReqResetPassword) GetPasswordResetToken ¶
func (m *ReqResetPassword) GetPasswordResetToken() string
func (*ReqResetPassword) ProtoMessage ¶
func (*ReqResetPassword) ProtoMessage()
func (*ReqResetPassword) Reset ¶
func (m *ReqResetPassword) Reset()
func (*ReqResetPassword) String ¶
func (m *ReqResetPassword) String() string
type ReqResetPasswordRequest ¶
type ReqResetPasswordRequest struct {
Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
}
func (*ReqResetPasswordRequest) Descriptor ¶
func (*ReqResetPasswordRequest) Descriptor() ([]byte, []int)
func (*ReqResetPasswordRequest) GetUsername ¶
func (m *ReqResetPasswordRequest) GetUsername() string
func (*ReqResetPasswordRequest) ProtoMessage ¶
func (*ReqResetPasswordRequest) ProtoMessage()
func (*ReqResetPasswordRequest) Reset ¶
func (m *ReqResetPasswordRequest) Reset()
func (*ReqResetPasswordRequest) String ¶
func (m *ReqResetPasswordRequest) String() string
type ReqUpdateUser ¶
type ReqUpdateUser struct { Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` Details string `protobuf:"bytes,2,opt,name=Details" json:"Details,omitempty"` }
func (*ReqUpdateUser) Descriptor ¶
func (*ReqUpdateUser) Descriptor() ([]byte, []int)
func (*ReqUpdateUser) GetDetails ¶
func (m *ReqUpdateUser) GetDetails() string
func (*ReqUpdateUser) GetName ¶
func (m *ReqUpdateUser) GetName() string
func (*ReqUpdateUser) ProtoMessage ¶
func (*ReqUpdateUser) ProtoMessage()
func (*ReqUpdateUser) Reset ¶
func (m *ReqUpdateUser) Reset()
func (*ReqUpdateUser) String ¶
func (m *ReqUpdateUser) String() string
type ReqUserLogout ¶
type ReqUserLogout struct {
AccessToken string `protobuf:"bytes,1,opt,name=AccessToken" json:"AccessToken,omitempty"`
}
func (*ReqUserLogout) Descriptor ¶
func (*ReqUserLogout) Descriptor() ([]byte, []int)
func (*ReqUserLogout) GetAccessToken ¶
func (m *ReqUserLogout) GetAccessToken() string
func (*ReqUserLogout) ProtoMessage ¶
func (*ReqUserLogout) ProtoMessage()
func (*ReqUserLogout) Reset ¶
func (m *ReqUserLogout) Reset()
func (*ReqUserLogout) String ¶
func (m *ReqUserLogout) String() string
type ResChangePassword ¶
type ResChangePassword struct { Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=Errors" json:"Errors,omitempty"` }
func (*ResChangePassword) Descriptor ¶
func (*ResChangePassword) Descriptor() ([]byte, []int)
func (*ResChangePassword) GetErrors ¶
func (m *ResChangePassword) GetErrors() []*Error
func (*ResChangePassword) GetSuccess ¶
func (m *ResChangePassword) GetSuccess() bool
func (*ResChangePassword) ProtoMessage ¶
func (*ResChangePassword) ProtoMessage()
func (*ResChangePassword) Reset ¶
func (m *ResChangePassword) Reset()
func (*ResChangePassword) String ¶
func (m *ResChangePassword) String() string
type ResChangeUserStatus ¶
type ResChangeUserStatus struct { Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=Errors" json:"Errors,omitempty"` }
func (*ResChangeUserStatus) Descriptor ¶
func (*ResChangeUserStatus) Descriptor() ([]byte, []int)
func (*ResChangeUserStatus) GetErrors ¶
func (m *ResChangeUserStatus) GetErrors() []*Error
func (*ResChangeUserStatus) GetSuccess ¶
func (m *ResChangeUserStatus) GetSuccess() bool
func (*ResChangeUserStatus) ProtoMessage ¶
func (*ResChangeUserStatus) ProtoMessage()
func (*ResChangeUserStatus) Reset ¶
func (m *ResChangeUserStatus) Reset()
func (*ResChangeUserStatus) String ¶
func (m *ResChangeUserStatus) String() string
type ResChangeUserType ¶
type ResChangeUserType struct { Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=Errors" json:"Errors,omitempty"` }
func (*ResChangeUserType) Descriptor ¶
func (*ResChangeUserType) Descriptor() ([]byte, []int)
func (*ResChangeUserType) GetErrors ¶
func (m *ResChangeUserType) GetErrors() []*Error
func (*ResChangeUserType) GetSuccess ¶
func (m *ResChangeUserType) GetSuccess() bool
func (*ResChangeUserType) ProtoMessage ¶
func (*ResChangeUserType) ProtoMessage()
func (*ResChangeUserType) Reset ¶
func (m *ResChangeUserType) Reset()
func (*ResChangeUserType) String ¶
func (m *ResChangeUserType) String() string
type ResComment ¶
type ResComment struct { Comment *Comment `protobuf:"bytes,1,opt,name=comment" json:"comment,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=errors" json:"errors,omitempty"` }
func (*ResComment) Descriptor ¶
func (*ResComment) Descriptor() ([]byte, []int)
func (*ResComment) GetComment ¶
func (m *ResComment) GetComment() *Comment
func (*ResComment) GetErrors ¶
func (m *ResComment) GetErrors() []*Error
func (*ResComment) ProtoMessage ¶
func (*ResComment) ProtoMessage()
func (*ResComment) Reset ¶
func (m *ResComment) Reset()
func (*ResComment) String ¶
func (m *ResComment) String() string
type ResCommentList ¶
type ResCommentList struct { Comments []*Comment `protobuf:"bytes,1,rep,name=comments" json:"comments,omitempty"` Pager *Pager `protobuf:"bytes,2,opt,name=pager" json:"pager,omitempty"` }
func (*ResCommentList) Descriptor ¶
func (*ResCommentList) Descriptor() ([]byte, []int)
func (*ResCommentList) GetComments ¶
func (m *ResCommentList) GetComments() []*Comment
func (*ResCommentList) GetPager ¶
func (m *ResCommentList) GetPager() *Pager
func (*ResCommentList) ProtoMessage ¶
func (*ResCommentList) ProtoMessage()
func (*ResCommentList) Reset ¶
func (m *ResCommentList) Reset()
func (*ResCommentList) String ¶
func (m *ResCommentList) String() string
type ResCommentSuccess ¶
type ResCommentSuccess struct { Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=errors" json:"errors,omitempty"` }
func (*ResCommentSuccess) Descriptor ¶
func (*ResCommentSuccess) Descriptor() ([]byte, []int)
func (*ResCommentSuccess) GetErrors ¶
func (m *ResCommentSuccess) GetErrors() []*Error
func (*ResCommentSuccess) GetSuccess ¶
func (m *ResCommentSuccess) GetSuccess() bool
func (*ResCommentSuccess) ProtoMessage ¶
func (*ResCommentSuccess) ProtoMessage()
func (*ResCommentSuccess) Reset ¶
func (m *ResCommentSuccess) Reset()
func (*ResCommentSuccess) String ¶
func (m *ResCommentSuccess) String() string
type ResLogin ¶
type ResLogin struct { Session *Session `protobuf:"bytes,1,opt,name=Session" json:"Session,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=Errors" json:"Errors,omitempty"` }
func (*ResLogin) Descriptor ¶
func (*ResLogin) GetSession ¶
func (*ResLogin) ProtoMessage ¶
func (*ResLogin) ProtoMessage()
type ResPost ¶
type ResPost struct { Post *Post `protobuf:"bytes,1,opt,name=post" json:"post,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=errors" json:"errors,omitempty"` }
func (*ResPost) Descriptor ¶
func (*ResPost) ProtoMessage ¶
func (*ResPost) ProtoMessage()
type ResPostList ¶
type ResPostList struct { Posts []*Post `protobuf:"bytes,1,rep,name=posts" json:"posts,omitempty"` Pager *Pager `protobuf:"bytes,2,opt,name=pager" json:"pager,omitempty"` }
func (*ResPostList) Descriptor ¶
func (*ResPostList) Descriptor() ([]byte, []int)
func (*ResPostList) GetPager ¶
func (m *ResPostList) GetPager() *Pager
func (*ResPostList) GetPosts ¶
func (m *ResPostList) GetPosts() []*Post
func (*ResPostList) ProtoMessage ¶
func (*ResPostList) ProtoMessage()
func (*ResPostList) Reset ¶
func (m *ResPostList) Reset()
func (*ResPostList) String ¶
func (m *ResPostList) String() string
type ResPostSuccess ¶
type ResPostSuccess struct { Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=errors" json:"errors,omitempty"` }
func (*ResPostSuccess) Descriptor ¶
func (*ResPostSuccess) Descriptor() ([]byte, []int)
func (*ResPostSuccess) GetErrors ¶
func (m *ResPostSuccess) GetErrors() []*Error
func (*ResPostSuccess) GetSuccess ¶
func (m *ResPostSuccess) GetSuccess() bool
func (*ResPostSuccess) ProtoMessage ¶
func (*ResPostSuccess) ProtoMessage()
func (*ResPostSuccess) Reset ¶
func (m *ResPostSuccess) Reset()
func (*ResPostSuccess) String ¶
func (m *ResPostSuccess) String() string
type ResProfile ¶
type ResProfile struct { User *User `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=Errors" json:"Errors,omitempty"` }
func (*ResProfile) Descriptor ¶
func (*ResProfile) Descriptor() ([]byte, []int)
func (*ResProfile) GetErrors ¶
func (m *ResProfile) GetErrors() []*Error
func (*ResProfile) GetUser ¶
func (m *ResProfile) GetUser() *User
func (*ResProfile) ProtoMessage ¶
func (*ResProfile) ProtoMessage()
func (*ResProfile) Reset ¶
func (m *ResProfile) Reset()
func (*ResProfile) String ¶
func (m *ResProfile) String() string
type ResRegistration ¶
type ResRegistration struct { User *User `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=Errors" json:"Errors,omitempty"` }
func (*ResRegistration) Descriptor ¶
func (*ResRegistration) Descriptor() ([]byte, []int)
func (*ResRegistration) GetErrors ¶
func (m *ResRegistration) GetErrors() []*Error
func (*ResRegistration) GetUser ¶
func (m *ResRegistration) GetUser() *User
func (*ResRegistration) ProtoMessage ¶
func (*ResRegistration) ProtoMessage()
func (*ResRegistration) Reset ¶
func (m *ResRegistration) Reset()
func (*ResRegistration) String ¶
func (m *ResRegistration) String() string
type ResResetPassword ¶
type ResResetPassword struct { Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=Errors" json:"Errors,omitempty"` }
func (*ResResetPassword) Descriptor ¶
func (*ResResetPassword) Descriptor() ([]byte, []int)
func (*ResResetPassword) GetErrors ¶
func (m *ResResetPassword) GetErrors() []*Error
func (*ResResetPassword) GetSuccess ¶
func (m *ResResetPassword) GetSuccess() bool
func (*ResResetPassword) ProtoMessage ¶
func (*ResResetPassword) ProtoMessage()
func (*ResResetPassword) Reset ¶
func (m *ResResetPassword) Reset()
func (*ResResetPassword) String ¶
func (m *ResResetPassword) String() string
type ResResetPasswordRequest ¶
type ResResetPasswordRequest struct { Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=Errors" json:"Errors,omitempty"` }
func (*ResResetPasswordRequest) Descriptor ¶
func (*ResResetPasswordRequest) Descriptor() ([]byte, []int)
func (*ResResetPasswordRequest) GetErrors ¶
func (m *ResResetPasswordRequest) GetErrors() []*Error
func (*ResResetPasswordRequest) GetSuccess ¶
func (m *ResResetPasswordRequest) GetSuccess() bool
func (*ResResetPasswordRequest) ProtoMessage ¶
func (*ResResetPasswordRequest) ProtoMessage()
func (*ResResetPasswordRequest) Reset ¶
func (m *ResResetPasswordRequest) Reset()
func (*ResResetPasswordRequest) String ¶
func (m *ResResetPasswordRequest) String() string
type ResUpdateUser ¶
type ResUpdateUser struct { User *User `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=Errors" json:"Errors,omitempty"` }
func (*ResUpdateUser) Descriptor ¶
func (*ResUpdateUser) Descriptor() ([]byte, []int)
func (*ResUpdateUser) GetErrors ¶
func (m *ResUpdateUser) GetErrors() []*Error
func (*ResUpdateUser) GetUser ¶
func (m *ResUpdateUser) GetUser() *User
func (*ResUpdateUser) ProtoMessage ¶
func (*ResUpdateUser) ProtoMessage()
func (*ResUpdateUser) Reset ¶
func (m *ResUpdateUser) Reset()
func (*ResUpdateUser) String ¶
func (m *ResUpdateUser) String() string
type ResUserLogout ¶
type ResUserLogout struct { Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=Errors" json:"Errors,omitempty"` }
func (*ResUserLogout) Descriptor ¶
func (*ResUserLogout) Descriptor() ([]byte, []int)
func (*ResUserLogout) GetErrors ¶
func (m *ResUserLogout) GetErrors() []*Error
func (*ResUserLogout) GetSuccess ¶
func (m *ResUserLogout) GetSuccess() bool
func (*ResUserLogout) ProtoMessage ¶
func (*ResUserLogout) ProtoMessage()
func (*ResUserLogout) Reset ¶
func (m *ResUserLogout) Reset()
func (*ResUserLogout) String ¶
func (m *ResUserLogout) String() string
type Session ¶
type Session struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken" json:"AccessToken,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=RefreshToken" json:"RefreshToken,omitempty"` CreatedTime string `protobuf:"bytes,3,opt,name=CreatedTime" json:"CreatedTime,omitempty"` ExpireTime string `protobuf:"bytes,4,opt,name=ExpireTime" json:"ExpireTime,omitempty"` }
func (*Session) Descriptor ¶
func (*Session) GetAccessToken ¶
func (*Session) GetCreatedTime ¶
func (*Session) GetExpireTime ¶
func (*Session) GetRefreshToken ¶
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
type User ¶
type User struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"` Username string `protobuf:"bytes,3,opt,name=Username" json:"Username,omitempty"` Email string `protobuf:"bytes,4,opt,name=Email" json:"Email,omitempty"` Details string `protobuf:"bytes,6,opt,name=Details" json:"Details,omitempty"` UserType string `protobuf:"bytes,7,opt,name=UserType" json:"UserType,omitempty"` UserStatus string `protobuf:"bytes,8,opt,name=UserStatus" json:"UserStatus,omitempty"` CreatedAt string `protobuf:"bytes,9,opt,name=CreatedAt" json:"CreatedAt,omitempty"` UpdatedAt string `protobuf:"bytes,10,opt,name=UpdatedAt" json:"UpdatedAt,omitempty"` }
func (*User) Descriptor ¶
func (*User) GetCreatedAt ¶
func (*User) GetDetails ¶
func (*User) GetUpdatedAt ¶
func (*User) GetUserStatus ¶
func (*User) GetUserType ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.