protocols

package
v1.0.1-0...-219fbf5 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package protocols is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

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

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

View Source
var File_protocols_backup_proto protoreflect.FileDescriptor
View Source
var File_protocols_comment_proto protoreflect.FileDescriptor
View Source
var File_protocols_config_proto protoreflect.FileDescriptor
View Source
var File_protocols_post_proto protoreflect.FileDescriptor
View Source
var File_protocols_search_proto protoreflect.FileDescriptor
View Source
var File_protocols_service_proto protoreflect.FileDescriptor
View Source
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)

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

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

func RegisterSearchHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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 (*BackupFilesRequest) GetSendFile

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

func (*BackupFilesRequest_ListFilesRequest) 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 (*BackupFilesRequest_SendFileRequest) ProtoMessage

func (*BackupFilesRequest_SendFileRequest) ProtoMessage()

func (*BackupFilesRequest_SendFileRequest) ProtoReflect

func (*BackupFilesRequest_SendFileRequest) Reset

func (*BackupFilesRequest_SendFileRequest) 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 (*BackupFilesResponse) GetSendFile

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 (*BackupFilesResponse_ListFilesResponse) ProtoMessage

func (*BackupFilesResponse_ListFilesResponse) ProtoMessage()

func (*BackupFilesResponse_ListFilesResponse) ProtoReflect

func (*BackupFilesResponse_ListFilesResponse) Reset

func (*BackupFilesResponse_ListFilesResponse) 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 (*BackupFilesResponse_SendFileResponse) ProtoMessage

func (*BackupFilesResponse_SendFileResponse) ProtoMessage()

func (*BackupFilesResponse_SendFileResponse) ProtoReflect

func (*BackupFilesResponse_SendFileResponse) Reset

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

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetAuthor

func (x *Comment) GetAuthor() string

func (*Comment) GetAvatar

func (x *Comment) GetAvatar() int32

func (*Comment) GetCanEdit

func (x *Comment) GetCanEdit() bool

func (*Comment) GetContent

func (x *Comment) GetContent() string

func (*Comment) GetDate

func (x *Comment) GetDate() int32

func (*Comment) GetDateFuzzy

func (x *Comment) GetDateFuzzy() string

func (*Comment) GetEmail

func (x *Comment) GetEmail() string

func (*Comment) GetGeoLocation

func (x *Comment) GetGeoLocation() string

func (*Comment) GetId

func (x *Comment) GetId() int64

func (*Comment) GetIp

func (x *Comment) GetIp() string

func (*Comment) GetIsAdmin

func (x *Comment) GetIsAdmin() bool

func (*Comment) GetModified

func (x *Comment) GetModified() int32

func (*Comment) GetParent

func (x *Comment) GetParent() int64

func (*Comment) GetPostId

func (x *Comment) GetPostId() int64

func (*Comment) GetRoot

func (x *Comment) GetRoot() int64

func (*Comment) GetSource

func (x *Comment) GetSource() string

func (*Comment) GetSourceType

func (x *Comment) GetSourceType() string

func (*Comment) GetUrl

func (x *Comment) GetUrl() string

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

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

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

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

Deprecated: Use FileSpec.ProtoReflect.Descriptor instead.

func (*FileSpec) GetMode

func (x *FileSpec) GetMode() uint32

func (*FileSpec) GetPath

func (x *FileSpec) GetPath() string

func (*FileSpec) GetSize

func (x *FileSpec) GetSize() uint32

func (*FileSpec) GetTime

func (x *FileSpec) GetTime() uint32

func (*FileSpec) ProtoMessage

func (*FileSpec) ProtoMessage()

func (*FileSpec) ProtoReflect

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

func (*FileSpec) Reset

func (x *FileSpec) Reset()

func (*FileSpec) String

func (x *FileSpec) String() string

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 (*FileSystemRequest) GetInit

func (*FileSystemRequest) GetListFiles

func (*FileSystemRequest) GetRequest

func (m *FileSystemRequest) GetRequest() isFileSystemRequest_Request

