Documentation ¶
Overview ¶
Package protocols is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterManagementHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterManagementHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ManagementClient) error
- func RegisterManagementHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterManagementHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ManagementServer) error
- func RegisterManagementServer(s grpc.ServiceRegistrar, srv ManagementServer)
- func RegisterSearchHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSearchHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SearchClient) error
- func RegisterSearchHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSearchHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SearchServer) error
- func RegisterSearchServer(s grpc.ServiceRegistrar, srv SearchServer)
- func RegisterTaoBlogHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTaoBlogHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TaoBlogClient) error
- func RegisterTaoBlogHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTaoBlogHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TaoBlogServer) error
- func RegisterTaoBlogServer(s grpc.ServiceRegistrar, srv TaoBlogServer)
- type BackupFileSpec
- func (*BackupFileSpec) Descriptor() ([]byte, []int)deprecated
- func (x *BackupFileSpec) GetMode() uint32
- func (x *BackupFileSpec) GetPath() string
- func (x *BackupFileSpec) GetSize() uint32
- func (x *BackupFileSpec) GetTime() uint32
- func (*BackupFileSpec) ProtoMessage()
- func (x *BackupFileSpec) ProtoReflect() protoreflect.Message
- func (x *BackupFileSpec) Reset()
- func (x *BackupFileSpec) String() string
- type BackupFilesRequest
- func (*BackupFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (m *BackupFilesRequest) GetBackupFilesMessage() isBackupFilesRequest_BackupFilesMessage
- func (x *BackupFilesRequest) GetListFiles() *BackupFilesRequest_ListFilesRequest
- func (x *BackupFilesRequest) GetSendFile() *BackupFilesRequest_SendFileRequest
- func (*BackupFilesRequest) ProtoMessage()
- func (x *BackupFilesRequest) ProtoReflect() protoreflect.Message
- func (x *BackupFilesRequest) Reset()
- func (x *BackupFilesRequest) String() string
- type BackupFilesRequest_ListFiles
- type BackupFilesRequest_ListFilesRequest
- func (*BackupFilesRequest_ListFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (*BackupFilesRequest_ListFilesRequest) ProtoMessage()
- func (x *BackupFilesRequest_ListFilesRequest) ProtoReflect() protoreflect.Message
- func (x *BackupFilesRequest_ListFilesRequest) Reset()
- func (x *BackupFilesRequest_ListFilesRequest) String() string
- type BackupFilesRequest_SendFile
- type BackupFilesRequest_SendFileRequest
- func (*BackupFilesRequest_SendFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BackupFilesRequest_SendFileRequest) GetPath() string
- func (*BackupFilesRequest_SendFileRequest) ProtoMessage()
- func (x *BackupFilesRequest_SendFileRequest) ProtoReflect() protoreflect.Message
- func (x *BackupFilesRequest_SendFileRequest) Reset()
- func (x *BackupFilesRequest_SendFileRequest) String() string
- type BackupFilesResponse
- func (*BackupFilesResponse) Descriptor() ([]byte, []int)deprecated
- func (m *BackupFilesResponse) GetBackupFilesMessage() isBackupFilesResponse_BackupFilesMessage
- func (x *BackupFilesResponse) GetListFiles() *BackupFilesResponse_ListFilesResponse
- func (x *BackupFilesResponse) GetSendFile() *BackupFilesResponse_SendFileResponse
- func (*BackupFilesResponse) ProtoMessage()
- func (x *BackupFilesResponse) ProtoReflect() protoreflect.Message
- func (x *BackupFilesResponse) Reset()
- func (x *BackupFilesResponse) String() string
- type BackupFilesResponse_ListFiles
- type BackupFilesResponse_ListFilesResponse
- func (*BackupFilesResponse_ListFilesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BackupFilesResponse_ListFilesResponse) GetFiles() []*BackupFileSpec
- func (*BackupFilesResponse_ListFilesResponse) ProtoMessage()
- func (x *BackupFilesResponse_ListFilesResponse) ProtoReflect() protoreflect.Message
- func (x *BackupFilesResponse_ListFilesResponse) Reset()
- func (x *BackupFilesResponse_ListFilesResponse) String() string
- type BackupFilesResponse_SendFile
- type BackupFilesResponse_SendFileResponse
- func (*BackupFilesResponse_SendFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BackupFilesResponse_SendFileResponse) GetData() []byte
- func (*BackupFilesResponse_SendFileResponse) ProtoMessage()
- func (x *BackupFilesResponse_SendFileResponse) ProtoReflect() protoreflect.Message
- func (x *BackupFilesResponse_SendFileResponse) Reset()
- func (x *BackupFilesResponse_SendFileResponse) String() string
- type BackupRequest
- type BackupResponse
- func (*BackupResponse) Descriptor() ([]byte, []int)deprecated
- func (m *BackupResponse) GetBackupResponseMessage() isBackupResponse_BackupResponseMessage
- func (x *BackupResponse) GetPreparing() *BackupResponse_Preparing
- func (x *BackupResponse) GetTransfering() *BackupResponse_Transfering
- func (*BackupResponse) ProtoMessage()
- func (x *BackupResponse) ProtoReflect() protoreflect.Message
- func (x *BackupResponse) Reset()
- func (x *BackupResponse) String() string
- type BackupResponse_Preparing
- func (*BackupResponse_Preparing) Descriptor() ([]byte, []int)deprecated
- func (x *BackupResponse_Preparing) GetProgress() float32
- func (*BackupResponse_Preparing) ProtoMessage()
- func (x *BackupResponse_Preparing) ProtoReflect() protoreflect.Message
- func (x *BackupResponse_Preparing) Reset()
- func (x *BackupResponse_Preparing) String() string
- type BackupResponse_Preparing_
- type BackupResponse_Transfering
- func (*BackupResponse_Transfering) Descriptor() ([]byte, []int)deprecated
- func (x *BackupResponse_Transfering) GetData() []byte
- func (x *BackupResponse_Transfering) GetProgress() float32
- func (*BackupResponse_Transfering) ProtoMessage()
- func (x *BackupResponse_Transfering) ProtoReflect() protoreflect.Message
- func (x *BackupResponse_Transfering) Reset()
- func (x *BackupResponse_Transfering) String() string
- type BackupResponse_Transfering_
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetAuthor() string
- func (x *Comment) GetAvatar() int32
- func (x *Comment) GetCanEdit() bool
- func (x *Comment) GetContent() string
- func (x *Comment) GetDate() int32
- func (x *Comment) GetDateFuzzy() string
- func (x *Comment) GetEmail() string
- func (x *Comment) GetGeoLocation() string
- func (x *Comment) GetId() int64
- func (x *Comment) GetIp() string
- func (x *Comment) GetIsAdmin() bool
- func (x *Comment) GetModified() int32
- func (x *Comment) GetParent() int64
- func (x *Comment) GetPostId() int64
- func (x *Comment) GetRoot() int64
- func (x *Comment) GetSource() string
- func (x *Comment) GetSourceType() string
- func (x *Comment) GetUrl() string
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type DeleteCommentRequest
- func (*DeleteCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCommentRequest) GetId() int32
- func (*DeleteCommentRequest) ProtoMessage()
- func (x *DeleteCommentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCommentRequest) Reset()
- func (x *DeleteCommentRequest) String() string
- type DeleteCommentResponse
- type DeletePostRequest
- type FileSpec
- func (*FileSpec) Descriptor() ([]byte, []int)deprecated
- func (x *FileSpec) GetMode() uint32
- func (x *FileSpec) GetPath() string
- func (x *FileSpec) GetSize() uint32
- func (x *FileSpec) GetTime() uint32
- func (*FileSpec) ProtoMessage()
- func (x *FileSpec) ProtoReflect() protoreflect.Message
- func (x *FileSpec) Reset()
- func (x *FileSpec) String() string
- type FileSystemRequest
- func (*FileSystemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FileSystemRequest) GetDeleteFile() *FileSystemRequest_DeleteFileRequest
- func (x *FileSystemRequest) GetInit() *FileSystemRequest_InitRequest
- func (x *FileSystemRequest) GetListFiles() *FileSystemRequest_ListFilesRequest
- func (m *FileSystemRequest) GetRequest() isFileSystemRequest_Request
- func (x *FileSystemRequest) GetWriteFile() *FileSystemRequest_WriteFileRequest
- func (*FileSystemRequest) ProtoMessage()
- func (x *FileSystemRequest) ProtoReflect() protoreflect.Message
- func (x *FileSystemRequest) Reset()
- func (x *FileSystemRequest) String() string
- type FileSystemRequest_DeleteFile
- type FileSystemRequest_DeleteFileRequest
- func (*FileSystemRequest_DeleteFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FileSystemRequest_DeleteFileRequest) GetPath() string
- func (*FileSystemRequest_DeleteFileRequest) ProtoMessage()
- func (x *FileSystemRequest_DeleteFileRequest) ProtoReflect() protoreflect.Message
- func (x *FileSystemRequest_DeleteFileRequest) Reset()
- func (x *FileSystemRequest_DeleteFileRequest) String() string
- type FileSystemRequest_InitRequest
- func (*FileSystemRequest_InitRequest) Descriptor() ([]byte, []int)deprecated
- func (m *FileSystemRequest_InitRequest) GetFor() isFileSystemRequest_InitRequest_For
- func (x *FileSystemRequest_InitRequest) GetPost() *FileSystemRequest_InitRequest_Post
- func (*FileSystemRequest_InitRequest) ProtoMessage()
- func (x *FileSystemRequest_InitRequest) ProtoReflect() protoreflect.Message
- func (x *FileSystemRequest_InitRequest) Reset()
- func (x *FileSystemRequest_InitRequest) String() string
- type FileSystemRequest_InitRequest_Post
- func (*FileSystemRequest_InitRequest_Post) Descriptor() ([]byte, []int)deprecated
- func (x *FileSystemRequest_InitRequest_Post) GetId() int64
- func (*FileSystemRequest_InitRequest_Post) ProtoMessage()
- func (x *FileSystemRequest_InitRequest_Post) ProtoReflect() protoreflect.Message
- func (x *FileSystemRequest_InitRequest_Post) Reset()
- func (x *FileSystemRequest_InitRequest_Post) String() string
- type FileSystemRequest_InitRequest_Post_
- type FileSystemRequest_ListFiles
- type FileSystemRequest_ListFilesRequest
- func (*FileSystemRequest_ListFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (*FileSystemRequest_ListFilesRequest) ProtoMessage()
- func (x *FileSystemRequest_ListFilesRequest) ProtoReflect() protoreflect.Message
- func (x *FileSystemRequest_ListFilesRequest) Reset()
- func (x *FileSystemRequest_ListFilesRequest) String() string
- type FileSystemRequest_WriteFile
- type FileSystemRequest_WriteFileRequest
- func (*FileSystemRequest_WriteFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FileSystemRequest_WriteFileRequest) GetData() []byte
- func (x *FileSystemRequest_WriteFileRequest) GetSpec() *FileSpec
- func (*FileSystemRequest_WriteFileRequest) ProtoMessage()
- func (x *FileSystemRequest_WriteFileRequest) ProtoReflect() protoreflect.Message
- func (x *FileSystemRequest_WriteFileRequest) Reset()
- func (x *FileSystemRequest_WriteFileRequest) String() string
- type FileSystemResponse
- func (*FileSystemResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FileSystemResponse) GetDeleteFile() *FileSystemResponse_DeleteFileResponse
- func (x *FileSystemResponse) GetInit() *FileSystemResponse_InitResponse
- func (x *FileSystemResponse) GetListFiles() *FileSystemResponse_ListFilesResponse
- func (m *FileSystemResponse) GetResponse() isFileSystemResponse_Response
- func (x *FileSystemResponse) GetWriteFile() *FileSystemResponse_WriteFileResponse
- func (*FileSystemResponse) ProtoMessage()
- func (x *FileSystemResponse) ProtoReflect() protoreflect.Message
- func (x *FileSystemResponse) Reset()
- func (x *FileSystemResponse) String() string
- type FileSystemResponse_DeleteFile
- type FileSystemResponse_DeleteFileResponse
- func (*FileSystemResponse_DeleteFileResponse) Descriptor() ([]byte, []int)deprecated
- func (*FileSystemResponse_DeleteFileResponse) ProtoMessage()
- func (x *FileSystemResponse_DeleteFileResponse) ProtoReflect() protoreflect.Message
- func (x *FileSystemResponse_DeleteFileResponse) Reset()
- func (x *FileSystemResponse_DeleteFileResponse) String() string
- type FileSystemResponse_InitResponse
- func (*FileSystemResponse_InitResponse) Descriptor() ([]byte, []int)deprecated
- func (*FileSystemResponse_InitResponse) ProtoMessage()
- func (x *FileSystemResponse_InitResponse) ProtoReflect() protoreflect.Message
- func (x *FileSystemResponse_InitResponse) Reset()
- func (x *FileSystemResponse_InitResponse) String() string
- type FileSystemResponse_ListFiles
- type FileSystemResponse_ListFilesResponse
- func (*FileSystemResponse_ListFilesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FileSystemResponse_ListFilesResponse) GetFiles() []*FileSpec
- func (*FileSystemResponse_ListFilesResponse) ProtoMessage()
- func (x *FileSystemResponse_ListFilesResponse) ProtoReflect() protoreflect.Message
- func (x *FileSystemResponse_ListFilesResponse) Reset()
- func (x *FileSystemResponse_ListFilesResponse) String() string
- type FileSystemResponse_WriteFile
- type FileSystemResponse_WriteFileResponse
- func (*FileSystemResponse_WriteFileResponse) Descriptor() ([]byte, []int)deprecated
- func (*FileSystemResponse_WriteFileResponse) ProtoMessage()
- func (x *FileSystemResponse_WriteFileResponse) ProtoReflect() protoreflect.Message
- func (x *FileSystemResponse_WriteFileResponse) Reset()
- func (x *FileSystemResponse_WriteFileResponse) String() string
- type GetAvatarRequest
- type GetCommentRequest
- type GetConfigRequest
- type GetConfigResponse
- type GetPostCommentsCountRequest
- func (*GetPostCommentsCountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPostCommentsCountRequest) GetPostId() int64
- func (*GetPostCommentsCountRequest) ProtoMessage()
- func (x *GetPostCommentsCountRequest) ProtoReflect() protoreflect.Message
- func (x *GetPostCommentsCountRequest) Reset()
- func (x *GetPostCommentsCountRequest) String() string
- type GetPostCommentsCountResponse
- func (*GetPostCommentsCountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPostCommentsCountResponse) GetCount() int64
- func (*GetPostCommentsCountResponse) ProtoMessage()
- func (x *GetPostCommentsCountResponse) ProtoReflect() protoreflect.Message
- func (x *GetPostCommentsCountResponse) Reset()
- func (x *GetPostCommentsCountResponse) String() string
- type GetPostCommentsRequest
- func (*GetPostCommentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPostCommentsRequest) GetId() int64
- func (*GetPostCommentsRequest) ProtoMessage()
- func (x *GetPostCommentsRequest) ProtoReflect() protoreflect.Message
- func (x *GetPostCommentsRequest) Reset()
- func (x *GetPostCommentsRequest) String() string
- type GetPostCommentsResponse
- func (*GetPostCommentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPostCommentsResponse) GetComments() []*Comment
- func (*GetPostCommentsResponse) ProtoMessage()
- func (x *GetPostCommentsResponse) ProtoReflect() protoreflect.Message
- func (x *GetPostCommentsResponse) Reset()
- func (x *GetPostCommentsResponse) String() string
- type GetPostRequest
- func (*GetPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPostRequest) GetId() int32
- func (x *GetPostRequest) GetWithContent() bool
- func (x *GetPostRequest) GetWithMetas() bool
- func (x *GetPostRequest) GetWithSource() bool
- func (x *GetPostRequest) GetWithTags() bool
- func (*GetPostRequest) ProtoMessage()
- func (x *GetPostRequest) ProtoReflect() protoreflect.Message
- func (x *GetPostRequest) Reset()
- func (x *GetPostRequest) String() string
- type GetPostsByTagsRequest
- func (*GetPostsByTagsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPostsByTagsRequest) GetContentOptions() *PostContentOptions
- func (x *GetPostsByTagsRequest) GetTags() []string
- func (*GetPostsByTagsRequest) ProtoMessage()
- func (x *GetPostsByTagsRequest) ProtoReflect() protoreflect.Message
- func (x *GetPostsByTagsRequest) Reset()
- func (x *GetPostsByTagsRequest) String() string
- type GetPostsByTagsResponse
- func (*GetPostsByTagsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPostsByTagsResponse) GetPosts() []*Post
- func (*GetPostsByTagsResponse) ProtoMessage()
- func (x *GetPostsByTagsResponse) ProtoReflect() protoreflect.Message
- func (x *GetPostsByTagsResponse) Reset()
- func (x *GetPostsByTagsResponse) String() string
- type ListCommentsRequest
- func (*ListCommentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentsRequest) GetContentOptions() *PostContentOptions
- func (x *ListCommentsRequest) GetFields() []string
- func (x *ListCommentsRequest) GetLimit() int64
- func (x *ListCommentsRequest) GetMode() ListCommentsRequest_Mode
- func (x *ListCommentsRequest) GetOffset() int64
- func (x *ListCommentsRequest) GetOrderBy() string
- func (x *ListCommentsRequest) GetPostId() int64
- func (x *ListCommentsRequest) GetTypes() []string
- func (*ListCommentsRequest) ProtoMessage()
- func (x *ListCommentsRequest) ProtoReflect() protoreflect.Message
- func (x *ListCommentsRequest) Reset()
- func (x *ListCommentsRequest) String() string
- type ListCommentsRequest_Mode
- func (ListCommentsRequest_Mode) Descriptor() protoreflect.EnumDescriptor
- func (x ListCommentsRequest_Mode) Enum() *ListCommentsRequest_Mode
- func (ListCommentsRequest_Mode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListCommentsRequest_Mode) Number() protoreflect.EnumNumber
- func (x ListCommentsRequest_Mode) String() string
- func (ListCommentsRequest_Mode) Type() protoreflect.EnumType
- type ListCommentsResponse
- func (*ListCommentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentsResponse) GetComments() []*Comment
- func (*ListCommentsResponse) ProtoMessage()
- func (x *ListCommentsResponse) ProtoReflect() protoreflect.Message
- func (x *ListCommentsResponse) Reset()
- func (x *ListCommentsResponse) String() string
- type ListLatestPostsRequest
- type ListPostsRequest
- type ListTagsWithCountRequest
- type ManagementClient
- type ManagementServer
- type Management_BackupClient
- type Management_BackupFilesClient
- type Management_BackupFilesServer
- type Management_BackupServer
- type Management_FileSystemClient
- type Management_FileSystemServer
- type Metas
- func (*Metas) Descriptor() ([]byte, []int)deprecated
- func (x *Metas) GetFooter() string
- func (x *Metas) GetGeo() *Metas_Geo
- func (x *Metas) GetHeader() string
- func (x *Metas) GetOutdated() bool
- func (x *Metas) GetSources() map[string]*Metas_Source
- func (x *Metas) GetWeixin() string
- func (x *Metas) GetWide() bool
- func (*Metas) ProtoMessage()
- func (x *Metas) ProtoReflect() protoreflect.Message
- func (x *Metas) Reset()
- func (x *Metas) String() string
- type Metas_Geo
- func (*Metas_Geo) Descriptor() ([]byte, []int)deprecated
- func (x *Metas_Geo) GetLatitude() float32
- func (x *Metas_Geo) GetLongitude() float32
- func (x *Metas_Geo) GetName() string
- func (*Metas_Geo) ProtoMessage()
- func (x *Metas_Geo) ProtoReflect() protoreflect.Message
- func (x *Metas_Geo) Reset()
- func (x *Metas_Geo) String() string
- type Metas_Source
- func (*Metas_Source) Descriptor() ([]byte, []int)deprecated
- func (x *Metas_Source) GetDescription() string
- func (x *Metas_Source) GetName() string
- func (x *Metas_Source) GetTime() int32
- func (x *Metas_Source) GetUrl() string
- func (*Metas_Source) ProtoMessage()
- func (x *Metas_Source) ProtoReflect() protoreflect.Message
- func (x *Metas_Source) Reset()
- func (x *Metas_Source) String() string
- type Option
- type PingRequest
- type PingResponse
- type Post
- func (*Post) Descriptor() ([]byte, []int)deprecated
- func (x *Post) GetCategory() int64
- func (x *Post) GetCommentStatus() bool
- func (x *Post) GetComments() int64
- func (x *Post) GetContent() string
- func (x *Post) GetDate() int32
- func (x *Post) GetId() int64
- func (x *Post) GetLastCommentedAt() int32
- func (x *Post) GetMetas() *Metas
- func (x *Post) GetModified() int32
- func (x *Post) GetPageView() int64
- func (x *Post) GetSlug() string
- func (x *Post) GetSource() string
- func (x *Post) GetSourceType() string
- func (x *Post) GetStatus() string
- func (x *Post) GetTags() []string
- func (x *Post) GetTitle() string
- func (x *Post) GetType() string
- func (*Post) ProtoMessage()
- func (x *Post) ProtoReflect() protoreflect.Message
- func (x *Post) Reset()
- func (x *Post) String() string
- type PostContentOptions
- func (*PostContentOptions) Descriptor() ([]byte, []int)deprecated
- func (x *PostContentOptions) GetOpenLinksInNewTab() PostContentOptions_OpenLinkInNewTabKind
- func (x *PostContentOptions) GetPrettifyHtml() bool
- func (x *PostContentOptions) GetRenderCodeBlocks() bool
- func (x *PostContentOptions) GetUseAbsolutePaths() bool
- func (x *PostContentOptions) GetWithContent() bool
- func (*PostContentOptions) ProtoMessage()
- func (x *PostContentOptions) ProtoReflect() protoreflect.Message
- func (x *PostContentOptions) Reset()
- func (x *PostContentOptions) String() string
- type PostContentOptions_OpenLinkInNewTabKind
- func (PostContentOptions_OpenLinkInNewTabKind) Descriptor() protoreflect.EnumDescriptor
- func (x PostContentOptions_OpenLinkInNewTabKind) Enum() *PostContentOptions_OpenLinkInNewTabKind
- func (PostContentOptions_OpenLinkInNewTabKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x PostContentOptions_OpenLinkInNewTabKind) Number() protoreflect.EnumNumber
- func (x PostContentOptions_OpenLinkInNewTabKind) String() string
- func (PostContentOptions_OpenLinkInNewTabKind) Type() protoreflect.EnumType
- type PreviewCommentRequest
- func (*PreviewCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewCommentRequest) GetMarkdown() string
- func (x *PreviewCommentRequest) GetPostId() int32
- func (*PreviewCommentRequest) ProtoMessage()
- func (x *PreviewCommentRequest) ProtoReflect() protoreflect.Message
- func (x *PreviewCommentRequest) Reset()
- func (x *PreviewCommentRequest) String() string
- type PreviewCommentResponse
- func (*PreviewCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewCommentResponse) GetHtml() string
- func (*PreviewCommentResponse) ProtoMessage()
- func (x *PreviewCommentResponse) ProtoReflect() protoreflect.Message
- func (x *PreviewCommentResponse) Reset()
- func (x *PreviewCommentResponse) String() string
- type PreviewPostRequest
- func (*PreviewPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewPostRequest) GetId() int32
- func (x *PreviewPostRequest) GetMarkdown() string
- func (*PreviewPostRequest) ProtoMessage()
- func (x *PreviewPostRequest) ProtoReflect() protoreflect.Message
- func (x *PreviewPostRequest) Reset()
- func (x *PreviewPostRequest) String() string
- type PreviewPostResponse
- func (*PreviewPostResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewPostResponse) GetHtml() string
- func (*PreviewPostResponse) ProtoMessage()
- func (x *PreviewPostResponse) ProtoReflect() protoreflect.Message
- func (x *PreviewPostResponse) Reset()
- func (x *PreviewPostResponse) String() string
- type SaveConfigRequest
- type SaveConfigResponse
- type SearchClient
- type SearchPostsRequest
- func (*SearchPostsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchPostsRequest) GetSearch() string
- func (*SearchPostsRequest) ProtoMessage()
- func (x *SearchPostsRequest) ProtoReflect() protoreflect.Message
- func (x *SearchPostsRequest) Reset()
- func (x *SearchPostsRequest) String() string
- type SearchPostsResponse
- func (*SearchPostsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchPostsResponse) GetInitialized() bool
- func (x *SearchPostsResponse) GetPosts() []*SearchPostsResponse_Post
- func (*SearchPostsResponse) ProtoMessage()
- func (x *SearchPostsResponse) ProtoReflect() protoreflect.Message
- func (x *SearchPostsResponse) Reset()
- func (x *SearchPostsResponse) String() string
- type SearchPostsResponse_Post
- func (*SearchPostsResponse_Post) Descriptor() ([]byte, []int)deprecated
- func (x *SearchPostsResponse_Post) GetContent() string
- func (x *SearchPostsResponse_Post) GetId() int32
- func (x *SearchPostsResponse_Post) GetTitle() string
- func (*SearchPostsResponse_Post) ProtoMessage()
- func (x *SearchPostsResponse_Post) ProtoReflect() protoreflect.Message
- func (x *SearchPostsResponse_Post) Reset()
- func (x *SearchPostsResponse_Post) String() string
- type SearchServer
- type SetCommentPostIDRequest
- func (*SetCommentPostIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetCommentPostIDRequest) GetId() int64
- func (x *SetCommentPostIDRequest) GetPostId() int64
- func (*SetCommentPostIDRequest) ProtoMessage()
- func (x *SetCommentPostIDRequest) ProtoReflect() protoreflect.Message
- func (x *SetCommentPostIDRequest) Reset()
- func (x *SetCommentPostIDRequest) String() string
- type SetCommentPostIDResponse
- type SetConfigRequest
- func (*SetConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetConfigRequest) GetPath() string
- func (x *SetConfigRequest) GetYaml() string
- func (*SetConfigRequest) ProtoMessage()
- func (x *SetConfigRequest) ProtoReflect() protoreflect.Message
- func (x *SetConfigRequest) Reset()
- func (x *SetConfigRequest) String() string
- type SetConfigResponse
- type SetPostStatusRequest
- func (*SetPostStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetPostStatusRequest) GetId() int64
- func (x *SetPostStatusRequest) GetPublic() bool
- func (x *SetPostStatusRequest) GetTouch() bool
- func (*SetPostStatusRequest) ProtoMessage()
- func (x *SetPostStatusRequest) ProtoReflect() protoreflect.Message
- func (x *SetPostStatusRequest) Reset()
- func (x *SetPostStatusRequest) String() string
- type SetPostStatusResponse
- type SetRedirectRequest
- func (*SetRedirectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetRedirectRequest) GetSourcePath() string
- func (x *SetRedirectRequest) GetStatusCode() int32
- func (x *SetRedirectRequest) GetTargetPath() string
- func (*SetRedirectRequest) ProtoMessage()
- func (x *SetRedirectRequest) ProtoReflect() protoreflect.Message
- func (x *SetRedirectRequest) Reset()
- func (x *SetRedirectRequest) String() string
- type TaoBlogClient
- type TaoBlogServer
- type UnimplementedManagementServer
- func (UnimplementedManagementServer) Backup(*BackupRequest, Management_BackupServer) error
- func (UnimplementedManagementServer) BackupFiles(Management_BackupFilesServer) error
- func (UnimplementedManagementServer) FileSystem(Management_FileSystemServer) error
- func (UnimplementedManagementServer) GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
- func (UnimplementedManagementServer) SaveConfig(context.Context, *SaveConfigRequest) (*SaveConfigResponse, error)
- func (UnimplementedManagementServer) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error)
- func (UnimplementedManagementServer) SetRedirect(context.Context, *SetRedirectRequest) (*emptypb.Empty, error)
- type UnimplementedSearchServer
- type UnimplementedTaoBlogServer
- func (UnimplementedTaoBlogServer) CreateComment(context.Context, *Comment) (*Comment, error)
- func (UnimplementedTaoBlogServer) CreatePost(context.Context, *Post) (*Post, error)
- func (UnimplementedTaoBlogServer) DeleteComment(context.Context, *DeleteCommentRequest) (*DeleteCommentResponse, error)
- func (UnimplementedTaoBlogServer) DeletePost(context.Context, *DeletePostRequest) (*emptypb.Empty, error)
- func (UnimplementedTaoBlogServer) GetComment(context.Context, *GetCommentRequest) (*Comment, error)
- func (UnimplementedTaoBlogServer) GetPost(context.Context, *GetPostRequest) (*Post, error)
- func (UnimplementedTaoBlogServer) GetPostComments(context.Context, *GetPostCommentsRequest) (*GetPostCommentsResponse, error)
- func (UnimplementedTaoBlogServer) GetPostCommentsCount(context.Context, *GetPostCommentsCountRequest) (*GetPostCommentsCountResponse, error)
- func (UnimplementedTaoBlogServer) GetPostsByTags(context.Context, *GetPostsByTagsRequest) (*GetPostsByTagsResponse, error)
- func (UnimplementedTaoBlogServer) ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error)
- func (UnimplementedTaoBlogServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
- func (UnimplementedTaoBlogServer) PreviewComment(context.Context, *PreviewCommentRequest) (*PreviewCommentResponse, error)
- func (UnimplementedTaoBlogServer) PreviewPost(context.Context, *PreviewPostRequest) (*PreviewPostResponse, error)
- func (UnimplementedTaoBlogServer) SetCommentPostID(context.Context, *SetCommentPostIDRequest) (*SetCommentPostIDResponse, error)
- func (UnimplementedTaoBlogServer) SetPostStatus(context.Context, *SetPostStatusRequest) (*SetPostStatusResponse, error)
- func (UnimplementedTaoBlogServer) UpdateComment(context.Context, *UpdateCommentRequest) (*Comment, error)
- func (UnimplementedTaoBlogServer) UpdatePost(context.Context, *UpdatePostRequest) (*Post, error)
- type UnsafeManagementServer
- type UnsafeSearchServer
- type UnsafeTaoBlogServer
- type UpdateCommentRequest
- func (*UpdateCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCommentRequest) GetComment() *Comment
- func (x *UpdateCommentRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateCommentRequest) ProtoMessage()
- func (x *UpdateCommentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCommentRequest) Reset()
- func (x *UpdateCommentRequest) String() string
- type UpdatePostRequest
- func (*UpdatePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePostRequest) GetPost() *Post
- func (x *UpdatePostRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdatePostRequest) ProtoMessage()
- func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePostRequest) Reset()
- func (x *UpdatePostRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( PostContentOptions_OpenLinkInNewTabKind_name = map[int32]string{ 0: "OpenLinkInNewTabKindKeep", 1: "OpenLinkInNewTabKindNever", 2: "OpenLinkInNewTabKindAll", 3: "OpenLinkInNewTabKindExternal", } PostContentOptions_OpenLinkInNewTabKind_value = map[string]int32{ "OpenLinkInNewTabKindKeep": 0, "OpenLinkInNewTabKindNever": 1, "OpenLinkInNewTabKindAll": 2, "OpenLinkInNewTabKindExternal": 3, } )
Enum value maps for PostContentOptions_OpenLinkInNewTabKind.
var ( ListCommentsRequest_Mode_name = map[int32]string{ 0: "Unspecified", 1: "Tree", 2: "Flat", } ListCommentsRequest_Mode_value = map[string]int32{ "Unspecified": 0, "Tree": 1, "Flat": 2, } )
Enum value maps for ListCommentsRequest_Mode.
var File_protocols_backup_proto protoreflect.FileDescriptor
var File_protocols_comment_proto protoreflect.FileDescriptor
var File_protocols_config_proto protoreflect.FileDescriptor
var File_protocols_post_proto protoreflect.FileDescriptor
var File_protocols_search_proto protoreflect.FileDescriptor
var File_protocols_service_proto protoreflect.FileDescriptor
var Management_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protocols.Management", HandlerType: (*ManagementServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetConfig", Handler: _Management_GetConfig_Handler, }, { MethodName: "SetConfig", Handler: _Management_SetConfig_Handler, }, { MethodName: "SaveConfig", Handler: _Management_SaveConfig_Handler, }, { MethodName: "SetRedirect", Handler: _Management_SetRedirect_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Backup", Handler: _Management_Backup_Handler, ServerStreams: true, }, { StreamName: "BackupFiles", Handler: _Management_BackupFiles_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "FileSystem", Handler: _Management_FileSystem_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "protocols/service.proto", }
Management_ServiceDesc is the grpc.ServiceDesc for Management service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Search_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protocols.Search", HandlerType: (*SearchServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SearchPosts", Handler: _Search_SearchPosts_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protocols/service.proto", }
Search_ServiceDesc is the grpc.ServiceDesc for Search service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TaoBlog_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protocols.TaoBlog", HandlerType: (*TaoBlogServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _TaoBlog_Ping_Handler, }, { MethodName: "CreatePost", Handler: _TaoBlog_CreatePost_Handler, }, { MethodName: "GetPost", Handler: _TaoBlog_GetPost_Handler, }, { MethodName: "UpdatePost", Handler: _TaoBlog_UpdatePost_Handler, }, { MethodName: "DeletePost", Handler: _TaoBlog_DeletePost_Handler, }, { MethodName: "SetPostStatus", Handler: _TaoBlog_SetPostStatus_Handler, }, { MethodName: "GetPostComments", Handler: _TaoBlog_GetPostComments_Handler, }, { MethodName: "GetPostsByTags", Handler: _TaoBlog_GetPostsByTags_Handler, }, { MethodName: "PreviewPost", Handler: _TaoBlog_PreviewPost_Handler, }, { MethodName: "CreateComment", Handler: _TaoBlog_CreateComment_Handler, }, { MethodName: "GetComment", Handler: _TaoBlog_GetComment_Handler, }, { MethodName: "UpdateComment", Handler: _TaoBlog_UpdateComment_Handler, }, { MethodName: "DeleteComment", Handler: _TaoBlog_DeleteComment_Handler, }, { MethodName: "ListComments", Handler: _TaoBlog_ListComments_Handler, }, { MethodName: "SetCommentPostID", Handler: _TaoBlog_SetCommentPostID_Handler, }, { MethodName: "GetPostCommentsCount", Handler: _TaoBlog_GetPostCommentsCount_Handler, }, { MethodName: "PreviewComment", Handler: _TaoBlog_PreviewComment_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protocols/service.proto", }
TaoBlog_ServiceDesc is the grpc.ServiceDesc for TaoBlog service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterManagementHandler ¶
func RegisterManagementHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterManagementHandler registers the http handlers for service Management to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterManagementHandlerClient ¶
func RegisterManagementHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ManagementClient) error
RegisterManagementHandlerClient registers the http handlers for service Management to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ManagementClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ManagementClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ManagementClient" to call the correct interceptors.
func RegisterManagementHandlerFromEndpoint ¶
func RegisterManagementHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterManagementHandlerFromEndpoint is same as RegisterManagementHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterManagementHandlerServer ¶
func RegisterManagementHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ManagementServer) error
RegisterManagementHandlerServer registers the http handlers for service Management to "mux". UnaryRPC :call ManagementServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterManagementHandlerFromEndpoint instead.
func RegisterManagementServer ¶
func RegisterManagementServer(s grpc.ServiceRegistrar, srv ManagementServer)
func RegisterSearchHandler ¶
RegisterSearchHandler registers the http handlers for service Search to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSearchHandlerClient ¶
func RegisterSearchHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SearchClient) error
RegisterSearchHandlerClient registers the http handlers for service Search to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SearchClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SearchClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SearchClient" to call the correct interceptors.
func RegisterSearchHandlerFromEndpoint ¶
func RegisterSearchHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSearchHandlerFromEndpoint is same as RegisterSearchHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSearchHandlerServer ¶
func RegisterSearchHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SearchServer) error
RegisterSearchHandlerServer registers the http handlers for service Search to "mux". UnaryRPC :call SearchServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSearchHandlerFromEndpoint instead.
func RegisterSearchServer ¶
func RegisterSearchServer(s grpc.ServiceRegistrar, srv SearchServer)
func RegisterTaoBlogHandler ¶
func RegisterTaoBlogHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTaoBlogHandler registers the http handlers for service TaoBlog to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTaoBlogHandlerClient ¶
func RegisterTaoBlogHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TaoBlogClient) error
RegisterTaoBlogHandlerClient registers the http handlers for service TaoBlog to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TaoBlogClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TaoBlogClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TaoBlogClient" to call the correct interceptors.
func RegisterTaoBlogHandlerFromEndpoint ¶
func RegisterTaoBlogHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTaoBlogHandlerFromEndpoint is same as RegisterTaoBlogHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTaoBlogHandlerServer ¶
func RegisterTaoBlogHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TaoBlogServer) error
RegisterTaoBlogHandlerServer registers the http handlers for service TaoBlog to "mux". UnaryRPC :call TaoBlogServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTaoBlogHandlerFromEndpoint instead.
func RegisterTaoBlogServer ¶
func RegisterTaoBlogServer(s grpc.ServiceRegistrar, srv TaoBlogServer)
Types ¶
type BackupFileSpec ¶
type BackupFileSpec struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Mode uint32 `protobuf:"varint,2,opt,name=mode,proto3" json:"mode,omitempty"` Size uint32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` Time uint32 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*BackupFileSpec) Descriptor
deprecated
func (*BackupFileSpec) Descriptor() ([]byte, []int)
Deprecated: Use BackupFileSpec.ProtoReflect.Descriptor instead.
func (*BackupFileSpec) GetMode ¶
func (x *BackupFileSpec) GetMode() uint32
func (*BackupFileSpec) GetPath ¶
func (x *BackupFileSpec) GetPath() string
func (*BackupFileSpec) GetSize ¶
func (x *BackupFileSpec) GetSize() uint32
func (*BackupFileSpec) GetTime ¶
func (x *BackupFileSpec) GetTime() uint32
func (*BackupFileSpec) ProtoMessage ¶
func (*BackupFileSpec) ProtoMessage()
func (*BackupFileSpec) ProtoReflect ¶
func (x *BackupFileSpec) ProtoReflect() protoreflect.Message
func (*BackupFileSpec) Reset ¶
func (x *BackupFileSpec) Reset()
func (*BackupFileSpec) String ¶
func (x *BackupFileSpec) String() string
type BackupFilesRequest ¶
type BackupFilesRequest struct { // Types that are assignable to BackupFilesMessage: // // *BackupFilesRequest_ListFiles // *BackupFilesRequest_SendFile BackupFilesMessage isBackupFilesRequest_BackupFilesMessage `protobuf_oneof:"BackupFilesMessage"` // contains filtered or unexported fields }
func (*BackupFilesRequest) Descriptor
deprecated
func (*BackupFilesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BackupFilesRequest.ProtoReflect.Descriptor instead.
func (*BackupFilesRequest) GetBackupFilesMessage ¶
func (m *BackupFilesRequest) GetBackupFilesMessage() isBackupFilesRequest_BackupFilesMessage
func (*BackupFilesRequest) GetListFiles ¶
func (x *BackupFilesRequest) GetListFiles() *BackupFilesRequest_ListFilesRequest
func (*BackupFilesRequest) GetSendFile ¶
func (x *BackupFilesRequest) GetSendFile() *BackupFilesRequest_SendFileRequest
func (*BackupFilesRequest) ProtoMessage ¶
func (*BackupFilesRequest) ProtoMessage()
func (*BackupFilesRequest) ProtoReflect ¶
func (x *BackupFilesRequest) ProtoReflect() protoreflect.Message
func (*BackupFilesRequest) Reset ¶
func (x *BackupFilesRequest) Reset()
func (*BackupFilesRequest) String ¶
func (x *BackupFilesRequest) String() string
type BackupFilesRequest_ListFiles ¶
type BackupFilesRequest_ListFiles struct {
ListFiles *BackupFilesRequest_ListFilesRequest `protobuf:"bytes,1,opt,name=list_files,json=listFiles,proto3,oneof"`
}
type BackupFilesRequest_ListFilesRequest ¶
type BackupFilesRequest_ListFilesRequest struct {
// contains filtered or unexported fields
}
func (*BackupFilesRequest_ListFilesRequest) Descriptor
deprecated
func (*BackupFilesRequest_ListFilesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BackupFilesRequest_ListFilesRequest.ProtoReflect.Descriptor instead.
func (*BackupFilesRequest_ListFilesRequest) ProtoMessage ¶
func (*BackupFilesRequest_ListFilesRequest) ProtoMessage()
func (*BackupFilesRequest_ListFilesRequest) ProtoReflect ¶
func (x *BackupFilesRequest_ListFilesRequest) ProtoReflect() protoreflect.Message
func (*BackupFilesRequest_ListFilesRequest) Reset ¶
func (x *BackupFilesRequest_ListFilesRequest) Reset()
func (*BackupFilesRequest_ListFilesRequest) String ¶
func (x *BackupFilesRequest_ListFilesRequest) String() string
type BackupFilesRequest_SendFile ¶
type BackupFilesRequest_SendFile struct {
SendFile *BackupFilesRequest_SendFileRequest `protobuf:"bytes,2,opt,name=send_file,json=sendFile,proto3,oneof"`
}
type BackupFilesRequest_SendFileRequest ¶
type BackupFilesRequest_SendFileRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*BackupFilesRequest_SendFileRequest) Descriptor
deprecated
func (*BackupFilesRequest_SendFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use BackupFilesRequest_SendFileRequest.ProtoReflect.Descriptor instead.
func (*BackupFilesRequest_SendFileRequest) GetPath ¶
func (x *BackupFilesRequest_SendFileRequest) GetPath() string
func (*BackupFilesRequest_SendFileRequest) ProtoMessage ¶
func (*BackupFilesRequest_SendFileRequest) ProtoMessage()
func (*BackupFilesRequest_SendFileRequest) ProtoReflect ¶
func (x *BackupFilesRequest_SendFileRequest) ProtoReflect() protoreflect.Message
func (*BackupFilesRequest_SendFileRequest) Reset ¶
func (x *BackupFilesRequest_SendFileRequest) Reset()
func (*BackupFilesRequest_SendFileRequest) String ¶
func (x *BackupFilesRequest_SendFileRequest) String() string
type BackupFilesResponse ¶
type BackupFilesResponse struct { // Types that are assignable to BackupFilesMessage: // // *BackupFilesResponse_ListFiles // *BackupFilesResponse_SendFile BackupFilesMessage isBackupFilesResponse_BackupFilesMessage `protobuf_oneof:"BackupFilesMessage"` // contains filtered or unexported fields }
func (*BackupFilesResponse) Descriptor
deprecated
func (*BackupFilesResponse) Descriptor() ([]byte, []int)
Deprecated: Use BackupFilesResponse.ProtoReflect.Descriptor instead.
func (*BackupFilesResponse) GetBackupFilesMessage ¶
func (m *BackupFilesResponse) GetBackupFilesMessage() isBackupFilesResponse_BackupFilesMessage
func (*BackupFilesResponse) GetListFiles ¶
func (x *BackupFilesResponse) GetListFiles() *BackupFilesResponse_ListFilesResponse
func (*BackupFilesResponse) GetSendFile ¶
func (x *BackupFilesResponse) GetSendFile() *BackupFilesResponse_SendFileResponse
func (*BackupFilesResponse) ProtoMessage ¶
func (*BackupFilesResponse) ProtoMessage()
func (*BackupFilesResponse) ProtoReflect ¶
func (x *BackupFilesResponse) ProtoReflect() protoreflect.Message
func (*BackupFilesResponse) Reset ¶
func (x *BackupFilesResponse) Reset()
func (*BackupFilesResponse) String ¶
func (x *BackupFilesResponse) String() string
type BackupFilesResponse_ListFiles ¶
type BackupFilesResponse_ListFiles struct {
ListFiles *BackupFilesResponse_ListFilesResponse `protobuf:"bytes,1,opt,name=list_files,json=listFiles,proto3,oneof"`
}
type BackupFilesResponse_ListFilesResponse ¶
type BackupFilesResponse_ListFilesResponse struct { Files []*BackupFileSpec `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*BackupFilesResponse_ListFilesResponse) Descriptor
deprecated
func (*BackupFilesResponse_ListFilesResponse) Descriptor() ([]byte, []int)
Deprecated: Use BackupFilesResponse_ListFilesResponse.ProtoReflect.Descriptor instead.
func (*BackupFilesResponse_ListFilesResponse) GetFiles ¶
func (x *BackupFilesResponse_ListFilesResponse) GetFiles() []*BackupFileSpec
func (*BackupFilesResponse_ListFilesResponse) ProtoMessage ¶
func (*BackupFilesResponse_ListFilesResponse) ProtoMessage()
func (*BackupFilesResponse_ListFilesResponse) ProtoReflect ¶
func (x *BackupFilesResponse_ListFilesResponse) ProtoReflect() protoreflect.Message
func (*BackupFilesResponse_ListFilesResponse) Reset ¶
func (x *BackupFilesResponse_ListFilesResponse) Reset()
func (*BackupFilesResponse_ListFilesResponse) String ¶
func (x *BackupFilesResponse_ListFilesResponse) String() string
type BackupFilesResponse_SendFile ¶
type BackupFilesResponse_SendFile struct {
SendFile *BackupFilesResponse_SendFileResponse `protobuf:"bytes,2,opt,name=send_file,json=sendFile,proto3,oneof"`
}
type BackupFilesResponse_SendFileResponse ¶
type BackupFilesResponse_SendFileResponse struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*BackupFilesResponse_SendFileResponse) Descriptor
deprecated
func (*BackupFilesResponse_SendFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use BackupFilesResponse_SendFileResponse.ProtoReflect.Descriptor instead.
func (*BackupFilesResponse_SendFileResponse) GetData ¶
func (x *BackupFilesResponse_SendFileResponse) GetData() []byte
func (*BackupFilesResponse_SendFileResponse) ProtoMessage ¶
func (*BackupFilesResponse_SendFileResponse) ProtoMessage()
func (*BackupFilesResponse_SendFileResponse) ProtoReflect ¶
func (x *BackupFilesResponse_SendFileResponse) ProtoReflect() protoreflect.Message
func (*BackupFilesResponse_SendFileResponse) Reset ¶
func (x *BackupFilesResponse_SendFileResponse) Reset()
func (*BackupFilesResponse_SendFileResponse) String ¶
func (x *BackupFilesResponse_SendFileResponse) String() string
type BackupRequest ¶
type BackupRequest struct { // 是否需要压缩数据(zlib) Compress bool `protobuf:"varint,1,opt,name=compress,proto3" json:"compress,omitempty"` // contains filtered or unexported fields }
func (*BackupRequest) Descriptor
deprecated
func (*BackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use BackupRequest.ProtoReflect.Descriptor instead.
func (*BackupRequest) GetCompress ¶
func (x *BackupRequest) GetCompress() bool
func (*BackupRequest) ProtoMessage ¶
func (*BackupRequest) ProtoMessage()
func (*BackupRequest) ProtoReflect ¶
func (x *BackupRequest) ProtoReflect() protoreflect.Message
func (*BackupRequest) Reset ¶
func (x *BackupRequest) Reset()
func (*BackupRequest) String ¶
func (x *BackupRequest) String() string
type BackupResponse ¶
type BackupResponse struct { // Types that are assignable to BackupResponseMessage: // // *BackupResponse_Preparing_ // *BackupResponse_Transfering_ BackupResponseMessage isBackupResponse_BackupResponseMessage `protobuf_oneof:"BackupResponseMessage"` // contains filtered or unexported fields }
func (*BackupResponse) Descriptor
deprecated
func (*BackupResponse) Descriptor() ([]byte, []int)
Deprecated: Use BackupResponse.ProtoReflect.Descriptor instead.
func (*BackupResponse) GetBackupResponseMessage ¶
func (m *BackupResponse) GetBackupResponseMessage() isBackupResponse_BackupResponseMessage
func (*BackupResponse) GetPreparing ¶
func (x *BackupResponse) GetPreparing() *BackupResponse_Preparing
func (*BackupResponse) GetTransfering ¶
func (x *BackupResponse) GetTransfering() *BackupResponse_Transfering
func (*BackupResponse) ProtoMessage ¶
func (*BackupResponse) ProtoMessage()
func (*BackupResponse) ProtoReflect ¶
func (x *BackupResponse) ProtoReflect() protoreflect.Message
func (*BackupResponse) Reset ¶
func (x *BackupResponse) Reset()
func (*BackupResponse) String ¶
func (x *BackupResponse) String() string
type BackupResponse_Preparing ¶
type BackupResponse_Preparing struct { Progress float32 `protobuf:"fixed32,1,opt,name=progress,proto3" json:"progress,omitempty"` // contains filtered or unexported fields }
func (*BackupResponse_Preparing) Descriptor
deprecated
func (*BackupResponse_Preparing) Descriptor() ([]byte, []int)
Deprecated: Use BackupResponse_Preparing.ProtoReflect.Descriptor instead.
func (*BackupResponse_Preparing) GetProgress ¶
func (x *BackupResponse_Preparing) GetProgress() float32
func (*BackupResponse_Preparing) ProtoMessage ¶
func (*BackupResponse_Preparing) ProtoMessage()
func (*BackupResponse_Preparing) ProtoReflect ¶
func (x *BackupResponse_Preparing) ProtoReflect() protoreflect.Message
func (*BackupResponse_Preparing) Reset ¶
func (x *BackupResponse_Preparing) Reset()
func (*BackupResponse_Preparing) String ¶
func (x *BackupResponse_Preparing) String() string
type BackupResponse_Preparing_ ¶
type BackupResponse_Preparing_ struct {
Preparing *BackupResponse_Preparing `protobuf:"bytes,1,opt,name=preparing,proto3,oneof"`
}
type BackupResponse_Transfering ¶
type BackupResponse_Transfering struct { Progress float32 `protobuf:"fixed32,1,opt,name=progress,proto3" json:"progress,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*BackupResponse_Transfering) Descriptor
deprecated
func (*BackupResponse_Transfering) Descriptor() ([]byte, []int)
Deprecated: Use BackupResponse_Transfering.ProtoReflect.Descriptor instead.
func (*BackupResponse_Transfering) GetData ¶
func (x *BackupResponse_Transfering) GetData() []byte
func (*BackupResponse_Transfering) GetProgress ¶
func (x *BackupResponse_Transfering) GetProgress() float32
func (*BackupResponse_Transfering) ProtoMessage ¶
func (*BackupResponse_Transfering) ProtoMessage()
func (*BackupResponse_Transfering) ProtoReflect ¶
func (x *BackupResponse_Transfering) ProtoReflect() protoreflect.Message
func (*BackupResponse_Transfering) Reset ¶
func (x *BackupResponse_Transfering) Reset()
func (*BackupResponse_Transfering) String ¶
func (x *BackupResponse_Transfering) String() string
type BackupResponse_Transfering_ ¶
type BackupResponse_Transfering_ struct {
Transfering *BackupResponse_Transfering `protobuf:"bytes,2,opt,name=transfering,proto3,oneof"`
}
type Comment ¶
type Comment struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Parent int64 `protobuf:"varint,2,opt,name=parent,proto3" json:"parent,omitempty"` Root int64 `protobuf:"varint,3,opt,name=root,proto3" json:"root,omitempty"` PostId int64 `protobuf:"varint,4,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` Author string `protobuf:"bytes,5,opt,name=author,proto3" json:"author,omitempty"` Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` Ip string `protobuf:"bytes,8,opt,name=ip,proto3" json:"ip,omitempty"` Date int32 `protobuf:"varint,9,opt,name=date,proto3" json:"date,omitempty"` SourceType string `protobuf:"bytes,10,opt,name=source_type,json=sourceType,proto3" json:"source_type,omitempty"` Source string `protobuf:"bytes,11,opt,name=source,proto3" json:"source,omitempty"` Content string `protobuf:"bytes,12,opt,name=content,proto3" json:"content,omitempty"` IsAdmin bool `protobuf:"varint,14,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"` DateFuzzy string `protobuf:"bytes,15,opt,name=date_fuzzy,json=dateFuzzy,proto3" json:"date_fuzzy,omitempty"` GeoLocation string `protobuf:"bytes,16,opt,name=geo_location,json=geoLocation,proto3" json:"geo_location,omitempty"` // 前端用户是否可以编辑此评论? // 仅在 list/create 接口中返回。 CanEdit bool `protobuf:"varint,17,opt,name=can_edit,json=canEdit,proto3" json:"can_edit,omitempty"` // 头像内部临时ID Avatar int32 `protobuf:"varint,18,opt,name=avatar,proto3" json:"avatar,omitempty"` Modified int32 `protobuf:"varint,19,opt,name=modified,proto3" json:"modified,omitempty"` // contains filtered or unexported fields }
func (*Comment) Descriptor
deprecated
func (*Comment) GetCanEdit ¶
func (*Comment) GetContent ¶
func (*Comment) GetDateFuzzy ¶
func (*Comment) GetGeoLocation ¶
func (*Comment) GetIsAdmin ¶
func (*Comment) GetModified ¶
func (*Comment) GetSourceType ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type DeleteCommentRequest ¶
type DeleteCommentRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCommentRequest) Descriptor
deprecated
func (*DeleteCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCommentRequest.ProtoReflect.Descriptor instead.
func (*DeleteCommentRequest) GetId ¶
func (x *DeleteCommentRequest) GetId() int32
func (*DeleteCommentRequest) ProtoMessage ¶
func (*DeleteCommentRequest) ProtoMessage()
func (*DeleteCommentRequest) ProtoReflect ¶
func (x *DeleteCommentRequest) ProtoReflect() protoreflect.Message
func (*DeleteCommentRequest) Reset ¶
func (x *DeleteCommentRequest) Reset()
func (*DeleteCommentRequest) String ¶
func (x *DeleteCommentRequest) String() string
type DeleteCommentResponse ¶
type DeleteCommentResponse struct {
// contains filtered or unexported fields
}
func (*DeleteCommentResponse) Descriptor
deprecated
func (*DeleteCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCommentResponse.ProtoReflect.Descriptor instead.
func (*DeleteCommentResponse) ProtoMessage ¶
func (*DeleteCommentResponse) ProtoMessage()
func (*DeleteCommentResponse) ProtoReflect ¶
func (x *DeleteCommentResponse) ProtoReflect() protoreflect.Message
func (*DeleteCommentResponse) Reset ¶
func (x *DeleteCommentResponse) Reset()
func (*DeleteCommentResponse) String ¶
func (x *DeleteCommentResponse) String() string
type DeletePostRequest ¶
type DeletePostRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeletePostRequest) Descriptor
deprecated
func (*DeletePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePostRequest.ProtoReflect.Descriptor instead.
func (*DeletePostRequest) GetId ¶
func (x *DeletePostRequest) GetId() int32
func (*DeletePostRequest) ProtoMessage ¶
func (*DeletePostRequest) ProtoMessage()
func (*DeletePostRequest) ProtoReflect ¶
func (x *DeletePostRequest) ProtoReflect() protoreflect.Message
func (*DeletePostRequest) Reset ¶
func (x *DeletePostRequest) Reset()
func (*DeletePostRequest) String ¶
func (x *DeletePostRequest) String() string
type FileSpec ¶
type FileSpec struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Mode uint32 `protobuf:"varint,2,opt,name=mode,proto3" json:"mode,omitempty"` Size uint32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` Time uint32 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*FileSpec) Descriptor
deprecated
func (*FileSpec) ProtoMessage ¶
func (*FileSpec) ProtoMessage()
func (*FileSpec) ProtoReflect ¶
func (x *FileSpec) ProtoReflect() protoreflect.Message
type FileSystemRequest ¶
type FileSystemRequest struct { Init *FileSystemRequest_InitRequest `protobuf:"bytes,1,opt,name=init,proto3" json:"init,omitempty"` // Types that are assignable to Request: // // *FileSystemRequest_ListFiles // *FileSystemRequest_WriteFile // *FileSystemRequest_DeleteFile Request isFileSystemRequest_Request `protobuf_oneof:"Request"` // contains filtered or unexported fields }
func (*FileSystemRequest) Descriptor
deprecated
func (*FileSystemRequest) Descriptor() ([]byte, []int)
Deprecated: Use FileSystemRequest.ProtoReflect.Descriptor instead.
func (*FileSystemRequest) GetDeleteFile ¶
func (x *FileSystemRequest) GetDeleteFile() *FileSystemRequest_DeleteFileRequest
func (*FileSystemRequest) GetInit ¶
func (x *FileSystemRequest) GetInit() *FileSystemRequest_InitRequest
func (*FileSystemRequest) GetListFiles ¶
func (x *FileSystemRequest) GetListFiles() *FileSystemRequest_ListFilesRequest
func (*FileSystemRequest) GetRequest ¶
func (m *FileSystemRequest) GetRequest() isFileSystemRequest_Request
func (*FileSystemRequest) GetWriteFile ¶
func (x *FileSystemRequest) GetWriteFile() *FileSystemRequest_WriteFileRequest
func (*FileSystemRequest) ProtoMessage ¶
func (*FileSystemRequest) ProtoMessage()
func (*FileSystemRequest) ProtoReflect ¶
func (x *FileSystemRequest) ProtoReflect() protoreflect.Message
func (*FileSystemRequest) Reset ¶
func (x *FileSystemRequest) Reset()
func (*FileSystemRequest) String ¶
func (x *FileSystemRequest) String() string
type FileSystemRequest_DeleteFile ¶
type FileSystemRequest_DeleteFile struct {
DeleteFile *FileSystemRequest_DeleteFileRequest `protobuf:"bytes,12,opt,name=delete_file,json=deleteFile,proto3,oneof"`
}
type FileSystemRequest_DeleteFileRequest ¶
type FileSystemRequest_DeleteFileRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*FileSystemRequest_DeleteFileRequest) Descriptor
deprecated
func (*FileSystemRequest_DeleteFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use FileSystemRequest_DeleteFileRequest.ProtoReflect.Descriptor instead.
func (*FileSystemRequest_DeleteFileRequest) GetPath ¶
func (x *FileSystemRequest_DeleteFileRequest) GetPath() string
func (*FileSystemRequest_DeleteFileRequest) ProtoMessage ¶
func (*FileSystemRequest_DeleteFileRequest) ProtoMessage()
func (*FileSystemRequest_DeleteFileRequest) ProtoReflect ¶
func (x *FileSystemRequest_DeleteFileRequest) ProtoReflect() protoreflect.Message
func (*FileSystemRequest_DeleteFileRequest) Reset ¶
func (x *FileSystemRequest_DeleteFileRequest) Reset()
func (*FileSystemRequest_DeleteFileRequest) String ¶
func (x *FileSystemRequest_DeleteFileRequest) String() string
type FileSystemRequest_InitRequest ¶
type FileSystemRequest_InitRequest struct { // Types that are assignable to For: // // *FileSystemRequest_InitRequest_Post_ For isFileSystemRequest_InitRequest_For `protobuf_oneof:"For"` // contains filtered or unexported fields }
func (*FileSystemRequest_InitRequest) Descriptor
deprecated
func (*FileSystemRequest_InitRequest) Descriptor() ([]byte, []int)
Deprecated: Use FileSystemRequest_InitRequest.ProtoReflect.Descriptor instead.
func (*FileSystemRequest_InitRequest) GetFor ¶
func (m *FileSystemRequest_InitRequest) GetFor() isFileSystemRequest_InitRequest_For
func (*FileSystemRequest_InitRequest) GetPost ¶
func (x *FileSystemRequest_InitRequest) GetPost() *FileSystemRequest_InitRequest_Post
func (*FileSystemRequest_InitRequest) ProtoMessage ¶
func (*FileSystemRequest_InitRequest) ProtoMessage()
func (*FileSystemRequest_InitRequest) ProtoReflect ¶
func (x *FileSystemRequest_InitRequest) ProtoReflect() protoreflect.Message
func (*FileSystemRequest_InitRequest) Reset ¶
func (x *FileSystemRequest_InitRequest) Reset()
func (*FileSystemRequest_InitRequest) String ¶
func (x *FileSystemRequest_InitRequest) String() string
type FileSystemRequest_InitRequest_Post ¶
type FileSystemRequest_InitRequest_Post struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*FileSystemRequest_InitRequest_Post) Descriptor
deprecated
func (*FileSystemRequest_InitRequest_Post) Descriptor() ([]byte, []int)
Deprecated: Use FileSystemRequest_InitRequest_Post.ProtoReflect.Descriptor instead.
func (*FileSystemRequest_InitRequest_Post) GetId ¶
func (x *FileSystemRequest_InitRequest_Post) GetId() int64
func (*FileSystemRequest_InitRequest_Post) ProtoMessage ¶
func (*FileSystemRequest_InitRequest_Post) ProtoMessage()
func (*FileSystemRequest_InitRequest_Post) ProtoReflect ¶
func (x *FileSystemRequest_InitRequest_Post) ProtoReflect() protoreflect.Message
func (*FileSystemRequest_InitRequest_Post) Reset ¶
func (x *FileSystemRequest_InitRequest_Post) Reset()
func (*FileSystemRequest_InitRequest_Post) String ¶
func (x *FileSystemRequest_InitRequest_Post) String() string
type FileSystemRequest_InitRequest_Post_ ¶
type FileSystemRequest_InitRequest_Post_ struct {
Post *FileSystemRequest_InitRequest_Post `protobuf:"bytes,1,opt,name=post,proto3,oneof"`
}
type FileSystemRequest_ListFiles ¶
type FileSystemRequest_ListFiles struct {
ListFiles *FileSystemRequest_ListFilesRequest `protobuf:"bytes,10,opt,name=list_files,json=listFiles,proto3,oneof"`
}
type FileSystemRequest_ListFilesRequest ¶
type FileSystemRequest_ListFilesRequest struct {
// contains filtered or unexported fields
}
func (*FileSystemRequest_ListFilesRequest) Descriptor
deprecated
func (*FileSystemRequest_ListFilesRequest) Descriptor() ([]byte, []int)
Deprecated: Use FileSystemRequest_ListFilesRequest.ProtoReflect.Descriptor instead.
func (*FileSystemRequest_ListFilesRequest) ProtoMessage ¶
func (*FileSystemRequest_ListFilesRequest) ProtoMessage()
func (*FileSystemRequest_ListFilesRequest) ProtoReflect ¶
func (x *FileSystemRequest_ListFilesRequest) ProtoReflect() protoreflect.Message
func (*FileSystemRequest_ListFilesRequest) Reset ¶
func (x *FileSystemRequest_ListFilesRequest) Reset()
func (*FileSystemRequest_ListFilesRequest) String ¶
func (x *FileSystemRequest_ListFilesRequest) String() string
type FileSystemRequest_WriteFile ¶
type FileSystemRequest_WriteFile struct {
WriteFile *FileSystemRequest_WriteFileRequest `protobuf:"bytes,11,opt,name=write_file,json=writeFile,proto3,oneof"`
}
type FileSystemRequest_WriteFileRequest ¶
type FileSystemRequest_WriteFileRequest struct { Spec *FileSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*FileSystemRequest_WriteFileRequest) Descriptor
deprecated
func (*FileSystemRequest_WriteFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use FileSystemRequest_WriteFileRequest.ProtoReflect.Descriptor instead.
func (*FileSystemRequest_WriteFileRequest) GetData ¶
func (x *FileSystemRequest_WriteFileRequest) GetData() []byte
func (*FileSystemRequest_WriteFileRequest) GetSpec ¶
func (x *FileSystemRequest_WriteFileRequest) GetSpec() *FileSpec
func (*FileSystemRequest_WriteFileRequest) ProtoMessage ¶
func (*FileSystemRequest_WriteFileRequest) ProtoMessage()
func (*FileSystemRequest_WriteFileRequest) ProtoReflect ¶
func (x *FileSystemRequest_WriteFileRequest) ProtoReflect() protoreflect.Message
func (*FileSystemRequest_WriteFileRequest) Reset ¶
func (x *FileSystemRequest_WriteFileRequest) Reset()
func (*FileSystemRequest_WriteFileRequest) String ¶
func (x *FileSystemRequest_WriteFileRequest) String() string
type FileSystemResponse ¶
type FileSystemResponse struct { Init *FileSystemResponse_InitResponse `protobuf:"bytes,1,opt,name=init,proto3" json:"init,omitempty"` // Types that are assignable to Response: // // *FileSystemResponse_ListFiles // *FileSystemResponse_WriteFile // *FileSystemResponse_DeleteFile Response isFileSystemResponse_Response `protobuf_oneof:"Response"` // contains filtered or unexported fields }
func (*FileSystemResponse) Descriptor
deprecated
func (*FileSystemResponse) Descriptor() ([]byte, []int)
Deprecated: Use FileSystemResponse.ProtoReflect.Descriptor instead.
func (*FileSystemResponse) GetDeleteFile ¶
func (x *FileSystemResponse) GetDeleteFile() *FileSystemResponse_DeleteFileResponse
func (*FileSystemResponse) GetInit ¶
func (x *FileSystemResponse) GetInit() *FileSystemResponse_InitResponse
func (*FileSystemResponse) GetListFiles ¶
func (x *FileSystemResponse) GetListFiles() *FileSystemResponse_ListFilesResponse
func (*FileSystemResponse) GetResponse ¶
func (m *FileSystemResponse) GetResponse() isFileSystemResponse_Response
func (*FileSystemResponse) GetWriteFile ¶
func (x *FileSystemResponse) GetWriteFile() *FileSystemResponse_WriteFileResponse
func (*FileSystemResponse) ProtoMessage ¶
func (*FileSystemResponse) ProtoMessage()
func (*FileSystemResponse) ProtoReflect ¶
func (x *FileSystemResponse) ProtoReflect() protoreflect.Message
func (*FileSystemResponse) Reset ¶
func (x *FileSystemResponse) Reset()
func (*FileSystemResponse) String ¶
func (x *FileSystemResponse) String() string
type FileSystemResponse_DeleteFile ¶
type FileSystemResponse_DeleteFile struct {
DeleteFile *FileSystemResponse_DeleteFileResponse `protobuf:"bytes,12,opt,name=delete_file,json=deleteFile,proto3,oneof"`
}
type FileSystemResponse_DeleteFileResponse ¶
type FileSystemResponse_DeleteFileResponse struct {
// contains filtered or unexported fields
}
func (*FileSystemResponse_DeleteFileResponse) Descriptor
deprecated
func (*FileSystemResponse_DeleteFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use FileSystemResponse_DeleteFileResponse.ProtoReflect.Descriptor instead.
func (*FileSystemResponse_DeleteFileResponse) ProtoMessage ¶
func (*FileSystemResponse_DeleteFileResponse) ProtoMessage()
func (*FileSystemResponse_DeleteFileResponse) ProtoReflect ¶
func (x *FileSystemResponse_DeleteFileResponse) ProtoReflect() protoreflect.Message
func (*FileSystemResponse_DeleteFileResponse) Reset ¶
func (x *FileSystemResponse_DeleteFileResponse) Reset()
func (*FileSystemResponse_DeleteFileResponse) String ¶
func (x *FileSystemResponse_DeleteFileResponse) String() string
type FileSystemResponse_InitResponse ¶
type FileSystemResponse_InitResponse struct {
// contains filtered or unexported fields
}
func (*FileSystemResponse_InitResponse) Descriptor
deprecated
func (*FileSystemResponse_InitResponse) Descriptor() ([]byte, []int)
Deprecated: Use FileSystemResponse_InitResponse.ProtoReflect.Descriptor instead.
func (*FileSystemResponse_InitResponse) ProtoMessage ¶
func (*FileSystemResponse_InitResponse) ProtoMessage()
func (*FileSystemResponse_InitResponse) ProtoReflect ¶
func (x *FileSystemResponse_InitResponse) ProtoReflect() protoreflect.Message
func (*FileSystemResponse_InitResponse) Reset ¶
func (x *FileSystemResponse_InitResponse) Reset()
func (*FileSystemResponse_InitResponse) String ¶
func (x *FileSystemResponse_InitResponse) String() string
type FileSystemResponse_ListFiles ¶
type FileSystemResponse_ListFiles struct {
ListFiles *FileSystemResponse_ListFilesResponse `protobuf:"bytes,10,opt,name=list_files,json=listFiles,proto3,oneof"`
}
type FileSystemResponse_ListFilesResponse ¶
type FileSystemResponse_ListFilesResponse struct { Files []*FileSpec `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*FileSystemResponse_ListFilesResponse) Descriptor
deprecated
func (*FileSystemResponse_ListFilesResponse) Descriptor() ([]byte, []int)
Deprecated: Use FileSystemResponse_ListFilesResponse.ProtoReflect.Descriptor instead.
func (*FileSystemResponse_ListFilesResponse) GetFiles ¶
func (x *FileSystemResponse_ListFilesResponse) GetFiles() []*FileSpec
func (*FileSystemResponse_ListFilesResponse) ProtoMessage ¶
func (*FileSystemResponse_ListFilesResponse) ProtoMessage()
func (*FileSystemResponse_ListFilesResponse) ProtoReflect ¶
func (x *FileSystemResponse_ListFilesResponse) ProtoReflect() protoreflect.Message
func (*FileSystemResponse_ListFilesResponse) Reset ¶
func (x *FileSystemResponse_ListFilesResponse) Reset()
func (*FileSystemResponse_ListFilesResponse) String ¶
func (x *FileSystemResponse_ListFilesResponse) String() string
type FileSystemResponse_WriteFile ¶
type FileSystemResponse_WriteFile struct {
WriteFile *FileSystemResponse_WriteFileResponse `protobuf:"bytes,11,opt,name=write_file,json=writeFile,proto3,oneof"`
}
type FileSystemResponse_WriteFileResponse ¶
type FileSystemResponse_WriteFileResponse struct {
// contains filtered or unexported fields
}
func (*FileSystemResponse_WriteFileResponse) Descriptor
deprecated
func (*FileSystemResponse_WriteFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use FileSystemResponse_WriteFileResponse.ProtoReflect.Descriptor instead.
func (*FileSystemResponse_WriteFileResponse) ProtoMessage ¶
func (*FileSystemResponse_WriteFileResponse) ProtoMessage()
func (*FileSystemResponse_WriteFileResponse) ProtoReflect ¶
func (x *FileSystemResponse_WriteFileResponse) ProtoReflect() protoreflect.Message
func (*FileSystemResponse_WriteFileResponse) Reset ¶
func (x *FileSystemResponse_WriteFileResponse) Reset()
func (*FileSystemResponse_WriteFileResponse) String ¶
func (x *FileSystemResponse_WriteFileResponse) String() string
type GetAvatarRequest ¶
type GetCommentRequest ¶
type GetCommentRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCommentRequest) Descriptor
deprecated
func (*GetCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCommentRequest.ProtoReflect.Descriptor instead.
func (*GetCommentRequest) GetId ¶
func (x *GetCommentRequest) GetId() int64
func (*GetCommentRequest) ProtoMessage ¶
func (*GetCommentRequest) ProtoMessage()
func (*GetCommentRequest) ProtoReflect ¶
func (x *GetCommentRequest) ProtoReflect() protoreflect.Message
func (*GetCommentRequest) Reset ¶
func (x *GetCommentRequest) Reset()
func (*GetCommentRequest) String ¶
func (x *GetCommentRequest) String() string
type GetConfigRequest ¶
type GetConfigRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*GetConfigRequest) Descriptor
deprecated
func (*GetConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead.
func (*GetConfigRequest) GetPath ¶
func (x *GetConfigRequest) GetPath() string
func (*GetConfigRequest) ProtoMessage ¶
func (*GetConfigRequest) ProtoMessage()
func (*GetConfigRequest) ProtoReflect ¶
func (x *GetConfigRequest) ProtoReflect() protoreflect.Message
func (*GetConfigRequest) Reset ¶
func (x *GetConfigRequest) Reset()
func (*GetConfigRequest) String ¶
func (x *GetConfigRequest) String() string
type GetConfigResponse ¶
type GetConfigResponse struct { Yaml string `protobuf:"bytes,1,opt,name=yaml,proto3" json:"yaml,omitempty"` // contains filtered or unexported fields }
func (*GetConfigResponse) Descriptor
deprecated
func (*GetConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigResponse.ProtoReflect.Descriptor instead.
func (*GetConfigResponse) GetYaml ¶
func (x *GetConfigResponse) GetYaml() string
func (*GetConfigResponse) ProtoMessage ¶
func (*GetConfigResponse) ProtoMessage()
func (*GetConfigResponse) ProtoReflect ¶
func (x *GetConfigResponse) ProtoReflect() protoreflect.Message
func (*GetConfigResponse) Reset ¶
func (x *GetConfigResponse) Reset()
func (*GetConfigResponse) String ¶
func (x *GetConfigResponse) String() string
type GetPostCommentsCountRequest ¶
type GetPostCommentsCountRequest struct { PostId int64 `protobuf:"varint,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` // contains filtered or unexported fields }
func (*GetPostCommentsCountRequest) Descriptor
deprecated
func (*GetPostCommentsCountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPostCommentsCountRequest.ProtoReflect.Descriptor instead.
func (*GetPostCommentsCountRequest) GetPostId ¶
func (x *GetPostCommentsCountRequest) GetPostId() int64
func (*GetPostCommentsCountRequest) ProtoMessage ¶
func (*GetPostCommentsCountRequest) ProtoMessage()
func (*GetPostCommentsCountRequest) ProtoReflect ¶
func (x *GetPostCommentsCountRequest) ProtoReflect() protoreflect.Message
func (*GetPostCommentsCountRequest) Reset ¶
func (x *GetPostCommentsCountRequest) Reset()
func (*GetPostCommentsCountRequest) String ¶
func (x *GetPostCommentsCountRequest) String() string
type GetPostCommentsCountResponse ¶
type GetPostCommentsCountResponse struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*GetPostCommentsCountResponse) Descriptor
deprecated
func (*GetPostCommentsCountResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPostCommentsCountResponse.ProtoReflect.Descriptor instead.
func (*GetPostCommentsCountResponse) GetCount ¶
func (x *GetPostCommentsCountResponse) GetCount() int64
func (*GetPostCommentsCountResponse) ProtoMessage ¶
func (*GetPostCommentsCountResponse) ProtoMessage()
func (*GetPostCommentsCountResponse) ProtoReflect ¶
func (x *GetPostCommentsCountResponse) ProtoReflect() protoreflect.Message
func (*GetPostCommentsCountResponse) Reset ¶
func (x *GetPostCommentsCountResponse) Reset()
func (*GetPostCommentsCountResponse) String ¶
func (x *GetPostCommentsCountResponse) String() string
type GetPostCommentsRequest ¶
type GetPostCommentsRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
获取某篇文章的全部评论。
func (*GetPostCommentsRequest) Descriptor
deprecated
func (*GetPostCommentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPostCommentsRequest.ProtoReflect.Descriptor instead.
func (*GetPostCommentsRequest) GetId ¶
func (x *GetPostCommentsRequest) GetId() int64
func (*GetPostCommentsRequest) ProtoMessage ¶
func (*GetPostCommentsRequest) ProtoMessage()
func (*GetPostCommentsRequest) ProtoReflect ¶
func (x *GetPostCommentsRequest) ProtoReflect() protoreflect.Message
func (*GetPostCommentsRequest) Reset ¶
func (x *GetPostCommentsRequest) Reset()
func (*GetPostCommentsRequest) String ¶
func (x *GetPostCommentsRequest) String() string
type GetPostCommentsResponse ¶
type GetPostCommentsResponse struct { Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` // contains filtered or unexported fields }
func (*GetPostCommentsResponse) Descriptor
deprecated
func (*GetPostCommentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPostCommentsResponse.ProtoReflect.Descriptor instead.
func (*GetPostCommentsResponse) GetComments ¶
func (x *GetPostCommentsResponse) GetComments() []*Comment
func (*GetPostCommentsResponse) ProtoMessage ¶
func (*GetPostCommentsResponse) ProtoMessage()
func (*GetPostCommentsResponse) ProtoReflect ¶
func (x *GetPostCommentsResponse) ProtoReflect() protoreflect.Message
func (*GetPostCommentsResponse) Reset ¶
func (x *GetPostCommentsResponse) Reset()
func (*GetPostCommentsResponse) String ¶
func (x *GetPostCommentsResponse) String() string
type GetPostRequest ¶
type GetPostRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` WithSource bool `protobuf:"varint,2,opt,name=with_source,json=withSource,proto3" json:"with_source,omitempty"` WithContent bool `protobuf:"varint,3,opt,name=with_content,json=withContent,proto3" json:"with_content,omitempty"` WithTags bool `protobuf:"varint,4,opt,name=with_tags,json=withTags,proto3" json:"with_tags,omitempty"` WithMetas bool `protobuf:"varint,5,opt,name=with_metas,json=withMetas,proto3" json:"with_metas,omitempty"` // contains filtered or unexported fields }
func (*GetPostRequest) Descriptor
deprecated
func (*GetPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPostRequest.ProtoReflect.Descriptor instead.
func (*GetPostRequest) GetId ¶
func (x *GetPostRequest) GetId() int32
func (*GetPostRequest) GetWithContent ¶
func (x *GetPostRequest) GetWithContent() bool
func (*GetPostRequest) GetWithMetas ¶
func (x *GetPostRequest) GetWithMetas() bool
func (*GetPostRequest) GetWithSource ¶
func (x *GetPostRequest) GetWithSource() bool
func (*GetPostRequest) GetWithTags ¶
func (x *GetPostRequest) GetWithTags() bool
func (*GetPostRequest) ProtoMessage ¶
func (*GetPostRequest) ProtoMessage()
func (*GetPostRequest) ProtoReflect ¶
func (x *GetPostRequest) ProtoReflect() protoreflect.Message
func (*GetPostRequest) Reset ¶
func (x *GetPostRequest) Reset()
func (*GetPostRequest) String ¶
func (x *GetPostRequest) String() string
type GetPostsByTagsRequest ¶
type GetPostsByTagsRequest struct { Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` ContentOptions *PostContentOptions `protobuf:"bytes,2,opt,name=content_options,json=contentOptions,proto3" json:"content_options,omitempty"` // contains filtered or unexported fields }
func (*GetPostsByTagsRequest) Descriptor
deprecated
func (*GetPostsByTagsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPostsByTagsRequest.ProtoReflect.Descriptor instead.
func (*GetPostsByTagsRequest) GetContentOptions ¶
func (x *GetPostsByTagsRequest) GetContentOptions() *PostContentOptions
func (*GetPostsByTagsRequest) GetTags ¶
func (x *GetPostsByTagsRequest) GetTags() []string
func (*GetPostsByTagsRequest) ProtoMessage ¶
func (*GetPostsByTagsRequest) ProtoMessage()
func (*GetPostsByTagsRequest) ProtoReflect ¶
func (x *GetPostsByTagsRequest) ProtoReflect() protoreflect.Message
func (*GetPostsByTagsRequest) Reset ¶
func (x *GetPostsByTagsRequest) Reset()
func (*GetPostsByTagsRequest) String ¶
func (x *GetPostsByTagsRequest) String() string
type GetPostsByTagsResponse ¶
type GetPostsByTagsResponse struct { Posts []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"` // contains filtered or unexported fields }
func (*GetPostsByTagsResponse) Descriptor
deprecated
func (*GetPostsByTagsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPostsByTagsResponse.ProtoReflect.Descriptor instead.
func (*GetPostsByTagsResponse) GetPosts ¶
func (x *GetPostsByTagsResponse) GetPosts() []*Post
func (*GetPostsByTagsResponse) ProtoMessage ¶
func (*GetPostsByTagsResponse) ProtoMessage()
func (*GetPostsByTagsResponse) ProtoReflect ¶
func (x *GetPostsByTagsResponse) ProtoReflect() protoreflect.Message
func (*GetPostsByTagsResponse) Reset ¶
func (x *GetPostsByTagsResponse) Reset()
func (*GetPostsByTagsResponse) String ¶
func (x *GetPostsByTagsResponse) String() string
type ListCommentsRequest ¶
type ListCommentsRequest struct { Mode ListCommentsRequest_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=protocols.ListCommentsRequest_Mode" json:"mode,omitempty"` // 0 for all posts. PostId int64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` // defaults to "*". Fields []string `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"` // must be > 0. Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // 文章的种类,比如 post、page、tweet。 // 如果不指定的话,则是全部种类。 Types []string `protobuf:"bytes,10,rep,name=types,proto3" json:"types,omitempty"` ContentOptions *PostContentOptions `protobuf:"bytes,11,opt,name=content_options,json=contentOptions,proto3" json:"content_options,omitempty"` // contains filtered or unexported fields }
func (*ListCommentsRequest) Descriptor
deprecated
func (*ListCommentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentsRequest.ProtoReflect.Descriptor instead.
func (*ListCommentsRequest) GetContentOptions ¶
func (x *ListCommentsRequest) GetContentOptions() *PostContentOptions
func (*ListCommentsRequest) GetFields ¶
func (x *ListCommentsRequest) GetFields() []string
func (*ListCommentsRequest) GetLimit ¶
func (x *ListCommentsRequest) GetLimit() int64
func (*ListCommentsRequest) GetMode ¶
func (x *ListCommentsRequest) GetMode() ListCommentsRequest_Mode
func (*ListCommentsRequest) GetOffset ¶
func (x *ListCommentsRequest) GetOffset() int64
func (*ListCommentsRequest) GetOrderBy ¶
func (x *ListCommentsRequest) GetOrderBy() string
func (*ListCommentsRequest) GetPostId ¶
func (x *ListCommentsRequest) GetPostId() int64
func (*ListCommentsRequest) GetTypes ¶
func (x *ListCommentsRequest) GetTypes() []string
func (*ListCommentsRequest) ProtoMessage ¶
func (*ListCommentsRequest) ProtoMessage()
func (*ListCommentsRequest) ProtoReflect ¶
func (x *ListCommentsRequest) ProtoReflect() protoreflect.Message
func (*ListCommentsRequest) Reset ¶
func (x *ListCommentsRequest) Reset()
func (*ListCommentsRequest) String ¶
func (x *ListCommentsRequest) String() string
type ListCommentsRequest_Mode ¶
type ListCommentsRequest_Mode int32
const ( ListCommentsRequest_Unspecified ListCommentsRequest_Mode = 0 // limit 控制顶级评论的数量,子评论全部返回。用于以树型结构展示。 ListCommentsRequest_Tree ListCommentsRequest_Mode = 1 // limit 控制全部评论的数量,不区分父子评论。用于平铺展示近期评论。 ListCommentsRequest_Flat ListCommentsRequest_Mode = 2 )
func (ListCommentsRequest_Mode) Descriptor ¶
func (ListCommentsRequest_Mode) Descriptor() protoreflect.EnumDescriptor
func (ListCommentsRequest_Mode) Enum ¶
func (x ListCommentsRequest_Mode) Enum() *ListCommentsRequest_Mode
func (ListCommentsRequest_Mode) EnumDescriptor
deprecated
func (ListCommentsRequest_Mode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListCommentsRequest_Mode.Descriptor instead.
func (ListCommentsRequest_Mode) Number ¶
func (x ListCommentsRequest_Mode) Number() protoreflect.EnumNumber
func (ListCommentsRequest_Mode) String ¶
func (x ListCommentsRequest_Mode) String() string
func (ListCommentsRequest_Mode) Type ¶
func (ListCommentsRequest_Mode) Type() protoreflect.EnumType
type ListCommentsResponse ¶
type ListCommentsResponse struct { Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` // contains filtered or unexported fields }
func (*ListCommentsResponse) Descriptor
deprecated
func (*ListCommentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentsResponse.ProtoReflect.Descriptor instead.
func (*ListCommentsResponse) GetComments ¶
func (x *ListCommentsResponse) GetComments() []*Comment
func (*ListCommentsResponse) ProtoMessage ¶
func (*ListCommentsResponse) ProtoMessage()
func (*ListCommentsResponse) ProtoReflect ¶
func (x *ListCommentsResponse) ProtoReflect() protoreflect.Message
func (*ListCommentsResponse) Reset ¶
func (x *ListCommentsResponse) Reset()
func (*ListCommentsResponse) String ¶
func (x *ListCommentsResponse) String() string
type ListLatestPostsRequest ¶
type ListLatestPostsRequest struct { }
type ListPostsRequest ¶
type ListPostsRequest struct { Fields string Limit int64 OrderBy string ContentOptions PostContentOptions Kind string // models.Kind }
type ListTagsWithCountRequest ¶
type ListTagsWithCountRequest struct { }
type ManagementClient ¶
type ManagementClient interface { GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) SaveConfig(ctx context.Context, in *SaveConfigRequest, opts ...grpc.CallOption) (*SaveConfigResponse, error) Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (Management_BackupClient, error) BackupFiles(ctx context.Context, opts ...grpc.CallOption) (Management_BackupFilesClient, error) SetRedirect(ctx context.Context, in *SetRedirectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) FileSystem(ctx context.Context, opts ...grpc.CallOption) (Management_FileSystemClient, error) }
ManagementClient is the client API for Management 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 NewManagementClient ¶
func NewManagementClient(cc grpc.ClientConnInterface) ManagementClient
type ManagementServer ¶
type ManagementServer interface { GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) SaveConfig(context.Context, *SaveConfigRequest) (*SaveConfigResponse, error) Backup(*BackupRequest, Management_BackupServer) error BackupFiles(Management_BackupFilesServer) error SetRedirect(context.Context, *SetRedirectRequest) (*emptypb.Empty, error) FileSystem(Management_FileSystemServer) error // contains filtered or unexported methods }
ManagementServer is the server API for Management service. All implementations must embed UnimplementedManagementServer for forward compatibility
type Management_BackupClient ¶
type Management_BackupClient interface { Recv() (*BackupResponse, error) grpc.ClientStream }
type Management_BackupFilesClient ¶
type Management_BackupFilesClient interface { Send(*BackupFilesRequest) error Recv() (*BackupFilesResponse, error) grpc.ClientStream }
type Management_BackupFilesServer ¶
type Management_BackupFilesServer interface { Send(*BackupFilesResponse) error Recv() (*BackupFilesRequest, error) grpc.ServerStream }
type Management_BackupServer ¶
type Management_BackupServer interface { Send(*BackupResponse) error grpc.ServerStream }
type Management_FileSystemClient ¶
type Management_FileSystemClient interface { Send(*FileSystemRequest) error Recv() (*FileSystemResponse, error) grpc.ClientStream }
type Management_FileSystemServer ¶
type Management_FileSystemServer interface { Send(*FileSystemResponse) error Recv() (*FileSystemRequest, error) grpc.ServerStream }
type Metas ¶
type Metas struct { // TODO:以下两者应该由 style.css 和 script.js 等独立文件实现。 // 置于 <head> 最后的。 Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Footer string `protobuf:"bytes,2,opt,name=footer,proto3" json:"footer,omitempty"` // 文章是否已经过时。 Outdated bool `protobuf:"varint,3,opt,name=outdated,proto3" json:"outdated,omitempty"` // 是否以宽屏模式显示内容。 Wide bool `protobuf:"varint,4,opt,name=wide,proto3" json:"wide,omitempty"` // 文章附件来源。 // 第一个参数是相对路径。 Sources map[string]*Metas_Source `` /* 156-byte string literal not displayed */ // 地理位置信息。 Geo *Metas_Geo `protobuf:"bytes,11,opt,name=geo,proto3" json:"geo,omitempty"` // 微信短链接。形如:"-UWZEu5Z74DZgRzKksTBtw"。 Weixin string `protobuf:"bytes,100,opt,name=weixin,proto3" json:"weixin,omitempty"` // contains filtered or unexported fields }
func (*Metas) Descriptor
deprecated
func (*Metas) GetOutdated ¶
func (*Metas) GetSources ¶
func (x *Metas) GetSources() map[string]*Metas_Source
func (*Metas) ProtoMessage ¶
func (*Metas) ProtoMessage()
func (*Metas) ProtoReflect ¶
func (x *Metas) ProtoReflect() protoreflect.Message
type Metas_Geo ¶
type Metas_Geo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Longitude float32 `protobuf:"fixed32,2,opt,name=longitude,proto3" json:"longitude,omitempty"` Latitude float32 `protobuf:"fixed32,3,opt,name=latitude,proto3" json:"latitude,omitempty"` // contains filtered or unexported fields }
func (*Metas_Geo) Descriptor
deprecated
func (*Metas_Geo) GetLatitude ¶
func (*Metas_Geo) GetLongitude ¶
func (*Metas_Geo) ProtoMessage ¶
func (*Metas_Geo) ProtoMessage()
func (*Metas_Geo) ProtoReflect ¶
func (x *Metas_Geo) ProtoReflect() protoreflect.Message
type Metas_Source ¶
type Metas_Source struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Time int32 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*Metas_Source) Descriptor
deprecated
func (*Metas_Source) Descriptor() ([]byte, []int)
Deprecated: Use Metas_Source.ProtoReflect.Descriptor instead.
func (*Metas_Source) GetDescription ¶
func (x *Metas_Source) GetDescription() string
func (*Metas_Source) GetName ¶
func (x *Metas_Source) GetName() string
func (*Metas_Source) GetTime ¶
func (x *Metas_Source) GetTime() int32
func (*Metas_Source) GetUrl ¶
func (x *Metas_Source) GetUrl() string
func (*Metas_Source) ProtoMessage ¶
func (*Metas_Source) ProtoMessage()
func (*Metas_Source) ProtoReflect ¶
func (x *Metas_Source) ProtoReflect() protoreflect.Message
func (*Metas_Source) Reset ¶
func (x *Metas_Source) Reset()
func (*Metas_Source) String ¶
func (x *Metas_Source) String() string
type PingRequest ¶
type PingRequest struct {
// contains filtered or unexported fields
}
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PingResponse ¶
type PingResponse struct { Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"` // contains filtered or unexported fields }
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) GetPong ¶
func (x *PingResponse) GetPong() string
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type Post ¶
type Post struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Date int32 `protobuf:"varint,2,opt,name=date,proto3" json:"date,omitempty"` Modified int32 `protobuf:"varint,3,opt,name=modified,proto3" json:"modified,omitempty"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` Slug string `protobuf:"bytes,6,opt,name=slug,proto3" json:"slug,omitempty"` Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` Category int64 `protobuf:"varint,8,opt,name=category,proto3" json:"category,omitempty"` Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` PageView int64 `protobuf:"varint,10,opt,name=page_view,json=pageView,proto3" json:"page_view,omitempty"` CommentStatus bool `protobuf:"varint,11,opt,name=comment_status,json=commentStatus,proto3" json:"comment_status,omitempty"` Comments int64 `protobuf:"varint,12,opt,name=comments,proto3" json:"comments,omitempty"` Metas *Metas `protobuf:"bytes,13,opt,name=metas,proto3" json:"metas,omitempty"` Source string `protobuf:"bytes,14,opt,name=source,proto3" json:"source,omitempty"` SourceType string `protobuf:"bytes,15,opt,name=source_type,json=sourceType,proto3" json:"source_type,omitempty"` Tags []string `protobuf:"bytes,16,rep,name=tags,proto3" json:"tags,omitempty"` // ~~文章最后被评论的时间~~。 // 更新:文章的评论最后有更新(包括:创建、更新、删除)的时间。 // 与文章的更新时间一起贡献给 304 处理函数。 // 这个值可以是空的,表示没有被评论过。(更新:也可能表示数据库升级开始后没有评论过) // TODO 考虑换个名字了。 LastCommentedAt int32 `protobuf:"varint,17,opt,name=last_commented_at,json=lastCommentedAt,proto3" json:"last_commented_at,omitempty"` // contains filtered or unexported fields }
func (*Post) Descriptor
deprecated
func (*Post) GetCategory ¶
func (*Post) GetCommentStatus ¶
func (*Post) GetComments ¶
func (*Post) GetContent ¶
func (*Post) GetLastCommentedAt ¶
func (*Post) GetModified ¶
func (*Post) GetPageView ¶
func (*Post) GetSourceType ¶
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
func (*Post) ProtoReflect ¶
func (x *Post) ProtoReflect() protoreflect.Message
type PostContentOptions ¶
type PostContentOptions struct { // 要不要内容? WithContent bool `protobuf:"varint,1,opt,name=with_content,json=withContent,proto3" json:"with_content,omitempty"` // 要不要渲染代码 (成 HTML)? RenderCodeBlocks bool `protobuf:"varint,2,opt,name=render_code_blocks,json=renderCodeBlocks,proto3" json:"render_code_blocks,omitempty"` // 文章中的相对链接改成使用绝对链接 UseAbsolutePaths bool `protobuf:"varint,3,opt,name=use_absolute_paths,json=useAbsolutePaths,proto3" json:"use_absolute_paths,omitempty"` // 要不要生成美化后的结果? PrettifyHtml bool `protobuf:"varint,4,opt,name=prettify_html,json=prettifyHtml,proto3" json:"prettify_html,omitempty"` // 新窗口打开链接? OpenLinksInNewTab PostContentOptions_OpenLinkInNewTabKind `` /* 174-byte string literal not displayed */ // contains filtered or unexported fields }
内容渲染选项。
func (*PostContentOptions) Descriptor
deprecated
func (*PostContentOptions) Descriptor() ([]byte, []int)
Deprecated: Use PostContentOptions.ProtoReflect.Descriptor instead.
func (*PostContentOptions) GetOpenLinksInNewTab ¶
func (x *PostContentOptions) GetOpenLinksInNewTab() PostContentOptions_OpenLinkInNewTabKind
func (*PostContentOptions) GetPrettifyHtml ¶
func (x *PostContentOptions) GetPrettifyHtml() bool
func (*PostContentOptions) GetRenderCodeBlocks ¶
func (x *PostContentOptions) GetRenderCodeBlocks() bool
func (*PostContentOptions) GetUseAbsolutePaths ¶
func (x *PostContentOptions) GetUseAbsolutePaths() bool
func (*PostContentOptions) GetWithContent ¶
func (x *PostContentOptions) GetWithContent() bool
func (*PostContentOptions) ProtoMessage ¶
func (*PostContentOptions) ProtoMessage()
func (*PostContentOptions) ProtoReflect ¶
func (x *PostContentOptions) ProtoReflect() protoreflect.Message
func (*PostContentOptions) Reset ¶
func (x *PostContentOptions) Reset()
func (*PostContentOptions) String ¶
func (x *PostContentOptions) String() string
type PostContentOptions_OpenLinkInNewTabKind ¶
type PostContentOptions_OpenLinkInNewTabKind int32
const ( PostContentOptions_OpenLinkInNewTabKindKeep PostContentOptions_OpenLinkInNewTabKind = 0 PostContentOptions_OpenLinkInNewTabKindNever PostContentOptions_OpenLinkInNewTabKind = 1 PostContentOptions_OpenLinkInNewTabKindAll PostContentOptions_OpenLinkInNewTabKind = 2 PostContentOptions_OpenLinkInNewTabKindExternal PostContentOptions_OpenLinkInNewTabKind = 3 )
func (PostContentOptions_OpenLinkInNewTabKind) Descriptor ¶
func (PostContentOptions_OpenLinkInNewTabKind) Descriptor() protoreflect.EnumDescriptor
func (PostContentOptions_OpenLinkInNewTabKind) EnumDescriptor
deprecated
func (PostContentOptions_OpenLinkInNewTabKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use PostContentOptions_OpenLinkInNewTabKind.Descriptor instead.
func (PostContentOptions_OpenLinkInNewTabKind) Number ¶
func (x PostContentOptions_OpenLinkInNewTabKind) Number() protoreflect.EnumNumber
func (PostContentOptions_OpenLinkInNewTabKind) String ¶
func (x PostContentOptions_OpenLinkInNewTabKind) String() string
func (PostContentOptions_OpenLinkInNewTabKind) Type ¶
func (PostContentOptions_OpenLinkInNewTabKind) Type() protoreflect.EnumType
type PreviewCommentRequest ¶
type PreviewCommentRequest struct { Markdown string `protobuf:"bytes,1,opt,name=markdown,proto3" json:"markdown,omitempty"` // 所属文章编号。不是必须的。 // 但是为了计算图片的大小,建议加上。 PostId int32 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` // contains filtered or unexported fields }
func (*PreviewCommentRequest) Descriptor
deprecated
func (*PreviewCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use PreviewCommentRequest.ProtoReflect.Descriptor instead.
func (*PreviewCommentRequest) GetMarkdown ¶
func (x *PreviewCommentRequest) GetMarkdown() string
func (*PreviewCommentRequest) GetPostId ¶
func (x *PreviewCommentRequest) GetPostId() int32
func (*PreviewCommentRequest) ProtoMessage ¶
func (*PreviewCommentRequest) ProtoMessage()
func (*PreviewCommentRequest) ProtoReflect ¶
func (x *PreviewCommentRequest) ProtoReflect() protoreflect.Message
func (*PreviewCommentRequest) Reset ¶
func (x *PreviewCommentRequest) Reset()
func (*PreviewCommentRequest) String ¶
func (x *PreviewCommentRequest) String() string
type PreviewCommentResponse ¶
type PreviewCommentResponse struct { Html string `protobuf:"bytes,1,opt,name=html,proto3" json:"html,omitempty"` // contains filtered or unexported fields }
func (*PreviewCommentResponse) Descriptor
deprecated
func (*PreviewCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use PreviewCommentResponse.ProtoReflect.Descriptor instead.
func (*PreviewCommentResponse) GetHtml ¶
func (x *PreviewCommentResponse) GetHtml() string
func (*PreviewCommentResponse) ProtoMessage ¶
func (*PreviewCommentResponse) ProtoMessage()
func (*PreviewCommentResponse) ProtoReflect ¶
func (x *PreviewCommentResponse) ProtoReflect() protoreflect.Message
func (*PreviewCommentResponse) Reset ¶
func (x *PreviewCommentResponse) Reset()
func (*PreviewCommentResponse) String ¶
func (x *PreviewCommentResponse) String() string
type PreviewPostRequest ¶
type PreviewPostRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Markdown string `protobuf:"bytes,2,opt,name=markdown,proto3" json:"markdown,omitempty"` // contains filtered or unexported fields }
func (*PreviewPostRequest) Descriptor
deprecated
func (*PreviewPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use PreviewPostRequest.ProtoReflect.Descriptor instead.
func (*PreviewPostRequest) GetId ¶
func (x *PreviewPostRequest) GetId() int32
func (*PreviewPostRequest) GetMarkdown ¶
func (x *PreviewPostRequest) GetMarkdown() string
func (*PreviewPostRequest) ProtoMessage ¶
func (*PreviewPostRequest) ProtoMessage()
func (*PreviewPostRequest) ProtoReflect ¶
func (x *PreviewPostRequest) ProtoReflect() protoreflect.Message
func (*PreviewPostRequest) Reset ¶
func (x *PreviewPostRequest) Reset()
func (*PreviewPostRequest) String ¶
func (x *PreviewPostRequest) String() string
type PreviewPostResponse ¶
type PreviewPostResponse struct { Html string `protobuf:"bytes,1,opt,name=html,proto3" json:"html,omitempty"` // contains filtered or unexported fields }
func (*PreviewPostResponse) Descriptor
deprecated
func (*PreviewPostResponse) Descriptor() ([]byte, []int)
Deprecated: Use PreviewPostResponse.ProtoReflect.Descriptor instead.
func (*PreviewPostResponse) GetHtml ¶
func (x *PreviewPostResponse) GetHtml() string
func (*PreviewPostResponse) ProtoMessage ¶
func (*PreviewPostResponse) ProtoMessage()
func (*PreviewPostResponse) ProtoReflect ¶
func (x *PreviewPostResponse) ProtoReflect() protoreflect.Message
func (*PreviewPostResponse) Reset ¶
func (x *PreviewPostResponse) Reset()
func (*PreviewPostResponse) String ¶
func (x *PreviewPostResponse) String() string
type SaveConfigRequest ¶
type SaveConfigRequest struct {
// contains filtered or unexported fields
}
func (*SaveConfigRequest) Descriptor
deprecated
func (*SaveConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveConfigRequest.ProtoReflect.Descriptor instead.
func (*SaveConfigRequest) ProtoMessage ¶
func (*SaveConfigRequest) ProtoMessage()
func (*SaveConfigRequest) ProtoReflect ¶
func (x *SaveConfigRequest) ProtoReflect() protoreflect.Message
func (*SaveConfigRequest) Reset ¶
func (x *SaveConfigRequest) Reset()
func (*SaveConfigRequest) String ¶
func (x *SaveConfigRequest) String() string
type SaveConfigResponse ¶
type SaveConfigResponse struct {
// contains filtered or unexported fields
}
func (*SaveConfigResponse) Descriptor
deprecated
func (*SaveConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use SaveConfigResponse.ProtoReflect.Descriptor instead.
func (*SaveConfigResponse) ProtoMessage ¶
func (*SaveConfigResponse) ProtoMessage()
func (*SaveConfigResponse) ProtoReflect ¶
func (x *SaveConfigResponse) ProtoReflect() protoreflect.Message
func (*SaveConfigResponse) Reset ¶
func (x *SaveConfigResponse) Reset()
func (*SaveConfigResponse) String ¶
func (x *SaveConfigResponse) String() string
type SearchClient ¶
type SearchClient interface {
SearchPosts(ctx context.Context, in *SearchPostsRequest, opts ...grpc.CallOption) (*SearchPostsResponse, error)
}
SearchClient is the client API for Search 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 NewSearchClient ¶
func NewSearchClient(cc grpc.ClientConnInterface) SearchClient
type SearchPostsRequest ¶
type SearchPostsRequest struct { Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
func (*SearchPostsRequest) Descriptor
deprecated
func (*SearchPostsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchPostsRequest.ProtoReflect.Descriptor instead.
func (*SearchPostsRequest) GetSearch ¶
func (x *SearchPostsRequest) GetSearch() string
func (*SearchPostsRequest) ProtoMessage ¶
func (*SearchPostsRequest) ProtoMessage()
func (*SearchPostsRequest) ProtoReflect ¶
func (x *SearchPostsRequest) ProtoReflect() protoreflect.Message
func (*SearchPostsRequest) Reset ¶
func (x *SearchPostsRequest) Reset()
func (*SearchPostsRequest) String ¶
func (x *SearchPostsRequest) String() string
type SearchPostsResponse ¶
type SearchPostsResponse struct { Posts []*SearchPostsResponse_Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"` Initialized bool `protobuf:"varint,2,opt,name=initialized,proto3" json:"initialized,omitempty"` // contains filtered or unexported fields }
func (*SearchPostsResponse) Descriptor
deprecated
func (*SearchPostsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchPostsResponse.ProtoReflect.Descriptor instead.
func (*SearchPostsResponse) GetInitialized ¶
func (x *SearchPostsResponse) GetInitialized() bool
func (*SearchPostsResponse) GetPosts ¶
func (x *SearchPostsResponse) GetPosts() []*SearchPostsResponse_Post
func (*SearchPostsResponse) ProtoMessage ¶
func (*SearchPostsResponse) ProtoMessage()
func (*SearchPostsResponse) ProtoReflect ¶
func (x *SearchPostsResponse) ProtoReflect() protoreflect.Message
func (*SearchPostsResponse) Reset ¶
func (x *SearchPostsResponse) Reset()
func (*SearchPostsResponse) String ¶
func (x *SearchPostsResponse) String() string
type SearchPostsResponse_Post ¶
type SearchPostsResponse_Post struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*SearchPostsResponse_Post) Descriptor
deprecated
func (*SearchPostsResponse_Post) Descriptor() ([]byte, []int)
Deprecated: Use SearchPostsResponse_Post.ProtoReflect.Descriptor instead.
func (*SearchPostsResponse_Post) GetContent ¶
func (x *SearchPostsResponse_Post) GetContent() string
func (*SearchPostsResponse_Post) GetId ¶
func (x *SearchPostsResponse_Post) GetId() int32
func (*SearchPostsResponse_Post) GetTitle ¶
func (x *SearchPostsResponse_Post) GetTitle() string
func (*SearchPostsResponse_Post) ProtoMessage ¶
func (*SearchPostsResponse_Post) ProtoMessage()
func (*SearchPostsResponse_Post) ProtoReflect ¶
func (x *SearchPostsResponse_Post) ProtoReflect() protoreflect.Message
func (*SearchPostsResponse_Post) Reset ¶
func (x *SearchPostsResponse_Post) Reset()
func (*SearchPostsResponse_Post) String ¶
func (x *SearchPostsResponse_Post) String() string
type SearchServer ¶
type SearchServer interface { SearchPosts(context.Context, *SearchPostsRequest) (*SearchPostsResponse, error) // contains filtered or unexported methods }
SearchServer is the server API for Search service. All implementations must embed UnimplementedSearchServer for forward compatibility
type SetCommentPostIDRequest ¶
type SetCommentPostIDRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PostId int64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` // contains filtered or unexported fields }
func (*SetCommentPostIDRequest) Descriptor
deprecated
func (*SetCommentPostIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetCommentPostIDRequest.ProtoReflect.Descriptor instead.
func (*SetCommentPostIDRequest) GetId ¶
func (x *SetCommentPostIDRequest) GetId() int64
func (*SetCommentPostIDRequest) GetPostId ¶
func (x *SetCommentPostIDRequest) GetPostId() int64
func (*SetCommentPostIDRequest) ProtoMessage ¶
func (*SetCommentPostIDRequest) ProtoMessage()
func (*SetCommentPostIDRequest) ProtoReflect ¶
func (x *SetCommentPostIDRequest) ProtoReflect() protoreflect.Message
func (*SetCommentPostIDRequest) Reset ¶
func (x *SetCommentPostIDRequest) Reset()
func (*SetCommentPostIDRequest) String ¶
func (x *SetCommentPostIDRequest) String() string
type SetCommentPostIDResponse ¶
type SetCommentPostIDResponse struct {
// contains filtered or unexported fields
}
func (*SetCommentPostIDResponse) Descriptor
deprecated
func (*SetCommentPostIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetCommentPostIDResponse.ProtoReflect.Descriptor instead.
func (*SetCommentPostIDResponse) ProtoMessage ¶
func (*SetCommentPostIDResponse) ProtoMessage()
func (*SetCommentPostIDResponse) ProtoReflect ¶
func (x *SetCommentPostIDResponse) ProtoReflect() protoreflect.Message
func (*SetCommentPostIDResponse) Reset ¶
func (x *SetCommentPostIDResponse) Reset()
func (*SetCommentPostIDResponse) String ¶
func (x *SetCommentPostIDResponse) String() string
type SetConfigRequest ¶
type SetConfigRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Yaml string `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"` // contains filtered or unexported fields }
func (*SetConfigRequest) Descriptor
deprecated
func (*SetConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetConfigRequest.ProtoReflect.Descriptor instead.
func (*SetConfigRequest) GetPath ¶
func (x *SetConfigRequest) GetPath() string
func (*SetConfigRequest) GetYaml ¶
func (x *SetConfigRequest) GetYaml() string
func (*SetConfigRequest) ProtoMessage ¶
func (*SetConfigRequest) ProtoMessage()
func (*SetConfigRequest) ProtoReflect ¶
func (x *SetConfigRequest) ProtoReflect() protoreflect.Message
func (*SetConfigRequest) Reset ¶
func (x *SetConfigRequest) Reset()
func (*SetConfigRequest) String ¶
func (x *SetConfigRequest) String() string
type SetConfigResponse ¶
type SetConfigResponse struct {
// contains filtered or unexported fields
}
func (*SetConfigResponse) Descriptor
deprecated
func (*SetConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetConfigResponse.ProtoReflect.Descriptor instead.
func (*SetConfigResponse) ProtoMessage ¶
func (*SetConfigResponse) ProtoMessage()
func (*SetConfigResponse) ProtoReflect ¶
func (x *SetConfigResponse) ProtoReflect() protoreflect.Message
func (*SetConfigResponse) Reset ¶
func (x *SetConfigResponse) Reset()
func (*SetConfigResponse) String ¶
func (x *SetConfigResponse) String() string
type SetPostStatusRequest ¶
type SetPostStatusRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Public bool `protobuf:"varint,2,opt,name=public,proto3" json:"public,omitempty"` // Whether to create_time and update_time Touch bool `protobuf:"varint,3,opt,name=touch,proto3" json:"touch,omitempty"` // contains filtered or unexported fields }
func (*SetPostStatusRequest) Descriptor
deprecated
func (*SetPostStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetPostStatusRequest.ProtoReflect.Descriptor instead.
func (*SetPostStatusRequest) GetId ¶
func (x *SetPostStatusRequest) GetId() int64
func (*SetPostStatusRequest) GetPublic ¶
func (x *SetPostStatusRequest) GetPublic() bool
func (*SetPostStatusRequest) GetTouch ¶
func (x *SetPostStatusRequest) GetTouch() bool
func (*SetPostStatusRequest) ProtoMessage ¶
func (*SetPostStatusRequest) ProtoMessage()
func (*SetPostStatusRequest) ProtoReflect ¶
func (x *SetPostStatusRequest) ProtoReflect() protoreflect.Message
func (*SetPostStatusRequest) Reset ¶
func (x *SetPostStatusRequest) Reset()
func (*SetPostStatusRequest) String ¶
func (x *SetPostStatusRequest) String() string
type SetPostStatusResponse ¶
type SetPostStatusResponse struct {
// contains filtered or unexported fields
}
func (*SetPostStatusResponse) Descriptor
deprecated
func (*SetPostStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetPostStatusResponse.ProtoReflect.Descriptor instead.
func (*SetPostStatusResponse) ProtoMessage ¶
func (*SetPostStatusResponse) ProtoMessage()
func (*SetPostStatusResponse) ProtoReflect ¶
func (x *SetPostStatusResponse) ProtoReflect() protoreflect.Message
func (*SetPostStatusResponse) Reset ¶
func (x *SetPostStatusResponse) Reset()
func (*SetPostStatusResponse) String ¶
func (x *SetPostStatusResponse) String() string
type SetRedirectRequest ¶
type SetRedirectRequest struct { SourcePath string `protobuf:"bytes,1,opt,name=source_path,json=sourcePath,proto3" json:"source_path,omitempty"` TargetPath string `protobuf:"bytes,2,opt,name=target_path,json=targetPath,proto3" json:"target_path,omitempty"` StatusCode int32 `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // contains filtered or unexported fields }
func (*SetRedirectRequest) Descriptor
deprecated
func (*SetRedirectRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRedirectRequest.ProtoReflect.Descriptor instead.
func (*SetRedirectRequest) GetSourcePath ¶
func (x *SetRedirectRequest) GetSourcePath() string
func (*SetRedirectRequest) GetStatusCode ¶
func (x *SetRedirectRequest) GetStatusCode() int32
func (*SetRedirectRequest) GetTargetPath ¶
func (x *SetRedirectRequest) GetTargetPath() string
func (*SetRedirectRequest) ProtoMessage ¶
func (*SetRedirectRequest) ProtoMessage()
func (*SetRedirectRequest) ProtoReflect ¶
func (x *SetRedirectRequest) ProtoReflect() protoreflect.Message
func (*SetRedirectRequest) Reset ¶
func (x *SetRedirectRequest) Reset()
func (*SetRedirectRequest) String ¶
func (x *SetRedirectRequest) String() string
type TaoBlogClient ¶
type TaoBlogClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) CreatePost(ctx context.Context, in *Post, opts ...grpc.CallOption) (*Post, error) GetPost(ctx context.Context, in *GetPostRequest, opts ...grpc.CallOption) (*Post, error) UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...grpc.CallOption) (*Post, error) DeletePost(ctx context.Context, in *DeletePostRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) SetPostStatus(ctx context.Context, in *SetPostStatusRequest, opts ...grpc.CallOption) (*SetPostStatusResponse, error) GetPostComments(ctx context.Context, in *GetPostCommentsRequest, opts ...grpc.CallOption) (*GetPostCommentsResponse, error) GetPostsByTags(ctx context.Context, in *GetPostsByTagsRequest, opts ...grpc.CallOption) (*GetPostsByTagsResponse, error) PreviewPost(ctx context.Context, in *PreviewPostRequest, opts ...grpc.CallOption) (*PreviewPostResponse, error) CreateComment(ctx context.Context, in *Comment, opts ...grpc.CallOption) (*Comment, error) GetComment(ctx context.Context, in *GetCommentRequest, opts ...grpc.CallOption) (*Comment, error) UpdateComment(ctx context.Context, in *UpdateCommentRequest, opts ...grpc.CallOption) (*Comment, error) DeleteComment(ctx context.Context, in *DeleteCommentRequest, opts ...grpc.CallOption) (*DeleteCommentResponse, error) ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) SetCommentPostID(ctx context.Context, in *SetCommentPostIDRequest, opts ...grpc.CallOption) (*SetCommentPostIDResponse, error) GetPostCommentsCount(ctx context.Context, in *GetPostCommentsCountRequest, opts ...grpc.CallOption) (*GetPostCommentsCountResponse, error) PreviewComment(ctx context.Context, in *PreviewCommentRequest, opts ...grpc.CallOption) (*PreviewCommentResponse, error) }
TaoBlogClient is the client API for TaoBlog 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 NewTaoBlogClient ¶
func NewTaoBlogClient(cc grpc.ClientConnInterface) TaoBlogClient
type TaoBlogServer ¶
type TaoBlogServer interface { Ping(context.Context, *PingRequest) (*PingResponse, error) CreatePost(context.Context, *Post) (*Post, error) GetPost(context.Context, *GetPostRequest) (*Post, error) UpdatePost(context.Context, *UpdatePostRequest) (*Post, error) DeletePost(context.Context, *DeletePostRequest) (*emptypb.Empty, error) SetPostStatus(context.Context, *SetPostStatusRequest) (*SetPostStatusResponse, error) GetPostComments(context.Context, *GetPostCommentsRequest) (*GetPostCommentsResponse, error) GetPostsByTags(context.Context, *GetPostsByTagsRequest) (*GetPostsByTagsResponse, error) PreviewPost(context.Context, *PreviewPostRequest) (*PreviewPostResponse, error) CreateComment(context.Context, *Comment) (*Comment, error) GetComment(context.Context, *GetCommentRequest) (*Comment, error) UpdateComment(context.Context, *UpdateCommentRequest) (*Comment, error) DeleteComment(context.Context, *DeleteCommentRequest) (*DeleteCommentResponse, error) ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error) SetCommentPostID(context.Context, *SetCommentPostIDRequest) (*SetCommentPostIDResponse, error) GetPostCommentsCount(context.Context, *GetPostCommentsCountRequest) (*GetPostCommentsCountResponse, error) PreviewComment(context.Context, *PreviewCommentRequest) (*PreviewCommentResponse, error) // contains filtered or unexported methods }
TaoBlogServer is the server API for TaoBlog service. All implementations must embed UnimplementedTaoBlogServer for forward compatibility
type UnimplementedManagementServer ¶
type UnimplementedManagementServer struct { }
UnimplementedManagementServer must be embedded to have forward compatible implementations.
func (UnimplementedManagementServer) Backup ¶
func (UnimplementedManagementServer) Backup(*BackupRequest, Management_BackupServer) error
func (UnimplementedManagementServer) BackupFiles ¶
func (UnimplementedManagementServer) BackupFiles(Management_BackupFilesServer) error
func (UnimplementedManagementServer) FileSystem ¶
func (UnimplementedManagementServer) FileSystem(Management_FileSystemServer) error
func (UnimplementedManagementServer) GetConfig ¶
func (UnimplementedManagementServer) GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
func (UnimplementedManagementServer) SaveConfig ¶
func (UnimplementedManagementServer) SaveConfig(context.Context, *SaveConfigRequest) (*SaveConfigResponse, error)
func (UnimplementedManagementServer) SetConfig ¶
func (UnimplementedManagementServer) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error)
func (UnimplementedManagementServer) SetRedirect ¶
func (UnimplementedManagementServer) SetRedirect(context.Context, *SetRedirectRequest) (*emptypb.Empty, error)
type UnimplementedSearchServer ¶
type UnimplementedSearchServer struct { }
UnimplementedSearchServer must be embedded to have forward compatible implementations.
func (UnimplementedSearchServer) SearchPosts ¶
func (UnimplementedSearchServer) SearchPosts(context.Context, *SearchPostsRequest) (*SearchPostsResponse, error)
type UnimplementedTaoBlogServer ¶
type UnimplementedTaoBlogServer struct { }
UnimplementedTaoBlogServer must be embedded to have forward compatible implementations.
func (UnimplementedTaoBlogServer) CreateComment ¶
func (UnimplementedTaoBlogServer) CreatePost ¶
func (UnimplementedTaoBlogServer) DeleteComment ¶
func (UnimplementedTaoBlogServer) DeleteComment(context.Context, *DeleteCommentRequest) (*DeleteCommentResponse, error)
func (UnimplementedTaoBlogServer) DeletePost ¶
func (UnimplementedTaoBlogServer) DeletePost(context.Context, *DeletePostRequest) (*emptypb.Empty, error)
func (UnimplementedTaoBlogServer) GetComment ¶
func (UnimplementedTaoBlogServer) GetComment(context.Context, *GetCommentRequest) (*Comment, error)
func (UnimplementedTaoBlogServer) GetPost ¶
func (UnimplementedTaoBlogServer) GetPost(context.Context, *GetPostRequest) (*Post, error)
func (UnimplementedTaoBlogServer) GetPostComments ¶
func (UnimplementedTaoBlogServer) GetPostComments(context.Context, *GetPostCommentsRequest) (*GetPostCommentsResponse, error)
func (UnimplementedTaoBlogServer) GetPostCommentsCount ¶
func (UnimplementedTaoBlogServer) GetPostCommentsCount(context.Context, *GetPostCommentsCountRequest) (*GetPostCommentsCountResponse, error)
func (UnimplementedTaoBlogServer) GetPostsByTags ¶
func (UnimplementedTaoBlogServer) GetPostsByTags(context.Context, *GetPostsByTagsRequest) (*GetPostsByTagsResponse, error)
func (UnimplementedTaoBlogServer) ListComments ¶
func (UnimplementedTaoBlogServer) ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error)
func (UnimplementedTaoBlogServer) Ping ¶
func (UnimplementedTaoBlogServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
func (UnimplementedTaoBlogServer) PreviewComment ¶
func (UnimplementedTaoBlogServer) PreviewComment(context.Context, *PreviewCommentRequest) (*PreviewCommentResponse, error)
func (UnimplementedTaoBlogServer) PreviewPost ¶
func (UnimplementedTaoBlogServer) PreviewPost(context.Context, *PreviewPostRequest) (*PreviewPostResponse, error)
func (UnimplementedTaoBlogServer) SetCommentPostID ¶
func (UnimplementedTaoBlogServer) SetCommentPostID(context.Context, *SetCommentPostIDRequest) (*SetCommentPostIDResponse, error)
func (UnimplementedTaoBlogServer) SetPostStatus ¶
func (UnimplementedTaoBlogServer) SetPostStatus(context.Context, *SetPostStatusRequest) (*SetPostStatusResponse, error)
func (UnimplementedTaoBlogServer) UpdateComment ¶
func (UnimplementedTaoBlogServer) UpdateComment(context.Context, *UpdateCommentRequest) (*Comment, error)
func (UnimplementedTaoBlogServer) UpdatePost ¶
func (UnimplementedTaoBlogServer) UpdatePost(context.Context, *UpdatePostRequest) (*Post, error)
type UnsafeManagementServer ¶
type UnsafeManagementServer interface {
// contains filtered or unexported methods
}
UnsafeManagementServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ManagementServer will result in compilation errors.
type UnsafeSearchServer ¶
type UnsafeSearchServer interface {
// contains filtered or unexported methods
}
UnsafeSearchServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SearchServer will result in compilation errors.
type UnsafeTaoBlogServer ¶
type UnsafeTaoBlogServer interface {
// contains filtered or unexported methods
}
UnsafeTaoBlogServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TaoBlogServer will result in compilation errors.
type UpdateCommentRequest ¶
type UpdateCommentRequest struct { Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateCommentRequest) Descriptor
deprecated
func (*UpdateCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCommentRequest.ProtoReflect.Descriptor instead.
func (*UpdateCommentRequest) GetComment ¶
func (x *UpdateCommentRequest) GetComment() *Comment
func (*UpdateCommentRequest) GetUpdateMask ¶
func (x *UpdateCommentRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateCommentRequest) ProtoMessage ¶
func (*UpdateCommentRequest) ProtoMessage()
func (*UpdateCommentRequest) ProtoReflect ¶
func (x *UpdateCommentRequest) ProtoReflect() protoreflect.Message
func (*UpdateCommentRequest) Reset ¶
func (x *UpdateCommentRequest) Reset()
func (*UpdateCommentRequest) String ¶
func (x *UpdateCommentRequest) String() string
type UpdatePostRequest ¶
type UpdatePostRequest struct { Post *Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdatePostRequest) Descriptor
deprecated
func (*UpdatePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePostRequest.ProtoReflect.Descriptor instead.
func (*UpdatePostRequest) GetPost ¶
func (x *UpdatePostRequest) GetPost() *Post
func (*UpdatePostRequest) GetUpdateMask ¶
func (x *UpdatePostRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdatePostRequest) ProtoMessage ¶
func (*UpdatePostRequest) ProtoMessage()
func (*UpdatePostRequest) ProtoReflect ¶
func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
func (*UpdatePostRequest) Reset ¶
func (x *UpdatePostRequest) Reset()
func (*UpdatePostRequest) String ¶
func (x *UpdatePostRequest) String() string