func (*FileSystemRequest) GetWriteFile

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 (*FileSystemRequest_DeleteFileRequest) ProtoMessage

func (*FileSystemRequest_DeleteFileRequest) ProtoMessage()

func (*FileSystemRequest_DeleteFileRequest) ProtoReflect

func (*FileSystemRequest_DeleteFileRequest) Reset

func (*FileSystemRequest_DeleteFileRequest) 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 (*FileSystemRequest_InitRequest) ProtoMessage

func (*FileSystemRequest_InitRequest) ProtoMessage()

func (*FileSystemRequest_InitRequest) ProtoReflect

func (*FileSystemRequest_InitRequest) Reset

func (x *FileSystemRequest_InitRequest) Reset()

func (*FileSystemRequest_InitRequest) 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 (*FileSystemRequest_InitRequest_Post) ProtoMessage

func (*FileSystemRequest_InitRequest_Post) ProtoMessage()

func (*FileSystemRequest_InitRequest_Post) ProtoReflect

func (*FileSystemRequest_InitRequest_Post) Reset

func (*FileSystemRequest_InitRequest_Post) 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 (*FileSystemRequest_ListFilesRequest) Reset

func (*FileSystemRequest_ListFilesRequest) 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 (*FileSystemRequest_WriteFileRequest) GetSpec

func (*FileSystemRequest_WriteFileRequest) ProtoMessage

func (*FileSystemRequest_WriteFileRequest) ProtoMessage()

func (*FileSystemRequest_WriteFileRequest) ProtoReflect

func (*FileSystemRequest_WriteFileRequest) Reset

func (*FileSystemRequest_WriteFileRequest) 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 (*FileSystemResponse) GetInit

func (*FileSystemResponse) GetListFiles

func (*FileSystemResponse) GetResponse

func (m *FileSystemResponse) GetResponse() isFileSystemResponse_Response

func (*FileSystemResponse) GetWriteFile

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

func (*FileSystemResponse_DeleteFileResponse) 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 (*FileSystemResponse_InitResponse) Reset

func (*FileSystemResponse_InitResponse) 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 (*FileSystemResponse_ListFilesResponse) ProtoMessage

func (*FileSystemResponse_ListFilesResponse) ProtoMessage()

func (*FileSystemResponse_ListFilesResponse) ProtoReflect

func (*FileSystemResponse_ListFilesResponse) Reset

func (*FileSystemResponse_ListFilesResponse) 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 (*FileSystemResponse_WriteFileResponse) Reset

func (*FileSystemResponse_WriteFileResponse) String

type GetAvatarRequest

type GetAvatarRequest struct {
	Ephemeral       int
	IfModifiedSince string
	IfNoneMatch     string
	SetStatus       func(statusCode int)
	SetHeader       func(name string, value string)
	W               io.Writer
}

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

func (x *GetPostCommentsCountResponse) Reset()

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

func (ListCommentsRequest_Mode) EnumDescriptor deprecated

func (ListCommentsRequest_Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListCommentsRequest_Mode.Descriptor instead.

func (ListCommentsRequest_Mode) Number

func (ListCommentsRequest_Mode) String

func (x ListCommentsRequest_Mode) String() string

func (ListCommentsRequest_Mode) Type

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"`
	// 置于 <body> 最后的。
	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) Descriptor() ([]byte, []int)

Deprecated: Use Metas.ProtoReflect.Descriptor instead.

func (*Metas) GetFooter

func (x *Metas) GetFooter() string

func (*Metas) GetGeo

func (x *Metas) GetGeo() *Metas_Geo

func (*Metas) GetHeader

func (x *Metas) GetHeader() string

func (*Metas) GetOutdated

func (x *Metas) GetOutdated() bool

func (*Metas) GetSources

func (x *Metas) GetSources() map[string]*Metas_Source

func (*Metas) GetWeixin

func (x *Metas) GetWeixin() string

func (*Metas) GetWide

func (x *Metas) GetWide() bool

func (*Metas) ProtoMessage

func (*Metas) ProtoMessage()

func (*Metas) ProtoReflect

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

func (*Metas) Reset

func (x *Metas) Reset()

func (*Metas) String

func (x *Metas) String() string

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

Deprecated: Use Metas_Geo.ProtoReflect.Descriptor instead.

func (*Metas_Geo) GetLatitude

func (x *Metas_Geo) GetLatitude() float32

func (*Metas_Geo) GetLongitude

func (x *Metas_Geo) GetLongitude() float32

func (*Metas_Geo) GetName

func (x *Metas_Geo) GetName() string

func (*Metas_Geo) ProtoMessage

func (*Metas_Geo) ProtoMessage()

func (*Metas_Geo) ProtoReflect

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

func (*Metas_Geo) Reset

func (x *Metas_Geo) Reset()

func (*Metas_Geo) String

func (x *Metas_Geo) String() string

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 Option

type Option struct {
	ID    int64  `json:"id"`
	Name  string `json:"name"`
	Value string `json:"value"`
}

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

Deprecated: Use Post.ProtoReflect.Descriptor instead.

func (*Post) GetCategory

func (x *Post) GetCategory() int64

func (*Post) GetCommentStatus

func (x *Post) GetCommentStatus() bool

func (*Post) GetComments

func (x *Post) GetComments() int64

func (*Post) GetContent

func (x *Post) GetContent() string

func (*Post) GetDate

func (x *Post) GetDate() int32

func (*Post) GetId

func (x *Post) GetId() int64

func (*Post) GetLastCommentedAt

func (x *Post) GetLastCommentedAt() int32

func (*Post) GetMetas

func (x *Post) GetMetas() *Metas

func (*Post) GetModified

func (x *Post) GetModified() int32

func (*Post) GetPageView

func (x *Post) GetPageView() int64

func (*Post) GetSlug

func (x *Post) GetSlug() string

func (*Post) GetSource

func (x *Post) GetSource() string

func (*Post) GetSourceType

func (x *Post) GetSourceType() string

func (*Post) GetStatus

func (x *Post) GetStatus() string

func (*Post) GetTags

func (x *Post) GetTags() []string

func (*Post) GetTitle

func (x *Post) GetTitle() string

func (*Post) GetType

func (x *Post) GetType() string

func (*Post) ProtoMessage

func (*Post) ProtoMessage()

func (*Post) ProtoReflect

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

func (*Post) Reset

func (x *Post) Reset()

func (*Post) String

func (x *Post) String() string

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 (*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) Enum

func (PostContentOptions_OpenLinkInNewTabKind) EnumDescriptor deprecated

func (PostContentOptions_OpenLinkInNewTabKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use PostContentOptions_OpenLinkInNewTabKind.Descriptor instead.

func (PostContentOptions_OpenLinkInNewTabKind) Number

func (PostContentOptions_OpenLinkInNewTabKind) String

func (PostContentOptions_OpenLinkInNewTabKind) Type

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 (*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

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) BackupFiles

func (UnimplementedManagementServer) FileSystem

func (UnimplementedManagementServer) GetConfig

func (UnimplementedManagementServer) SaveConfig

func (UnimplementedManagementServer) SetConfig

func (UnimplementedManagementServer) SetRedirect

type UnimplementedSearchServer

type UnimplementedSearchServer struct {
}

UnimplementedSearchServer must be embedded to have forward compatible implementations.

func (UnimplementedSearchServer) SearchPosts

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) DeletePost

func (UnimplementedTaoBlogServer) GetComment

func (UnimplementedTaoBlogServer) GetPost

func (UnimplementedTaoBlogServer) GetPostComments

func (UnimplementedTaoBlogServer) GetPostsByTags

func (UnimplementedTaoBlogServer) ListComments

func (UnimplementedTaoBlogServer) Ping

func (UnimplementedTaoBlogServer) PreviewComment

func (UnimplementedTaoBlogServer) PreviewPost

func (UnimplementedTaoBlogServer) SetCommentPostID

func (UnimplementedTaoBlogServer) SetPostStatus

func (UnimplementedTaoBlogServer) UpdateComment

func (UnimplementedTaoBlogServer) UpdatePost

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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