mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 17:44:59 +09:00
3677 lines
147 KiB
Go
3677 lines
147 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: pb/protos/service/service.proto
|
|
|
|
package service
|
|
|
|
import (
|
|
fmt "fmt"
|
|
pb "github.com/anytypeio/go-anytype-middleware/pb"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
func init() { proto.RegisterFile("pb/protos/service/service.proto", fileDescriptor_93a29dc403579097) }
|
|
|
|
var fileDescriptor_93a29dc403579097 = []byte{
|
|
// 3040 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x9b, 0x5b, 0x73, 0xdc, 0xb6,
|
|
0xf5, 0xc0, 0xb3, 0x33, 0xff, 0x49, 0xf2, 0x47, 0x12, 0xc7, 0x61, 0xeb, 0xc4, 0x96, 0x53, 0xf9,
|
|
0x12, 0xcb, 0x17, 0xd9, 0xa2, 0x64, 0xb9, 0x4d, 0xa7, 0xd7, 0x8c, 0xb4, 0xb2, 0x65, 0x4d, 0x64,
|
|
0x5b, 0xd5, 0x4a, 0x56, 0x27, 0xbd, 0x52, 0x24, 0xbc, 0xcb, 0x88, 0x4b, 0x30, 0x24, 0x76, 0xe5,
|
|
0x6d, 0xa7, 0x9d, 0xde, 0xa6, 0x33, 0x7d, 0xf3, 0x4c, 0x1f, 0xfb, 0xd4, 0xd7, 0x7e, 0x92, 0x3e,
|
|
0xe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
0x32, 0x1c, 0xcc, 0xd2, 0x50, 0x6b, 0x9d, 0xca, 0xeb, 0x3e, 0x13, 0x58, 0x5a, 0x27, 0x05, 0x90,
|
|
0xd5, 0xb7, 0xbc, 0x7c, 0x30, 0xca, 0x71, 0xe3, 0x77, 0x37, 0x5c, 0x81, 0x8b, 0x6c, 0xbf, 0xe6,
|
|
0x51, 0x11, 0x2d, 0xca, 0x83, 0x1c, 0x63, 0x63, 0x94, 0x4c, 0xe0, 0x8c, 0x12, 0x00, 0xb0, 0xb7,
|
|
0x86, 0xde, 0x65, 0x3d, 0x04, 0x4e, 0xef, 0x97, 0x3f, 0xbb, 0xf6, 0xce, 0x08, 0x8d, 0xfb, 0xe3,
|
|
0x8c, 0xce, 0x16, 0x6a, 0xff, 0x33, 0x60, 0xad, 0xb7, 0x79, 0xe5, 0xdf, 0x2f, 0x17, 0x7b, 0x5f,
|
|
0xbf, 0x5c, 0xec, 0xfd, 0xf7, 0xe5, 0x62, 0xef, 0xc5, 0xab, 0xc5, 0x37, 0xbe, 0x7e, 0xb5, 0xf8,
|
|
0xc6, 0x7f, 0x5e, 0x2d, 0xbe, 0xf1, 0xc5, 0x5b, 0xf0, 0xb3, 0xef, 0xe3, 0x37, 0xcb, 0x1f, 0x6f,
|
|
0xdf, 0xfb, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc6, 0xf6, 0x17, 0x7b, 0x1a, 0x3e, 0x00, 0x00,
|
|
}
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the gomobile package it is being compiled against.
|
|
|
|
// ClientCommandsHandler is the handler API for ClientCommands service.
|
|
var clientCommandsHandler ClientCommandsHandler
|
|
|
|
type ClientCommandsHandler interface {
|
|
ObjectAddWithObjectId(*pb.RpcObjectAddWithObjectIdRequest) *pb.RpcObjectAddWithObjectIdResponse
|
|
ObjectShareByLink(*pb.RpcObjectShareByLinkRequest) *pb.RpcObjectShareByLinkResponse
|
|
WalletCreate(*pb.RpcWalletCreateRequest) *pb.RpcWalletCreateResponse
|
|
WalletRecover(*pb.RpcWalletRecoverRequest) *pb.RpcWalletRecoverResponse
|
|
WalletConvert(*pb.RpcWalletConvertRequest) *pb.RpcWalletConvertResponse
|
|
WorkspaceCreate(*pb.RpcWorkspaceCreateRequest) *pb.RpcWorkspaceCreateResponse
|
|
WorkspaceSelect(*pb.RpcWorkspaceSelectRequest) *pb.RpcWorkspaceSelectResponse
|
|
WorkspaceGetCurrent(*pb.RpcWorkspaceGetCurrentRequest) *pb.RpcWorkspaceGetCurrentResponse
|
|
WorkspaceGetAll(*pb.RpcWorkspaceGetAllRequest) *pb.RpcWorkspaceGetAllResponse
|
|
WorkspaceSetIsHighlighted(*pb.RpcWorkspaceSetIsHighlightedRequest) *pb.RpcWorkspaceSetIsHighlightedResponse
|
|
AccountRecover(*pb.RpcAccountRecoverRequest) *pb.RpcAccountRecoverResponse
|
|
AccountCreate(*pb.RpcAccountCreateRequest) *pb.RpcAccountCreateResponse
|
|
AccountSelect(*pb.RpcAccountSelectRequest) *pb.RpcAccountSelectResponse
|
|
AccountStop(*pb.RpcAccountStopRequest) *pb.RpcAccountStopResponse
|
|
FileOffload(*pb.RpcFileOffloadRequest) *pb.RpcFileOffloadResponse
|
|
FileListOffload(*pb.RpcFileListOffloadRequest) *pb.RpcFileListOffloadResponse
|
|
VersionGet(*pb.RpcVersionGetRequest) *pb.RpcVersionGetResponse
|
|
LogSend(*pb.RpcLogSendRequest) *pb.RpcLogSendResponse
|
|
ConfigGet(*pb.RpcConfigGetRequest) *pb.RpcConfigGetResponse
|
|
Shutdown(*pb.RpcShutdownRequest) *pb.RpcShutdownResponse
|
|
ExternalDropFiles(*pb.RpcExternalDropFilesRequest) *pb.RpcExternalDropFilesResponse
|
|
ExternalDropContent(*pb.RpcExternalDropContentRequest) *pb.RpcExternalDropContentResponse
|
|
LinkPreview(*pb.RpcLinkPreviewRequest) *pb.RpcLinkPreviewResponse
|
|
UploadFile(*pb.RpcUploadFileRequest) *pb.RpcUploadFileResponse
|
|
DownloadFile(*pb.RpcDownloadFileRequest) *pb.RpcDownloadFileResponse
|
|
BlockUpload(*pb.RpcBlockUploadRequest) *pb.RpcBlockUploadResponse
|
|
BlockReplace(*pb.RpcBlockReplaceRequest) *pb.RpcBlockReplaceResponse
|
|
// BlockUpdateContent allows to update any simple block content to the new value of the same type
|
|
BlockUpdateContent(*pb.RpcBlockUpdateContentRequest) *pb.RpcBlockUpdateContentResponse
|
|
BlockOpen(*pb.RpcBlockOpenRequest) *pb.RpcBlockOpenResponse
|
|
BlockShow(*pb.RpcBlockShowRequest) *pb.RpcBlockShowResponse
|
|
BlockGetPublicWebURL(*pb.RpcBlockGetPublicWebURLRequest) *pb.RpcBlockGetPublicWebURLResponse
|
|
BlockOpenBreadcrumbs(*pb.RpcBlockOpenBreadcrumbsRequest) *pb.RpcBlockOpenBreadcrumbsResponse
|
|
BlockSetBreadcrumbs(*pb.RpcBlockSetBreadcrumbsRequest) *pb.RpcBlockSetBreadcrumbsResponse
|
|
BlockCreate(*pb.RpcBlockCreateRequest) *pb.RpcBlockCreateResponse
|
|
BlockCreatePage(*pb.RpcBlockCreatePageRequest) *pb.RpcBlockCreatePageResponse
|
|
BlockCreateSet(*pb.RpcBlockCreateSetRequest) *pb.RpcBlockCreateSetResponse
|
|
BlockUnlink(*pb.RpcBlockUnlinkRequest) *pb.RpcBlockUnlinkResponse
|
|
BlockClose(*pb.RpcBlockCloseRequest) *pb.RpcBlockCloseResponse
|
|
BlockDownload(*pb.RpcBlockDownloadRequest) *pb.RpcBlockDownloadResponse
|
|
BlockGetMarks(*pb.RpcBlockGetMarksRequest) *pb.RpcBlockGetMarksResponse
|
|
BlockUndo(*pb.RpcBlockUndoRequest) *pb.RpcBlockUndoResponse
|
|
BlockRedo(*pb.RpcBlockRedoRequest) *pb.RpcBlockRedoResponse
|
|
BlockSetFields(*pb.RpcBlockSetFieldsRequest) *pb.RpcBlockSetFieldsResponse
|
|
BlockSetRestrictions(*pb.RpcBlockSetRestrictionsRequest) *pb.RpcBlockSetRestrictionsResponse
|
|
BlockListMove(*pb.RpcBlockListMoveRequest) *pb.RpcBlockListMoveResponse
|
|
BlockListMoveToNewPage(*pb.RpcBlockListMoveToNewPageRequest) *pb.RpcBlockListMoveToNewPageResponse
|
|
BlockListConvertChildrenToPages(*pb.RpcBlockListConvertChildrenToPagesRequest) *pb.RpcBlockListConvertChildrenToPagesResponse
|
|
BlockListSetFields(*pb.RpcBlockListSetFieldsRequest) *pb.RpcBlockListSetFieldsResponse
|
|
BlockListSetTextStyle(*pb.RpcBlockListSetTextStyleRequest) *pb.RpcBlockListSetTextStyleResponse
|
|
BlockListDuplicate(*pb.RpcBlockListDuplicateRequest) *pb.RpcBlockListDuplicateResponse
|
|
BlockListSetBackgroundColor(*pb.RpcBlockListSetBackgroundColorRequest) *pb.RpcBlockListSetBackgroundColorResponse
|
|
BlockListSetAlign(*pb.RpcBlockListSetAlignRequest) *pb.RpcBlockListSetAlignResponse
|
|
BlockListSetDivStyle(*pb.RpcBlockListSetDivStyleRequest) *pb.RpcBlockListSetDivStyleResponse
|
|
BlockListSetFileStyle(*pb.RpcBlockListSetFileStyleRequest) *pb.RpcBlockListSetFileStyleResponse
|
|
BlockListTurnInto(*pb.RpcBlockListTurnIntoRequest) *pb.RpcBlockListTurnIntoResponse
|
|
BlockSetLatexText(*pb.RpcBlockSetLatexTextRequest) *pb.RpcBlockSetLatexTextResponse
|
|
BlockSetTextText(*pb.RpcBlockSetTextTextRequest) *pb.RpcBlockSetTextTextResponse
|
|
BlockSetTextColor(*pb.RpcBlockSetTextColorRequest) *pb.RpcBlockSetTextColorResponse
|
|
BlockListSetTextColor(*pb.RpcBlockListSetTextColorRequest) *pb.RpcBlockListSetTextColorResponse
|
|
BlockListSetTextMark(*pb.RpcBlockListSetTextMarkRequest) *pb.RpcBlockListSetTextMarkResponse
|
|
BlockSetTextStyle(*pb.RpcBlockSetTextStyleRequest) *pb.RpcBlockSetTextStyleResponse
|
|
BlockSetTextChecked(*pb.RpcBlockSetTextCheckedRequest) *pb.RpcBlockSetTextCheckedResponse
|
|
BlockSetTextIcon(*pb.RpcBlockSetTextIconRequest) *pb.RpcBlockSetTextIconResponse
|
|
BlockSplit(*pb.RpcBlockSplitRequest) *pb.RpcBlockSplitResponse
|
|
BlockMerge(*pb.RpcBlockMergeRequest) *pb.RpcBlockMergeResponse
|
|
BlockCopy(*pb.RpcBlockCopyRequest) *pb.RpcBlockCopyResponse
|
|
BlockPaste(*pb.RpcBlockPasteRequest) *pb.RpcBlockPasteResponse
|
|
BlockCut(*pb.RpcBlockCutRequest) *pb.RpcBlockCutResponse
|
|
BlockExport(*pb.RpcBlockExportRequest) *pb.RpcBlockExportResponse
|
|
BlockImportMarkdown(*pb.RpcBlockImportMarkdownRequest) *pb.RpcBlockImportMarkdownResponse
|
|
BlockSetFileName(*pb.RpcBlockSetFileNameRequest) *pb.RpcBlockSetFileNameResponse
|
|
BlockSetImageName(*pb.RpcBlockSetImageNameRequest) *pb.RpcBlockSetImageNameResponse
|
|
BlockSetImageWidth(*pb.RpcBlockSetImageWidthRequest) *pb.RpcBlockSetImageWidthResponse
|
|
BlockSetVideoName(*pb.RpcBlockSetVideoNameRequest) *pb.RpcBlockSetVideoNameResponse
|
|
BlockSetVideoWidth(*pb.RpcBlockSetVideoWidthRequest) *pb.RpcBlockSetVideoWidthResponse
|
|
BlockSetLinkTargetBlockId(*pb.RpcBlockSetLinkTargetBlockIdRequest) *pb.RpcBlockSetLinkTargetBlockIdResponse
|
|
BlockBookmarkFetch(*pb.RpcBlockBookmarkFetchRequest) *pb.RpcBlockBookmarkFetchResponse
|
|
BlockBookmarkCreateAndFetch(*pb.RpcBlockBookmarkCreateAndFetchRequest) *pb.RpcBlockBookmarkCreateAndFetchResponse
|
|
BlockFileCreateAndUpload(*pb.RpcBlockFileCreateAndUploadRequest) *pb.RpcBlockFileCreateAndUploadResponse
|
|
BlockRelationSetKey(*pb.RpcBlockRelationSetKeyRequest) *pb.RpcBlockRelationSetKeyResponse
|
|
BlockRelationAdd(*pb.RpcBlockRelationAddRequest) *pb.RpcBlockRelationAddResponse
|
|
// ## Dataview
|
|
// # View
|
|
BlockDataviewViewCreate(*pb.RpcBlockDataviewViewCreateRequest) *pb.RpcBlockDataviewViewCreateResponse
|
|
BlockDataviewViewDelete(*pb.RpcBlockDataviewViewDeleteRequest) *pb.RpcBlockDataviewViewDeleteResponse
|
|
BlockDataviewViewUpdate(*pb.RpcBlockDataviewViewUpdateRequest) *pb.RpcBlockDataviewViewUpdateResponse
|
|
BlockDataviewViewSetActive(*pb.RpcBlockDataviewViewSetActiveRequest) *pb.RpcBlockDataviewViewSetActiveResponse
|
|
BlockDataviewViewSetPosition(*pb.RpcBlockDataviewViewSetPositionRequest) *pb.RpcBlockDataviewViewSetPositionResponse
|
|
BlockDataviewSetSource(*pb.RpcBlockDataviewSetSourceRequest) *pb.RpcBlockDataviewSetSourceResponse
|
|
// # Relation
|
|
BlockDataviewRelationAdd(*pb.RpcBlockDataviewRelationAddRequest) *pb.RpcBlockDataviewRelationAddResponse
|
|
BlockDataviewRelationUpdate(*pb.RpcBlockDataviewRelationUpdateRequest) *pb.RpcBlockDataviewRelationUpdateResponse
|
|
BlockDataviewRelationDelete(*pb.RpcBlockDataviewRelationDeleteRequest) *pb.RpcBlockDataviewRelationDeleteResponse
|
|
BlockDataviewRelationListAvailable(*pb.RpcBlockDataviewRelationListAvailableRequest) *pb.RpcBlockDataviewRelationListAvailableResponse
|
|
// # Record
|
|
BlockDataviewRecordCreate(*pb.RpcBlockDataviewRecordCreateRequest) *pb.RpcBlockDataviewRecordCreateResponse
|
|
BlockDataviewRecordRelationOptionAdd(*pb.RpcBlockDataviewRecordRelationOptionAddRequest) *pb.RpcBlockDataviewRecordRelationOptionAddResponse
|
|
BlockDataviewRecordRelationOptionUpdate(*pb.RpcBlockDataviewRecordRelationOptionUpdateRequest) *pb.RpcBlockDataviewRecordRelationOptionUpdateResponse
|
|
BlockDataviewRecordRelationOptionDelete(*pb.RpcBlockDataviewRecordRelationOptionDeleteRequest) *pb.RpcBlockDataviewRecordRelationOptionDeleteResponse
|
|
// ## Object's relations
|
|
// set an existing object type to the object so it will appear in sets and suggests relations from this type
|
|
// TODO: rename BlockObjectTypeSet -> ObjectObjectTypeSet
|
|
BlockObjectTypeSet(*pb.RpcBlockObjectTypeSetRequest) *pb.RpcBlockObjectTypeSetResponse
|
|
NavigationListObjects(*pb.RpcNavigationListObjectsRequest) *pb.RpcNavigationListObjectsResponse
|
|
NavigationGetObjectInfoWithLinks(*pb.RpcNavigationGetObjectInfoWithLinksRequest) *pb.RpcNavigationGetObjectInfoWithLinksResponse
|
|
ObjectGraph(*pb.RpcObjectGraphRequest) *pb.RpcObjectGraphResponse
|
|
ObjectSearch(*pb.RpcObjectSearchRequest) *pb.RpcObjectSearchResponse
|
|
ObjectSearchSubscribe(*pb.RpcObjectSearchSubscribeRequest) *pb.RpcObjectSearchSubscribeResponse
|
|
ObjectIdsSubscribe(*pb.RpcObjectIdsSubscribeRequest) *pb.RpcObjectIdsSubscribeResponse
|
|
ObjectSearchUnsubscribe(*pb.RpcObjectSearchUnsubscribeRequest) *pb.RpcObjectSearchUnsubscribeResponse
|
|
ObjectRelationAdd(*pb.RpcObjectRelationAddRequest) *pb.RpcObjectRelationAddResponse
|
|
ObjectRelationUpdate(*pb.RpcObjectRelationUpdateRequest) *pb.RpcObjectRelationUpdateResponse
|
|
ObjectRelationDelete(*pb.RpcObjectRelationDeleteRequest) *pb.RpcObjectRelationDeleteResponse
|
|
ObjectRelationOptionAdd(*pb.RpcObjectRelationOptionAddRequest) *pb.RpcObjectRelationOptionAddResponse
|
|
ObjectRelationOptionUpdate(*pb.RpcObjectRelationOptionUpdateRequest) *pb.RpcObjectRelationOptionUpdateResponse
|
|
ObjectRelationOptionDelete(*pb.RpcObjectRelationOptionDeleteRequest) *pb.RpcObjectRelationOptionDeleteResponse
|
|
ObjectRelationListAvailable(*pb.RpcObjectRelationListAvailableRequest) *pb.RpcObjectRelationListAvailableResponse
|
|
ObjectSetLayout(*pb.RpcObjectSetLayoutRequest) *pb.RpcObjectSetLayoutResponse
|
|
ObjectFeaturedRelationAdd(*pb.RpcObjectFeaturedRelationAddRequest) *pb.RpcObjectFeaturedRelationAddResponse
|
|
ObjectFeaturedRelationRemove(*pb.RpcObjectFeaturedRelationRemoveRequest) *pb.RpcObjectFeaturedRelationRemoveResponse
|
|
ObjectSetIsFavorite(*pb.RpcObjectSetIsFavoriteRequest) *pb.RpcObjectSetIsFavoriteResponse
|
|
ObjectSetIsArchived(*pb.RpcObjectSetIsArchivedRequest) *pb.RpcObjectSetIsArchivedResponse
|
|
// ObjectToSet creates new set from given object and removes object
|
|
ObjectToSet(*pb.RpcObjectToSetRequest) *pb.RpcObjectToSetResponse
|
|
ObjectListDelete(*pb.RpcObjectListDeleteRequest) *pb.RpcObjectListDeleteResponse
|
|
ObjectListSetIsArchived(*pb.RpcObjectListSetIsArchivedRequest) *pb.RpcObjectListSetIsArchivedResponse
|
|
ObjectListSetIsFavorite(*pb.RpcObjectListSetIsFavoriteRequest) *pb.RpcObjectListSetIsFavoriteResponse
|
|
// TODO: rename BlockSetDetails -> ObjectSetDetails
|
|
BlockSetDetails(*pb.RpcBlockSetDetailsRequest) *pb.RpcBlockSetDetailsResponse
|
|
// PageCreate just creates the new page, without adding the link to it from some other page
|
|
// TODO: rename PageCreate -> ObjectCreate
|
|
PageCreate(*pb.RpcPageCreateRequest) *pb.RpcPageCreateResponse
|
|
// SetCreate just creates the new set, without adding the link to it from some other page
|
|
SetCreate(*pb.RpcSetCreateRequest) *pb.RpcSetCreateResponse
|
|
MetricsSetParameters(*pb.RpcMetricsSetParametersRequest) *pb.RpcMetricsSetParametersResponse
|
|
// ## ObjectType
|
|
ObjectTypeCreate(*pb.RpcObjectTypeCreateRequest) *pb.RpcObjectTypeCreateResponse
|
|
// ObjectTypeList lists all object types both bundled and created by user
|
|
ObjectTypeList(*pb.RpcObjectTypeListRequest) *pb.RpcObjectTypeListResponse
|
|
ObjectTypeRelationList(*pb.RpcObjectTypeRelationListRequest) *pb.RpcObjectTypeRelationListResponse
|
|
ObjectTypeRelationAdd(*pb.RpcObjectTypeRelationAddRequest) *pb.RpcObjectTypeRelationAddResponse
|
|
ObjectTypeRelationUpdate(*pb.RpcObjectTypeRelationUpdateRequest) *pb.RpcObjectTypeRelationUpdateResponse
|
|
ObjectTypeRelationRemove(*pb.RpcObjectTypeRelationRemoveRequest) *pb.RpcObjectTypeRelationRemoveResponse
|
|
Ping(*pb.RpcPingRequest) *pb.RpcPingResponse
|
|
ProcessCancel(*pb.RpcProcessCancelRequest) *pb.RpcProcessCancelResponse
|
|
HistoryShow(*pb.RpcHistoryShowRequest) *pb.RpcHistoryShowResponse
|
|
HistoryVersions(*pb.RpcHistoryVersionsRequest) *pb.RpcHistoryVersionsResponse
|
|
HistorySetVersion(*pb.RpcHistorySetVersionRequest) *pb.RpcHistorySetVersionResponse
|
|
Export(*pb.RpcExportRequest) *pb.RpcExportResponse
|
|
ExportWorkspace(*pb.RpcExportWorkspaceRequest) *pb.RpcExportWorkspaceResponse
|
|
ExportTemplates(*pb.RpcExportTemplatesRequest) *pb.RpcExportTemplatesResponse
|
|
ExportLocalstore(*pb.RpcExportLocalstoreRequest) *pb.RpcExportLocalstoreResponse
|
|
MakeTemplate(*pb.RpcMakeTemplateRequest) *pb.RpcMakeTemplateResponse
|
|
MakeTemplateByObjectType(*pb.RpcMakeTemplateByObjectTypeRequest) *pb.RpcMakeTemplateByObjectTypeResponse
|
|
CloneTemplate(*pb.RpcCloneTemplateRequest) *pb.RpcCloneTemplateResponse
|
|
ObjectDuplicate(*pb.RpcObjectDuplicateRequest) *pb.RpcObjectDuplicateResponse
|
|
UnsplashSearch(*pb.RpcUnsplashSearchRequest) *pb.RpcUnsplashSearchResponse
|
|
// UnsplashDownload downloads picture from unsplash by ID, put it to the IPFS and returns the hash.
|
|
// The artist info is available in the object details
|
|
UnsplashDownload(*pb.RpcUnsplashDownloadRequest) *pb.RpcUnsplashDownloadResponse
|
|
ApplyTemplate(*pb.RpcApplyTemplateRequest) *pb.RpcApplyTemplateResponse
|
|
DebugSync(*pb.RpcDebugSyncRequest) *pb.RpcDebugSyncResponse
|
|
DebugThread(*pb.RpcDebugThreadRequest) *pb.RpcDebugThreadResponse
|
|
DebugTree(*pb.RpcDebugTreeRequest) *pb.RpcDebugTreeResponse
|
|
// used only for lib-server via grpc
|
|
// Streams not supported ### ListenEvents(*pb.Empty)
|
|
}
|
|
|
|
func registerClientCommandsHandler(srv ClientCommandsHandler) {
|
|
clientCommandsHandler = srv
|
|
}
|
|
|
|
func ObjectAddWithObjectId(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectAddWithObjectIdResponse{Error: &pb.RpcObjectAddWithObjectIdResponseError{Code: pb.RpcObjectAddWithObjectIdResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectAddWithObjectIdRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectAddWithObjectIdResponse{Error: &pb.RpcObjectAddWithObjectIdResponseError{Code: pb.RpcObjectAddWithObjectIdResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectAddWithObjectId(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectShareByLink(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectShareByLinkResponse{Error: &pb.RpcObjectShareByLinkResponseError{Code: pb.RpcObjectShareByLinkResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectShareByLinkRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectShareByLinkResponse{Error: &pb.RpcObjectShareByLinkResponseError{Code: pb.RpcObjectShareByLinkResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectShareByLink(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func WalletCreate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcWalletCreateResponse{Error: &pb.RpcWalletCreateResponseError{Code: pb.RpcWalletCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcWalletCreateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcWalletCreateResponse{Error: &pb.RpcWalletCreateResponseError{Code: pb.RpcWalletCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.WalletCreate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func WalletRecover(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcWalletRecoverResponse{Error: &pb.RpcWalletRecoverResponseError{Code: pb.RpcWalletRecoverResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcWalletRecoverRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcWalletRecoverResponse{Error: &pb.RpcWalletRecoverResponseError{Code: pb.RpcWalletRecoverResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.WalletRecover(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func WalletConvert(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcWalletConvertResponse{Error: &pb.RpcWalletConvertResponseError{Code: pb.RpcWalletConvertResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcWalletConvertRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcWalletConvertResponse{Error: &pb.RpcWalletConvertResponseError{Code: pb.RpcWalletConvertResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.WalletConvert(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func WorkspaceCreate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcWorkspaceCreateResponse{Error: &pb.RpcWorkspaceCreateResponseError{Code: pb.RpcWorkspaceCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcWorkspaceCreateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcWorkspaceCreateResponse{Error: &pb.RpcWorkspaceCreateResponseError{Code: pb.RpcWorkspaceCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.WorkspaceCreate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func WorkspaceSelect(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcWorkspaceSelectResponse{Error: &pb.RpcWorkspaceSelectResponseError{Code: pb.RpcWorkspaceSelectResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcWorkspaceSelectRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcWorkspaceSelectResponse{Error: &pb.RpcWorkspaceSelectResponseError{Code: pb.RpcWorkspaceSelectResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.WorkspaceSelect(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func WorkspaceGetCurrent(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcWorkspaceGetCurrentResponse{Error: &pb.RpcWorkspaceGetCurrentResponseError{Code: pb.RpcWorkspaceGetCurrentResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcWorkspaceGetCurrentRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcWorkspaceGetCurrentResponse{Error: &pb.RpcWorkspaceGetCurrentResponseError{Code: pb.RpcWorkspaceGetCurrentResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.WorkspaceGetCurrent(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func WorkspaceGetAll(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcWorkspaceGetAllResponse{Error: &pb.RpcWorkspaceGetAllResponseError{Code: pb.RpcWorkspaceGetAllResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcWorkspaceGetAllRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcWorkspaceGetAllResponse{Error: &pb.RpcWorkspaceGetAllResponseError{Code: pb.RpcWorkspaceGetAllResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.WorkspaceGetAll(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func WorkspaceSetIsHighlighted(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcWorkspaceSetIsHighlightedResponse{Error: &pb.RpcWorkspaceSetIsHighlightedResponseError{Code: pb.RpcWorkspaceSetIsHighlightedResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcWorkspaceSetIsHighlightedRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcWorkspaceSetIsHighlightedResponse{Error: &pb.RpcWorkspaceSetIsHighlightedResponseError{Code: pb.RpcWorkspaceSetIsHighlightedResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.WorkspaceSetIsHighlighted(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func AccountRecover(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcAccountRecoverResponse{Error: &pb.RpcAccountRecoverResponseError{Code: pb.RpcAccountRecoverResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcAccountRecoverRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcAccountRecoverResponse{Error: &pb.RpcAccountRecoverResponseError{Code: pb.RpcAccountRecoverResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.AccountRecover(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func AccountCreate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcAccountCreateResponse{Error: &pb.RpcAccountCreateResponseError{Code: pb.RpcAccountCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcAccountCreateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcAccountCreateResponse{Error: &pb.RpcAccountCreateResponseError{Code: pb.RpcAccountCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.AccountCreate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func AccountSelect(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcAccountSelectResponse{Error: &pb.RpcAccountSelectResponseError{Code: pb.RpcAccountSelectResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcAccountSelectRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcAccountSelectResponse{Error: &pb.RpcAccountSelectResponseError{Code: pb.RpcAccountSelectResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.AccountSelect(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func AccountStop(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcAccountStopResponse{Error: &pb.RpcAccountStopResponseError{Code: pb.RpcAccountStopResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcAccountStopRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcAccountStopResponse{Error: &pb.RpcAccountStopResponseError{Code: pb.RpcAccountStopResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.AccountStop(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func FileOffload(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcFileOffloadResponse{Error: &pb.RpcFileOffloadResponseError{Code: pb.RpcFileOffloadResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcFileOffloadRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcFileOffloadResponse{Error: &pb.RpcFileOffloadResponseError{Code: pb.RpcFileOffloadResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.FileOffload(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func FileListOffload(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcFileListOffloadResponse{Error: &pb.RpcFileListOffloadResponseError{Code: pb.RpcFileListOffloadResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcFileListOffloadRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcFileListOffloadResponse{Error: &pb.RpcFileListOffloadResponseError{Code: pb.RpcFileListOffloadResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.FileListOffload(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func VersionGet(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcVersionGetResponse{Error: &pb.RpcVersionGetResponseError{Code: pb.RpcVersionGetResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcVersionGetRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcVersionGetResponse{Error: &pb.RpcVersionGetResponseError{Code: pb.RpcVersionGetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.VersionGet(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func LogSend(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcLogSendResponse{Error: &pb.RpcLogSendResponseError{Code: pb.RpcLogSendResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcLogSendRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcLogSendResponse{Error: &pb.RpcLogSendResponseError{Code: pb.RpcLogSendResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.LogSend(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ConfigGet(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcConfigGetResponse{Error: &pb.RpcConfigGetResponseError{Code: pb.RpcConfigGetResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcConfigGetRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcConfigGetResponse{Error: &pb.RpcConfigGetResponseError{Code: pb.RpcConfigGetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ConfigGet(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func Shutdown(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcShutdownResponse{Error: &pb.RpcShutdownResponseError{Code: pb.RpcShutdownResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcShutdownRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcShutdownResponse{Error: &pb.RpcShutdownResponseError{Code: pb.RpcShutdownResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.Shutdown(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ExternalDropFiles(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcExternalDropFilesResponse{Error: &pb.RpcExternalDropFilesResponseError{Code: pb.RpcExternalDropFilesResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcExternalDropFilesRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcExternalDropFilesResponse{Error: &pb.RpcExternalDropFilesResponseError{Code: pb.RpcExternalDropFilesResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ExternalDropFiles(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ExternalDropContent(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcExternalDropContentResponse{Error: &pb.RpcExternalDropContentResponseError{Code: pb.RpcExternalDropContentResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcExternalDropContentRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcExternalDropContentResponse{Error: &pb.RpcExternalDropContentResponseError{Code: pb.RpcExternalDropContentResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ExternalDropContent(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func LinkPreview(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcLinkPreviewResponse{Error: &pb.RpcLinkPreviewResponseError{Code: pb.RpcLinkPreviewResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcLinkPreviewRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcLinkPreviewResponse{Error: &pb.RpcLinkPreviewResponseError{Code: pb.RpcLinkPreviewResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.LinkPreview(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func UploadFile(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcUploadFileResponse{Error: &pb.RpcUploadFileResponseError{Code: pb.RpcUploadFileResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcUploadFileRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcUploadFileResponse{Error: &pb.RpcUploadFileResponseError{Code: pb.RpcUploadFileResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.UploadFile(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func DownloadFile(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcDownloadFileResponse{Error: &pb.RpcDownloadFileResponseError{Code: pb.RpcDownloadFileResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcDownloadFileRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcDownloadFileResponse{Error: &pb.RpcDownloadFileResponseError{Code: pb.RpcDownloadFileResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.DownloadFile(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockUpload(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockUploadResponse{Error: &pb.RpcBlockUploadResponseError{Code: pb.RpcBlockUploadResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockUploadRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockUploadResponse{Error: &pb.RpcBlockUploadResponseError{Code: pb.RpcBlockUploadResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockUpload(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockReplace(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockReplaceResponse{Error: &pb.RpcBlockReplaceResponseError{Code: pb.RpcBlockReplaceResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockReplaceRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockReplaceResponse{Error: &pb.RpcBlockReplaceResponseError{Code: pb.RpcBlockReplaceResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockReplace(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockUpdateContent(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockUpdateContentResponse{Error: &pb.RpcBlockUpdateContentResponseError{Code: pb.RpcBlockUpdateContentResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockUpdateContentRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockUpdateContentResponse{Error: &pb.RpcBlockUpdateContentResponseError{Code: pb.RpcBlockUpdateContentResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockUpdateContent(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockOpen(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockOpenResponse{Error: &pb.RpcBlockOpenResponseError{Code: pb.RpcBlockOpenResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockOpenRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockOpenResponse{Error: &pb.RpcBlockOpenResponseError{Code: pb.RpcBlockOpenResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockOpen(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockShow(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockShowResponse{Error: &pb.RpcBlockShowResponseError{Code: pb.RpcBlockShowResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockShowRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockShowResponse{Error: &pb.RpcBlockShowResponseError{Code: pb.RpcBlockShowResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockShow(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockGetPublicWebURL(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockGetPublicWebURLResponse{Error: &pb.RpcBlockGetPublicWebURLResponseError{Code: pb.RpcBlockGetPublicWebURLResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockGetPublicWebURLRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockGetPublicWebURLResponse{Error: &pb.RpcBlockGetPublicWebURLResponseError{Code: pb.RpcBlockGetPublicWebURLResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockGetPublicWebURL(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockOpenBreadcrumbs(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockOpenBreadcrumbsResponse{Error: &pb.RpcBlockOpenBreadcrumbsResponseError{Code: pb.RpcBlockOpenBreadcrumbsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockOpenBreadcrumbsRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockOpenBreadcrumbsResponse{Error: &pb.RpcBlockOpenBreadcrumbsResponseError{Code: pb.RpcBlockOpenBreadcrumbsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockOpenBreadcrumbs(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetBreadcrumbs(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetBreadcrumbsResponse{Error: &pb.RpcBlockSetBreadcrumbsResponseError{Code: pb.RpcBlockSetBreadcrumbsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetBreadcrumbsRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetBreadcrumbsResponse{Error: &pb.RpcBlockSetBreadcrumbsResponseError{Code: pb.RpcBlockSetBreadcrumbsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetBreadcrumbs(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockCreate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockCreateResponse{Error: &pb.RpcBlockCreateResponseError{Code: pb.RpcBlockCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockCreateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockCreateResponse{Error: &pb.RpcBlockCreateResponseError{Code: pb.RpcBlockCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockCreate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockCreatePage(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockCreatePageResponse{Error: &pb.RpcBlockCreatePageResponseError{Code: pb.RpcBlockCreatePageResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockCreatePageRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockCreatePageResponse{Error: &pb.RpcBlockCreatePageResponseError{Code: pb.RpcBlockCreatePageResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockCreatePage(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockCreateSet(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockCreateSetResponse{Error: &pb.RpcBlockCreateSetResponseError{Code: pb.RpcBlockCreateSetResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockCreateSetRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockCreateSetResponse{Error: &pb.RpcBlockCreateSetResponseError{Code: pb.RpcBlockCreateSetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockCreateSet(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockUnlink(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockUnlinkResponse{Error: &pb.RpcBlockUnlinkResponseError{Code: pb.RpcBlockUnlinkResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockUnlinkRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockUnlinkResponse{Error: &pb.RpcBlockUnlinkResponseError{Code: pb.RpcBlockUnlinkResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockUnlink(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockClose(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockCloseResponse{Error: &pb.RpcBlockCloseResponseError{Code: pb.RpcBlockCloseResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockCloseRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockCloseResponse{Error: &pb.RpcBlockCloseResponseError{Code: pb.RpcBlockCloseResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockClose(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDownload(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDownloadResponse{Error: &pb.RpcBlockDownloadResponseError{Code: pb.RpcBlockDownloadResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDownloadRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDownloadResponse{Error: &pb.RpcBlockDownloadResponseError{Code: pb.RpcBlockDownloadResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDownload(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockGetMarks(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockGetMarksResponse{Error: &pb.RpcBlockGetMarksResponseError{Code: pb.RpcBlockGetMarksResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockGetMarksRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockGetMarksResponse{Error: &pb.RpcBlockGetMarksResponseError{Code: pb.RpcBlockGetMarksResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockGetMarks(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockUndo(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockUndoResponse{Error: &pb.RpcBlockUndoResponseError{Code: pb.RpcBlockUndoResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockUndoRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockUndoResponse{Error: &pb.RpcBlockUndoResponseError{Code: pb.RpcBlockUndoResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockUndo(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockRedo(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockRedoResponse{Error: &pb.RpcBlockRedoResponseError{Code: pb.RpcBlockRedoResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockRedoRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockRedoResponse{Error: &pb.RpcBlockRedoResponseError{Code: pb.RpcBlockRedoResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockRedo(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetFields(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetFieldsResponse{Error: &pb.RpcBlockSetFieldsResponseError{Code: pb.RpcBlockSetFieldsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetFieldsRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetFieldsResponse{Error: &pb.RpcBlockSetFieldsResponseError{Code: pb.RpcBlockSetFieldsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetFields(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetRestrictions(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetRestrictionsResponse{Error: &pb.RpcBlockSetRestrictionsResponseError{Code: pb.RpcBlockSetRestrictionsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetRestrictionsRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetRestrictionsResponse{Error: &pb.RpcBlockSetRestrictionsResponseError{Code: pb.RpcBlockSetRestrictionsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetRestrictions(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListMove(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListMoveResponse{Error: &pb.RpcBlockListMoveResponseError{Code: pb.RpcBlockListMoveResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListMoveRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListMoveResponse{Error: &pb.RpcBlockListMoveResponseError{Code: pb.RpcBlockListMoveResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListMove(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListMoveToNewPage(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListMoveToNewPageResponse{Error: &pb.RpcBlockListMoveToNewPageResponseError{Code: pb.RpcBlockListMoveToNewPageResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListMoveToNewPageRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListMoveToNewPageResponse{Error: &pb.RpcBlockListMoveToNewPageResponseError{Code: pb.RpcBlockListMoveToNewPageResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListMoveToNewPage(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListConvertChildrenToPages(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListConvertChildrenToPagesResponse{Error: &pb.RpcBlockListConvertChildrenToPagesResponseError{Code: pb.RpcBlockListConvertChildrenToPagesResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListConvertChildrenToPagesRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListConvertChildrenToPagesResponse{Error: &pb.RpcBlockListConvertChildrenToPagesResponseError{Code: pb.RpcBlockListConvertChildrenToPagesResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListConvertChildrenToPages(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListSetFields(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListSetFieldsResponse{Error: &pb.RpcBlockListSetFieldsResponseError{Code: pb.RpcBlockListSetFieldsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListSetFieldsRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListSetFieldsResponse{Error: &pb.RpcBlockListSetFieldsResponseError{Code: pb.RpcBlockListSetFieldsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListSetFields(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListSetTextStyle(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListSetTextStyleResponse{Error: &pb.RpcBlockListSetTextStyleResponseError{Code: pb.RpcBlockListSetTextStyleResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListSetTextStyleRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListSetTextStyleResponse{Error: &pb.RpcBlockListSetTextStyleResponseError{Code: pb.RpcBlockListSetTextStyleResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListSetTextStyle(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListDuplicate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListDuplicateResponse{Error: &pb.RpcBlockListDuplicateResponseError{Code: pb.RpcBlockListDuplicateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListDuplicateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListDuplicateResponse{Error: &pb.RpcBlockListDuplicateResponseError{Code: pb.RpcBlockListDuplicateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListDuplicate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListSetBackgroundColor(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListSetBackgroundColorResponse{Error: &pb.RpcBlockListSetBackgroundColorResponseError{Code: pb.RpcBlockListSetBackgroundColorResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListSetBackgroundColorRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListSetBackgroundColorResponse{Error: &pb.RpcBlockListSetBackgroundColorResponseError{Code: pb.RpcBlockListSetBackgroundColorResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListSetBackgroundColor(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListSetAlign(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListSetAlignResponse{Error: &pb.RpcBlockListSetAlignResponseError{Code: pb.RpcBlockListSetAlignResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListSetAlignRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListSetAlignResponse{Error: &pb.RpcBlockListSetAlignResponseError{Code: pb.RpcBlockListSetAlignResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListSetAlign(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListSetDivStyle(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListSetDivStyleResponse{Error: &pb.RpcBlockListSetDivStyleResponseError{Code: pb.RpcBlockListSetDivStyleResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListSetDivStyleRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListSetDivStyleResponse{Error: &pb.RpcBlockListSetDivStyleResponseError{Code: pb.RpcBlockListSetDivStyleResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListSetDivStyle(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListSetFileStyle(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListSetFileStyleResponse{Error: &pb.RpcBlockListSetFileStyleResponseError{Code: pb.RpcBlockListSetFileStyleResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListSetFileStyleRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListSetFileStyleResponse{Error: &pb.RpcBlockListSetFileStyleResponseError{Code: pb.RpcBlockListSetFileStyleResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListSetFileStyle(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListTurnInto(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListTurnIntoResponse{Error: &pb.RpcBlockListTurnIntoResponseError{Code: pb.RpcBlockListTurnIntoResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListTurnIntoRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListTurnIntoResponse{Error: &pb.RpcBlockListTurnIntoResponseError{Code: pb.RpcBlockListTurnIntoResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListTurnInto(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetLatexText(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetLatexTextResponse{Error: &pb.RpcBlockSetLatexTextResponseError{Code: pb.RpcBlockSetLatexTextResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetLatexTextRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetLatexTextResponse{Error: &pb.RpcBlockSetLatexTextResponseError{Code: pb.RpcBlockSetLatexTextResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetLatexText(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetTextText(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetTextTextResponse{Error: &pb.RpcBlockSetTextTextResponseError{Code: pb.RpcBlockSetTextTextResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetTextTextRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetTextTextResponse{Error: &pb.RpcBlockSetTextTextResponseError{Code: pb.RpcBlockSetTextTextResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetTextText(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetTextColor(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetTextColorResponse{Error: &pb.RpcBlockSetTextColorResponseError{Code: pb.RpcBlockSetTextColorResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetTextColorRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetTextColorResponse{Error: &pb.RpcBlockSetTextColorResponseError{Code: pb.RpcBlockSetTextColorResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetTextColor(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListSetTextColor(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListSetTextColorResponse{Error: &pb.RpcBlockListSetTextColorResponseError{Code: pb.RpcBlockListSetTextColorResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListSetTextColorRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListSetTextColorResponse{Error: &pb.RpcBlockListSetTextColorResponseError{Code: pb.RpcBlockListSetTextColorResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListSetTextColor(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockListSetTextMark(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockListSetTextMarkResponse{Error: &pb.RpcBlockListSetTextMarkResponseError{Code: pb.RpcBlockListSetTextMarkResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockListSetTextMarkRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockListSetTextMarkResponse{Error: &pb.RpcBlockListSetTextMarkResponseError{Code: pb.RpcBlockListSetTextMarkResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockListSetTextMark(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetTextStyle(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetTextStyleResponse{Error: &pb.RpcBlockSetTextStyleResponseError{Code: pb.RpcBlockSetTextStyleResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetTextStyleRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetTextStyleResponse{Error: &pb.RpcBlockSetTextStyleResponseError{Code: pb.RpcBlockSetTextStyleResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetTextStyle(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetTextChecked(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetTextCheckedResponse{Error: &pb.RpcBlockSetTextCheckedResponseError{Code: pb.RpcBlockSetTextCheckedResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetTextCheckedRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetTextCheckedResponse{Error: &pb.RpcBlockSetTextCheckedResponseError{Code: pb.RpcBlockSetTextCheckedResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetTextChecked(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetTextIcon(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetTextIconResponse{Error: &pb.RpcBlockSetTextIconResponseError{Code: pb.RpcBlockSetTextIconResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetTextIconRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetTextIconResponse{Error: &pb.RpcBlockSetTextIconResponseError{Code: pb.RpcBlockSetTextIconResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetTextIcon(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSplit(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSplitResponse{Error: &pb.RpcBlockSplitResponseError{Code: pb.RpcBlockSplitResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSplitRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSplitResponse{Error: &pb.RpcBlockSplitResponseError{Code: pb.RpcBlockSplitResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSplit(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockMerge(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockMergeResponse{Error: &pb.RpcBlockMergeResponseError{Code: pb.RpcBlockMergeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockMergeRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockMergeResponse{Error: &pb.RpcBlockMergeResponseError{Code: pb.RpcBlockMergeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockMerge(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockCopy(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockCopyResponse{Error: &pb.RpcBlockCopyResponseError{Code: pb.RpcBlockCopyResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockCopyRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockCopyResponse{Error: &pb.RpcBlockCopyResponseError{Code: pb.RpcBlockCopyResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockCopy(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockPaste(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockPasteResponse{Error: &pb.RpcBlockPasteResponseError{Code: pb.RpcBlockPasteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockPasteRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockPasteResponse{Error: &pb.RpcBlockPasteResponseError{Code: pb.RpcBlockPasteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockPaste(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockCut(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockCutResponse{Error: &pb.RpcBlockCutResponseError{Code: pb.RpcBlockCutResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockCutRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockCutResponse{Error: &pb.RpcBlockCutResponseError{Code: pb.RpcBlockCutResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockCut(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockExport(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockExportResponse{Error: &pb.RpcBlockExportResponseError{Code: pb.RpcBlockExportResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockExportRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockExportResponse{Error: &pb.RpcBlockExportResponseError{Code: pb.RpcBlockExportResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockExport(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockImportMarkdown(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockImportMarkdownResponse{Error: &pb.RpcBlockImportMarkdownResponseError{Code: pb.RpcBlockImportMarkdownResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockImportMarkdownRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockImportMarkdownResponse{Error: &pb.RpcBlockImportMarkdownResponseError{Code: pb.RpcBlockImportMarkdownResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockImportMarkdown(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetFileName(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetFileNameResponse{Error: &pb.RpcBlockSetFileNameResponseError{Code: pb.RpcBlockSetFileNameResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetFileNameRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetFileNameResponse{Error: &pb.RpcBlockSetFileNameResponseError{Code: pb.RpcBlockSetFileNameResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetFileName(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetImageName(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetImageNameResponse{Error: &pb.RpcBlockSetImageNameResponseError{Code: pb.RpcBlockSetImageNameResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetImageNameRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetImageNameResponse{Error: &pb.RpcBlockSetImageNameResponseError{Code: pb.RpcBlockSetImageNameResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetImageName(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetImageWidth(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetImageWidthResponse{Error: &pb.RpcBlockSetImageWidthResponseError{Code: pb.RpcBlockSetImageWidthResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetImageWidthRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetImageWidthResponse{Error: &pb.RpcBlockSetImageWidthResponseError{Code: pb.RpcBlockSetImageWidthResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetImageWidth(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetVideoName(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetVideoNameResponse{Error: &pb.RpcBlockSetVideoNameResponseError{Code: pb.RpcBlockSetVideoNameResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetVideoNameRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetVideoNameResponse{Error: &pb.RpcBlockSetVideoNameResponseError{Code: pb.RpcBlockSetVideoNameResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetVideoName(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetVideoWidth(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetVideoWidthResponse{Error: &pb.RpcBlockSetVideoWidthResponseError{Code: pb.RpcBlockSetVideoWidthResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetVideoWidthRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetVideoWidthResponse{Error: &pb.RpcBlockSetVideoWidthResponseError{Code: pb.RpcBlockSetVideoWidthResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetVideoWidth(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetLinkTargetBlockId(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetLinkTargetBlockIdResponse{Error: &pb.RpcBlockSetLinkTargetBlockIdResponseError{Code: pb.RpcBlockSetLinkTargetBlockIdResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetLinkTargetBlockIdRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetLinkTargetBlockIdResponse{Error: &pb.RpcBlockSetLinkTargetBlockIdResponseError{Code: pb.RpcBlockSetLinkTargetBlockIdResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetLinkTargetBlockId(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockBookmarkFetch(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockBookmarkFetchResponse{Error: &pb.RpcBlockBookmarkFetchResponseError{Code: pb.RpcBlockBookmarkFetchResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockBookmarkFetchRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockBookmarkFetchResponse{Error: &pb.RpcBlockBookmarkFetchResponseError{Code: pb.RpcBlockBookmarkFetchResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockBookmarkFetch(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockBookmarkCreateAndFetch(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockBookmarkCreateAndFetchResponse{Error: &pb.RpcBlockBookmarkCreateAndFetchResponseError{Code: pb.RpcBlockBookmarkCreateAndFetchResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockBookmarkCreateAndFetchRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockBookmarkCreateAndFetchResponse{Error: &pb.RpcBlockBookmarkCreateAndFetchResponseError{Code: pb.RpcBlockBookmarkCreateAndFetchResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockBookmarkCreateAndFetch(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockFileCreateAndUpload(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockFileCreateAndUploadResponse{Error: &pb.RpcBlockFileCreateAndUploadResponseError{Code: pb.RpcBlockFileCreateAndUploadResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockFileCreateAndUploadRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockFileCreateAndUploadResponse{Error: &pb.RpcBlockFileCreateAndUploadResponseError{Code: pb.RpcBlockFileCreateAndUploadResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockFileCreateAndUpload(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockRelationSetKey(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockRelationSetKeyResponse{Error: &pb.RpcBlockRelationSetKeyResponseError{Code: pb.RpcBlockRelationSetKeyResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockRelationSetKeyRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockRelationSetKeyResponse{Error: &pb.RpcBlockRelationSetKeyResponseError{Code: pb.RpcBlockRelationSetKeyResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockRelationSetKey(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockRelationAdd(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockRelationAddResponse{Error: &pb.RpcBlockRelationAddResponseError{Code: pb.RpcBlockRelationAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockRelationAddRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockRelationAddResponse{Error: &pb.RpcBlockRelationAddResponseError{Code: pb.RpcBlockRelationAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockRelationAdd(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewViewCreate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewViewCreateResponse{Error: &pb.RpcBlockDataviewViewCreateResponseError{Code: pb.RpcBlockDataviewViewCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewViewCreateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewViewCreateResponse{Error: &pb.RpcBlockDataviewViewCreateResponseError{Code: pb.RpcBlockDataviewViewCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewViewCreate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewViewDelete(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewViewDeleteResponse{Error: &pb.RpcBlockDataviewViewDeleteResponseError{Code: pb.RpcBlockDataviewViewDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewViewDeleteRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewViewDeleteResponse{Error: &pb.RpcBlockDataviewViewDeleteResponseError{Code: pb.RpcBlockDataviewViewDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewViewDelete(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewViewUpdate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewViewUpdateResponse{Error: &pb.RpcBlockDataviewViewUpdateResponseError{Code: pb.RpcBlockDataviewViewUpdateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewViewUpdateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewViewUpdateResponse{Error: &pb.RpcBlockDataviewViewUpdateResponseError{Code: pb.RpcBlockDataviewViewUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewViewUpdate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewViewSetActive(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewViewSetActiveResponse{Error: &pb.RpcBlockDataviewViewSetActiveResponseError{Code: pb.RpcBlockDataviewViewSetActiveResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewViewSetActiveRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewViewSetActiveResponse{Error: &pb.RpcBlockDataviewViewSetActiveResponseError{Code: pb.RpcBlockDataviewViewSetActiveResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewViewSetActive(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewViewSetPosition(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewViewSetPositionResponse{Error: &pb.RpcBlockDataviewViewSetPositionResponseError{Code: pb.RpcBlockDataviewViewSetPositionResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewViewSetPositionRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewViewSetPositionResponse{Error: &pb.RpcBlockDataviewViewSetPositionResponseError{Code: pb.RpcBlockDataviewViewSetPositionResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewViewSetPosition(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewSetSource(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewSetSourceResponse{Error: &pb.RpcBlockDataviewSetSourceResponseError{Code: pb.RpcBlockDataviewSetSourceResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewSetSourceRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewSetSourceResponse{Error: &pb.RpcBlockDataviewSetSourceResponseError{Code: pb.RpcBlockDataviewSetSourceResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewSetSource(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewRelationAdd(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRelationAddResponse{Error: &pb.RpcBlockDataviewRelationAddResponseError{Code: pb.RpcBlockDataviewRelationAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewRelationAddRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRelationAddResponse{Error: &pb.RpcBlockDataviewRelationAddResponseError{Code: pb.RpcBlockDataviewRelationAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewRelationAdd(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewRelationUpdate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRelationUpdateResponse{Error: &pb.RpcBlockDataviewRelationUpdateResponseError{Code: pb.RpcBlockDataviewRelationUpdateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewRelationUpdateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRelationUpdateResponse{Error: &pb.RpcBlockDataviewRelationUpdateResponseError{Code: pb.RpcBlockDataviewRelationUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewRelationUpdate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewRelationDelete(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRelationDeleteResponse{Error: &pb.RpcBlockDataviewRelationDeleteResponseError{Code: pb.RpcBlockDataviewRelationDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewRelationDeleteRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRelationDeleteResponse{Error: &pb.RpcBlockDataviewRelationDeleteResponseError{Code: pb.RpcBlockDataviewRelationDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewRelationDelete(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewRelationListAvailable(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRelationListAvailableResponse{Error: &pb.RpcBlockDataviewRelationListAvailableResponseError{Code: pb.RpcBlockDataviewRelationListAvailableResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewRelationListAvailableRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRelationListAvailableResponse{Error: &pb.RpcBlockDataviewRelationListAvailableResponseError{Code: pb.RpcBlockDataviewRelationListAvailableResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewRelationListAvailable(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewRecordCreate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRecordCreateResponse{Error: &pb.RpcBlockDataviewRecordCreateResponseError{Code: pb.RpcBlockDataviewRecordCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewRecordCreateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRecordCreateResponse{Error: &pb.RpcBlockDataviewRecordCreateResponseError{Code: pb.RpcBlockDataviewRecordCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewRecordCreate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewRecordRelationOptionAdd(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRecordRelationOptionAddResponse{Error: &pb.RpcBlockDataviewRecordRelationOptionAddResponseError{Code: pb.RpcBlockDataviewRecordRelationOptionAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewRecordRelationOptionAddRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRecordRelationOptionAddResponse{Error: &pb.RpcBlockDataviewRecordRelationOptionAddResponseError{Code: pb.RpcBlockDataviewRecordRelationOptionAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewRecordRelationOptionAdd(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewRecordRelationOptionUpdate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRecordRelationOptionUpdateResponse{Error: &pb.RpcBlockDataviewRecordRelationOptionUpdateResponseError{Code: pb.RpcBlockDataviewRecordRelationOptionUpdateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewRecordRelationOptionUpdateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRecordRelationOptionUpdateResponse{Error: &pb.RpcBlockDataviewRecordRelationOptionUpdateResponseError{Code: pb.RpcBlockDataviewRecordRelationOptionUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewRecordRelationOptionUpdate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockDataviewRecordRelationOptionDelete(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRecordRelationOptionDeleteResponse{Error: &pb.RpcBlockDataviewRecordRelationOptionDeleteResponseError{Code: pb.RpcBlockDataviewRecordRelationOptionDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockDataviewRecordRelationOptionDeleteRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockDataviewRecordRelationOptionDeleteResponse{Error: &pb.RpcBlockDataviewRecordRelationOptionDeleteResponseError{Code: pb.RpcBlockDataviewRecordRelationOptionDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockDataviewRecordRelationOptionDelete(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockObjectTypeSet(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockObjectTypeSetResponse{Error: &pb.RpcBlockObjectTypeSetResponseError{Code: pb.RpcBlockObjectTypeSetResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockObjectTypeSetRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockObjectTypeSetResponse{Error: &pb.RpcBlockObjectTypeSetResponseError{Code: pb.RpcBlockObjectTypeSetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockObjectTypeSet(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func NavigationListObjects(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcNavigationListObjectsResponse{Error: &pb.RpcNavigationListObjectsResponseError{Code: pb.RpcNavigationListObjectsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcNavigationListObjectsRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcNavigationListObjectsResponse{Error: &pb.RpcNavigationListObjectsResponseError{Code: pb.RpcNavigationListObjectsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.NavigationListObjects(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func NavigationGetObjectInfoWithLinks(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcNavigationGetObjectInfoWithLinksResponse{Error: &pb.RpcNavigationGetObjectInfoWithLinksResponseError{Code: pb.RpcNavigationGetObjectInfoWithLinksResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcNavigationGetObjectInfoWithLinksRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcNavigationGetObjectInfoWithLinksResponse{Error: &pb.RpcNavigationGetObjectInfoWithLinksResponseError{Code: pb.RpcNavigationGetObjectInfoWithLinksResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.NavigationGetObjectInfoWithLinks(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectGraph(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectGraphResponse{Error: &pb.RpcObjectGraphResponseError{Code: pb.RpcObjectGraphResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectGraphRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectGraphResponse{Error: &pb.RpcObjectGraphResponseError{Code: pb.RpcObjectGraphResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectGraph(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectSearch(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectSearchResponse{Error: &pb.RpcObjectSearchResponseError{Code: pb.RpcObjectSearchResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectSearchRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectSearchResponse{Error: &pb.RpcObjectSearchResponseError{Code: pb.RpcObjectSearchResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectSearch(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectSearchSubscribe(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectSearchSubscribeResponse{Error: &pb.RpcObjectSearchSubscribeResponseError{Code: pb.RpcObjectSearchSubscribeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectSearchSubscribeRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectSearchSubscribeResponse{Error: &pb.RpcObjectSearchSubscribeResponseError{Code: pb.RpcObjectSearchSubscribeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectSearchSubscribe(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectIdsSubscribe(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectIdsSubscribeResponse{Error: &pb.RpcObjectIdsSubscribeResponseError{Code: pb.RpcObjectIdsSubscribeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectIdsSubscribeRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectIdsSubscribeResponse{Error: &pb.RpcObjectIdsSubscribeResponseError{Code: pb.RpcObjectIdsSubscribeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectIdsSubscribe(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectSearchUnsubscribe(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectSearchUnsubscribeResponse{Error: &pb.RpcObjectSearchUnsubscribeResponseError{Code: pb.RpcObjectSearchUnsubscribeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectSearchUnsubscribeRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectSearchUnsubscribeResponse{Error: &pb.RpcObjectSearchUnsubscribeResponseError{Code: pb.RpcObjectSearchUnsubscribeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectSearchUnsubscribe(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectRelationAdd(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectRelationAddResponse{Error: &pb.RpcObjectRelationAddResponseError{Code: pb.RpcObjectRelationAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectRelationAddRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectRelationAddResponse{Error: &pb.RpcObjectRelationAddResponseError{Code: pb.RpcObjectRelationAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectRelationAdd(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectRelationUpdate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectRelationUpdateResponse{Error: &pb.RpcObjectRelationUpdateResponseError{Code: pb.RpcObjectRelationUpdateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectRelationUpdateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectRelationUpdateResponse{Error: &pb.RpcObjectRelationUpdateResponseError{Code: pb.RpcObjectRelationUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectRelationUpdate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectRelationDelete(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectRelationDeleteResponse{Error: &pb.RpcObjectRelationDeleteResponseError{Code: pb.RpcObjectRelationDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectRelationDeleteRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectRelationDeleteResponse{Error: &pb.RpcObjectRelationDeleteResponseError{Code: pb.RpcObjectRelationDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectRelationDelete(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectRelationOptionAdd(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectRelationOptionAddResponse{Error: &pb.RpcObjectRelationOptionAddResponseError{Code: pb.RpcObjectRelationOptionAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectRelationOptionAddRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectRelationOptionAddResponse{Error: &pb.RpcObjectRelationOptionAddResponseError{Code: pb.RpcObjectRelationOptionAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectRelationOptionAdd(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectRelationOptionUpdate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectRelationOptionUpdateResponse{Error: &pb.RpcObjectRelationOptionUpdateResponseError{Code: pb.RpcObjectRelationOptionUpdateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectRelationOptionUpdateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectRelationOptionUpdateResponse{Error: &pb.RpcObjectRelationOptionUpdateResponseError{Code: pb.RpcObjectRelationOptionUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectRelationOptionUpdate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectRelationOptionDelete(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectRelationOptionDeleteResponse{Error: &pb.RpcObjectRelationOptionDeleteResponseError{Code: pb.RpcObjectRelationOptionDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectRelationOptionDeleteRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectRelationOptionDeleteResponse{Error: &pb.RpcObjectRelationOptionDeleteResponseError{Code: pb.RpcObjectRelationOptionDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectRelationOptionDelete(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectRelationListAvailable(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectRelationListAvailableResponse{Error: &pb.RpcObjectRelationListAvailableResponseError{Code: pb.RpcObjectRelationListAvailableResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectRelationListAvailableRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectRelationListAvailableResponse{Error: &pb.RpcObjectRelationListAvailableResponseError{Code: pb.RpcObjectRelationListAvailableResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectRelationListAvailable(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectSetLayout(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectSetLayoutResponse{Error: &pb.RpcObjectSetLayoutResponseError{Code: pb.RpcObjectSetLayoutResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectSetLayoutRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectSetLayoutResponse{Error: &pb.RpcObjectSetLayoutResponseError{Code: pb.RpcObjectSetLayoutResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectSetLayout(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectFeaturedRelationAdd(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectFeaturedRelationAddResponse{Error: &pb.RpcObjectFeaturedRelationAddResponseError{Code: pb.RpcObjectFeaturedRelationAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectFeaturedRelationAddRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectFeaturedRelationAddResponse{Error: &pb.RpcObjectFeaturedRelationAddResponseError{Code: pb.RpcObjectFeaturedRelationAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectFeaturedRelationAdd(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectFeaturedRelationRemove(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectFeaturedRelationRemoveResponse{Error: &pb.RpcObjectFeaturedRelationRemoveResponseError{Code: pb.RpcObjectFeaturedRelationRemoveResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectFeaturedRelationRemoveRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectFeaturedRelationRemoveResponse{Error: &pb.RpcObjectFeaturedRelationRemoveResponseError{Code: pb.RpcObjectFeaturedRelationRemoveResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectFeaturedRelationRemove(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectSetIsFavorite(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectSetIsFavoriteResponse{Error: &pb.RpcObjectSetIsFavoriteResponseError{Code: pb.RpcObjectSetIsFavoriteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectSetIsFavoriteRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectSetIsFavoriteResponse{Error: &pb.RpcObjectSetIsFavoriteResponseError{Code: pb.RpcObjectSetIsFavoriteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectSetIsFavorite(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectSetIsArchived(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectSetIsArchivedResponse{Error: &pb.RpcObjectSetIsArchivedResponseError{Code: pb.RpcObjectSetIsArchivedResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectSetIsArchivedRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectSetIsArchivedResponse{Error: &pb.RpcObjectSetIsArchivedResponseError{Code: pb.RpcObjectSetIsArchivedResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectSetIsArchived(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectToSet(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectToSetResponse{Error: &pb.RpcObjectToSetResponseError{Code: pb.RpcObjectToSetResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectToSetRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectToSetResponse{Error: &pb.RpcObjectToSetResponseError{Code: pb.RpcObjectToSetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectToSet(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectListDelete(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectListDeleteResponse{Error: &pb.RpcObjectListDeleteResponseError{Code: pb.RpcObjectListDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectListDeleteRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectListDeleteResponse{Error: &pb.RpcObjectListDeleteResponseError{Code: pb.RpcObjectListDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectListDelete(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectListSetIsArchived(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectListSetIsArchivedResponse{Error: &pb.RpcObjectListSetIsArchivedResponseError{Code: pb.RpcObjectListSetIsArchivedResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectListSetIsArchivedRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectListSetIsArchivedResponse{Error: &pb.RpcObjectListSetIsArchivedResponseError{Code: pb.RpcObjectListSetIsArchivedResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectListSetIsArchived(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectListSetIsFavorite(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectListSetIsFavoriteResponse{Error: &pb.RpcObjectListSetIsFavoriteResponseError{Code: pb.RpcObjectListSetIsFavoriteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectListSetIsFavoriteRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectListSetIsFavoriteResponse{Error: &pb.RpcObjectListSetIsFavoriteResponseError{Code: pb.RpcObjectListSetIsFavoriteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectListSetIsFavorite(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func BlockSetDetails(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcBlockSetDetailsResponse{Error: &pb.RpcBlockSetDetailsResponseError{Code: pb.RpcBlockSetDetailsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcBlockSetDetailsRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcBlockSetDetailsResponse{Error: &pb.RpcBlockSetDetailsResponseError{Code: pb.RpcBlockSetDetailsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.BlockSetDetails(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func PageCreate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcPageCreateResponse{Error: &pb.RpcPageCreateResponseError{Code: pb.RpcPageCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcPageCreateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcPageCreateResponse{Error: &pb.RpcPageCreateResponseError{Code: pb.RpcPageCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.PageCreate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func SetCreate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcSetCreateResponse{Error: &pb.RpcSetCreateResponseError{Code: pb.RpcSetCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcSetCreateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcSetCreateResponse{Error: &pb.RpcSetCreateResponseError{Code: pb.RpcSetCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.SetCreate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func MetricsSetParameters(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcMetricsSetParametersResponse{Error: &pb.RpcMetricsSetParametersResponseError{Code: pb.RpcMetricsSetParametersResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcMetricsSetParametersRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcMetricsSetParametersResponse{Error: &pb.RpcMetricsSetParametersResponseError{Code: pb.RpcMetricsSetParametersResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.MetricsSetParameters(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectTypeCreate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectTypeCreateResponse{Error: &pb.RpcObjectTypeCreateResponseError{Code: pb.RpcObjectTypeCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectTypeCreateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectTypeCreateResponse{Error: &pb.RpcObjectTypeCreateResponseError{Code: pb.RpcObjectTypeCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectTypeCreate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectTypeList(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectTypeListResponse{Error: &pb.RpcObjectTypeListResponseError{Code: pb.RpcObjectTypeListResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectTypeListRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectTypeListResponse{Error: &pb.RpcObjectTypeListResponseError{Code: pb.RpcObjectTypeListResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectTypeList(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectTypeRelationList(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectTypeRelationListResponse{Error: &pb.RpcObjectTypeRelationListResponseError{Code: pb.RpcObjectTypeRelationListResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectTypeRelationListRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectTypeRelationListResponse{Error: &pb.RpcObjectTypeRelationListResponseError{Code: pb.RpcObjectTypeRelationListResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectTypeRelationList(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectTypeRelationAdd(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectTypeRelationAddResponse{Error: &pb.RpcObjectTypeRelationAddResponseError{Code: pb.RpcObjectTypeRelationAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectTypeRelationAddRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectTypeRelationAddResponse{Error: &pb.RpcObjectTypeRelationAddResponseError{Code: pb.RpcObjectTypeRelationAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectTypeRelationAdd(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectTypeRelationUpdate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectTypeRelationUpdateResponse{Error: &pb.RpcObjectTypeRelationUpdateResponseError{Code: pb.RpcObjectTypeRelationUpdateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectTypeRelationUpdateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectTypeRelationUpdateResponse{Error: &pb.RpcObjectTypeRelationUpdateResponseError{Code: pb.RpcObjectTypeRelationUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectTypeRelationUpdate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectTypeRelationRemove(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectTypeRelationRemoveResponse{Error: &pb.RpcObjectTypeRelationRemoveResponseError{Code: pb.RpcObjectTypeRelationRemoveResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectTypeRelationRemoveRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectTypeRelationRemoveResponse{Error: &pb.RpcObjectTypeRelationRemoveResponseError{Code: pb.RpcObjectTypeRelationRemoveResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectTypeRelationRemove(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func Ping(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcPingResponse{Error: &pb.RpcPingResponseError{Code: pb.RpcPingResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcPingRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcPingResponse{Error: &pb.RpcPingResponseError{Code: pb.RpcPingResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.Ping(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ProcessCancel(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcProcessCancelResponse{Error: &pb.RpcProcessCancelResponseError{Code: pb.RpcProcessCancelResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcProcessCancelRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcProcessCancelResponse{Error: &pb.RpcProcessCancelResponseError{Code: pb.RpcProcessCancelResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ProcessCancel(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func HistoryShow(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcHistoryShowResponse{Error: &pb.RpcHistoryShowResponseError{Code: pb.RpcHistoryShowResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcHistoryShowRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcHistoryShowResponse{Error: &pb.RpcHistoryShowResponseError{Code: pb.RpcHistoryShowResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.HistoryShow(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func HistoryVersions(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcHistoryVersionsResponse{Error: &pb.RpcHistoryVersionsResponseError{Code: pb.RpcHistoryVersionsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcHistoryVersionsRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcHistoryVersionsResponse{Error: &pb.RpcHistoryVersionsResponseError{Code: pb.RpcHistoryVersionsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.HistoryVersions(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func HistorySetVersion(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcHistorySetVersionResponse{Error: &pb.RpcHistorySetVersionResponseError{Code: pb.RpcHistorySetVersionResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcHistorySetVersionRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcHistorySetVersionResponse{Error: &pb.RpcHistorySetVersionResponseError{Code: pb.RpcHistorySetVersionResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.HistorySetVersion(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func Export(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcExportResponse{Error: &pb.RpcExportResponseError{Code: pb.RpcExportResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcExportRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcExportResponse{Error: &pb.RpcExportResponseError{Code: pb.RpcExportResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.Export(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ExportWorkspace(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcExportWorkspaceResponse{Error: &pb.RpcExportWorkspaceResponseError{Code: pb.RpcExportWorkspaceResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcExportWorkspaceRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcExportWorkspaceResponse{Error: &pb.RpcExportWorkspaceResponseError{Code: pb.RpcExportWorkspaceResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ExportWorkspace(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ExportTemplates(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcExportTemplatesResponse{Error: &pb.RpcExportTemplatesResponseError{Code: pb.RpcExportTemplatesResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcExportTemplatesRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcExportTemplatesResponse{Error: &pb.RpcExportTemplatesResponseError{Code: pb.RpcExportTemplatesResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ExportTemplates(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ExportLocalstore(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcExportLocalstoreResponse{Error: &pb.RpcExportLocalstoreResponseError{Code: pb.RpcExportLocalstoreResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcExportLocalstoreRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcExportLocalstoreResponse{Error: &pb.RpcExportLocalstoreResponseError{Code: pb.RpcExportLocalstoreResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ExportLocalstore(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func MakeTemplate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcMakeTemplateResponse{Error: &pb.RpcMakeTemplateResponseError{Code: pb.RpcMakeTemplateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcMakeTemplateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcMakeTemplateResponse{Error: &pb.RpcMakeTemplateResponseError{Code: pb.RpcMakeTemplateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.MakeTemplate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func MakeTemplateByObjectType(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcMakeTemplateByObjectTypeResponse{Error: &pb.RpcMakeTemplateByObjectTypeResponseError{Code: pb.RpcMakeTemplateByObjectTypeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcMakeTemplateByObjectTypeRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcMakeTemplateByObjectTypeResponse{Error: &pb.RpcMakeTemplateByObjectTypeResponseError{Code: pb.RpcMakeTemplateByObjectTypeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.MakeTemplateByObjectType(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func CloneTemplate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcCloneTemplateResponse{Error: &pb.RpcCloneTemplateResponseError{Code: pb.RpcCloneTemplateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcCloneTemplateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcCloneTemplateResponse{Error: &pb.RpcCloneTemplateResponseError{Code: pb.RpcCloneTemplateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.CloneTemplate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ObjectDuplicate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcObjectDuplicateResponse{Error: &pb.RpcObjectDuplicateResponseError{Code: pb.RpcObjectDuplicateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcObjectDuplicateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcObjectDuplicateResponse{Error: &pb.RpcObjectDuplicateResponseError{Code: pb.RpcObjectDuplicateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ObjectDuplicate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func UnsplashSearch(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcUnsplashSearchResponse{Error: &pb.RpcUnsplashSearchResponseError{Code: pb.RpcUnsplashSearchResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcUnsplashSearchRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcUnsplashSearchResponse{Error: &pb.RpcUnsplashSearchResponseError{Code: pb.RpcUnsplashSearchResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.UnsplashSearch(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func UnsplashDownload(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcUnsplashDownloadResponse{Error: &pb.RpcUnsplashDownloadResponseError{Code: pb.RpcUnsplashDownloadResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcUnsplashDownloadRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcUnsplashDownloadResponse{Error: &pb.RpcUnsplashDownloadResponseError{Code: pb.RpcUnsplashDownloadResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.UnsplashDownload(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func ApplyTemplate(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcApplyTemplateResponse{Error: &pb.RpcApplyTemplateResponseError{Code: pb.RpcApplyTemplateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcApplyTemplateRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcApplyTemplateResponse{Error: &pb.RpcApplyTemplateResponseError{Code: pb.RpcApplyTemplateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.ApplyTemplate(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func DebugSync(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcDebugSyncResponse{Error: &pb.RpcDebugSyncResponseError{Code: pb.RpcDebugSyncResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcDebugSyncRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcDebugSyncResponse{Error: &pb.RpcDebugSyncResponseError{Code: pb.RpcDebugSyncResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.DebugSync(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func DebugThread(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcDebugThreadResponse{Error: &pb.RpcDebugThreadResponseError{Code: pb.RpcDebugThreadResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcDebugThreadRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcDebugThreadResponse{Error: &pb.RpcDebugThreadResponseError{Code: pb.RpcDebugThreadResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.DebugThread(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
func DebugTree(b []byte) (resp []byte) {
|
|
defer func() {
|
|
if PanicHandler != nil {
|
|
if r := recover(); r != nil {
|
|
resp, _ = (&pb.RpcDebugTreeResponse{Error: &pb.RpcDebugTreeResponseError{Code: pb.RpcDebugTreeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal()
|
|
PanicHandler(r)
|
|
}
|
|
}
|
|
}()
|
|
|
|
in := new(pb.RpcDebugTreeRequest)
|
|
if err := in.Unmarshal(b); err != nil {
|
|
resp, _ = (&pb.RpcDebugTreeResponse{Error: &pb.RpcDebugTreeResponseError{Code: pb.RpcDebugTreeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal()
|
|
return resp
|
|
}
|
|
|
|
resp, _ = clientCommandsHandler.DebugTree(in).Marshal()
|
|
return resp
|
|
}
|
|
|
|
var PanicHandler func(v interface{})
|
|
|
|
func CommandAsync(cmd string, data []byte, callback func(data []byte)) {
|
|
go func() {
|
|
var cd []byte
|
|
switch cmd {
|
|
case "ObjectAddWithObjectId":
|
|
cd = ObjectAddWithObjectId(data)
|
|
case "ObjectShareByLink":
|
|
cd = ObjectShareByLink(data)
|
|
case "WalletCreate":
|
|
cd = WalletCreate(data)
|
|
case "WalletRecover":
|
|
cd = WalletRecover(data)
|
|
case "WalletConvert":
|
|
cd = WalletConvert(data)
|
|
case "WorkspaceCreate":
|
|
cd = WorkspaceCreate(data)
|
|
case "WorkspaceSelect":
|
|
cd = WorkspaceSelect(data)
|
|
case "WorkspaceGetCurrent":
|
|
cd = WorkspaceGetCurrent(data)
|
|
case "WorkspaceGetAll":
|
|
cd = WorkspaceGetAll(data)
|
|
case "WorkspaceSetIsHighlighted":
|
|
cd = WorkspaceSetIsHighlighted(data)
|
|
case "AccountRecover":
|
|
cd = AccountRecover(data)
|
|
case "AccountCreate":
|
|
cd = AccountCreate(data)
|
|
case "AccountSelect":
|
|
cd = AccountSelect(data)
|
|
case "AccountStop":
|
|
cd = AccountStop(data)
|
|
case "FileOffload":
|
|
cd = FileOffload(data)
|
|
case "FileListOffload":
|
|
cd = FileListOffload(data)
|
|
case "VersionGet":
|
|
cd = VersionGet(data)
|
|
case "LogSend":
|
|
cd = LogSend(data)
|
|
case "ConfigGet":
|
|
cd = ConfigGet(data)
|
|
case "Shutdown":
|
|
cd = Shutdown(data)
|
|
case "ExternalDropFiles":
|
|
cd = ExternalDropFiles(data)
|
|
case "ExternalDropContent":
|
|
cd = ExternalDropContent(data)
|
|
case "LinkPreview":
|
|
cd = LinkPreview(data)
|
|
case "UploadFile":
|
|
cd = UploadFile(data)
|
|
case "DownloadFile":
|
|
cd = DownloadFile(data)
|
|
case "BlockUpload":
|
|
cd = BlockUpload(data)
|
|
case "BlockReplace":
|
|
cd = BlockReplace(data)
|
|
case "BlockUpdateContent":
|
|
cd = BlockUpdateContent(data)
|
|
case "BlockOpen":
|
|
cd = BlockOpen(data)
|
|
case "BlockShow":
|
|
cd = BlockShow(data)
|
|
case "BlockGetPublicWebURL":
|
|
cd = BlockGetPublicWebURL(data)
|
|
case "BlockOpenBreadcrumbs":
|
|
cd = BlockOpenBreadcrumbs(data)
|
|
case "BlockSetBreadcrumbs":
|
|
cd = BlockSetBreadcrumbs(data)
|
|
case "BlockCreate":
|
|
cd = BlockCreate(data)
|
|
case "BlockCreatePage":
|
|
cd = BlockCreatePage(data)
|
|
case "BlockCreateSet":
|
|
cd = BlockCreateSet(data)
|
|
case "BlockUnlink":
|
|
cd = BlockUnlink(data)
|
|
case "BlockClose":
|
|
cd = BlockClose(data)
|
|
case "BlockDownload":
|
|
cd = BlockDownload(data)
|
|
case "BlockGetMarks":
|
|
cd = BlockGetMarks(data)
|
|
case "BlockUndo":
|
|
cd = BlockUndo(data)
|
|
case "BlockRedo":
|
|
cd = BlockRedo(data)
|
|
case "BlockSetFields":
|
|
cd = BlockSetFields(data)
|
|
case "BlockSetRestrictions":
|
|
cd = BlockSetRestrictions(data)
|
|
case "BlockListMove":
|
|
cd = BlockListMove(data)
|
|
case "BlockListMoveToNewPage":
|
|
cd = BlockListMoveToNewPage(data)
|
|
case "BlockListConvertChildrenToPages":
|
|
cd = BlockListConvertChildrenToPages(data)
|
|
case "BlockListSetFields":
|
|
cd = BlockListSetFields(data)
|
|
case "BlockListSetTextStyle":
|
|
cd = BlockListSetTextStyle(data)
|
|
case "BlockListDuplicate":
|
|
cd = BlockListDuplicate(data)
|
|
case "BlockListSetBackgroundColor":
|
|
cd = BlockListSetBackgroundColor(data)
|
|
case "BlockListSetAlign":
|
|
cd = BlockListSetAlign(data)
|
|
case "BlockListSetDivStyle":
|
|
cd = BlockListSetDivStyle(data)
|
|
case "BlockListSetFileStyle":
|
|
cd = BlockListSetFileStyle(data)
|
|
case "BlockListTurnInto":
|
|
cd = BlockListTurnInto(data)
|
|
case "BlockSetLatexText":
|
|
cd = BlockSetLatexText(data)
|
|
case "BlockSetTextText":
|
|
cd = BlockSetTextText(data)
|
|
case "BlockSetTextColor":
|
|
cd = BlockSetTextColor(data)
|
|
case "BlockListSetTextColor":
|
|
cd = BlockListSetTextColor(data)
|
|
case "BlockListSetTextMark":
|
|
cd = BlockListSetTextMark(data)
|
|
case "BlockSetTextStyle":
|
|
cd = BlockSetTextStyle(data)
|
|
case "BlockSetTextChecked":
|
|
cd = BlockSetTextChecked(data)
|
|
case "BlockSetTextIcon":
|
|
cd = BlockSetTextIcon(data)
|
|
case "BlockSplit":
|
|
cd = BlockSplit(data)
|
|
case "BlockMerge":
|
|
cd = BlockMerge(data)
|
|
case "BlockCopy":
|
|
cd = BlockCopy(data)
|
|
case "BlockPaste":
|
|
cd = BlockPaste(data)
|
|
case "BlockCut":
|
|
cd = BlockCut(data)
|
|
case "BlockExport":
|
|
cd = BlockExport(data)
|
|
case "BlockImportMarkdown":
|
|
cd = BlockImportMarkdown(data)
|
|
case "BlockSetFileName":
|
|
cd = BlockSetFileName(data)
|
|
case "BlockSetImageName":
|
|
cd = BlockSetImageName(data)
|
|
case "BlockSetImageWidth":
|
|
cd = BlockSetImageWidth(data)
|
|
case "BlockSetVideoName":
|
|
cd = BlockSetVideoName(data)
|
|
case "BlockSetVideoWidth":
|
|
cd = BlockSetVideoWidth(data)
|
|
case "BlockSetLinkTargetBlockId":
|
|
cd = BlockSetLinkTargetBlockId(data)
|
|
case "BlockBookmarkFetch":
|
|
cd = BlockBookmarkFetch(data)
|
|
case "BlockBookmarkCreateAndFetch":
|
|
cd = BlockBookmarkCreateAndFetch(data)
|
|
case "BlockFileCreateAndUpload":
|
|
cd = BlockFileCreateAndUpload(data)
|
|
case "BlockRelationSetKey":
|
|
cd = BlockRelationSetKey(data)
|
|
case "BlockRelationAdd":
|
|
cd = BlockRelationAdd(data)
|
|
case "BlockDataviewViewCreate":
|
|
cd = BlockDataviewViewCreate(data)
|
|
case "BlockDataviewViewDelete":
|
|
cd = BlockDataviewViewDelete(data)
|
|
case "BlockDataviewViewUpdate":
|
|
cd = BlockDataviewViewUpdate(data)
|
|
case "BlockDataviewViewSetActive":
|
|
cd = BlockDataviewViewSetActive(data)
|
|
case "BlockDataviewViewSetPosition":
|
|
cd = BlockDataviewViewSetPosition(data)
|
|
case "BlockDataviewSetSource":
|
|
cd = BlockDataviewSetSource(data)
|
|
case "BlockDataviewRelationAdd":
|
|
cd = BlockDataviewRelationAdd(data)
|
|
case "BlockDataviewRelationUpdate":
|
|
cd = BlockDataviewRelationUpdate(data)
|
|
case "BlockDataviewRelationDelete":
|
|
cd = BlockDataviewRelationDelete(data)
|
|
case "BlockDataviewRelationListAvailable":
|
|
cd = BlockDataviewRelationListAvailable(data)
|
|
case "BlockDataviewRecordCreate":
|
|
cd = BlockDataviewRecordCreate(data)
|
|
case "BlockDataviewRecordRelationOptionAdd":
|
|
cd = BlockDataviewRecordRelationOptionAdd(data)
|
|
case "BlockDataviewRecordRelationOptionUpdate":
|
|
cd = BlockDataviewRecordRelationOptionUpdate(data)
|
|
case "BlockDataviewRecordRelationOptionDelete":
|
|
cd = BlockDataviewRecordRelationOptionDelete(data)
|
|
case "BlockObjectTypeSet":
|
|
cd = BlockObjectTypeSet(data)
|
|
case "NavigationListObjects":
|
|
cd = NavigationListObjects(data)
|
|
case "NavigationGetObjectInfoWithLinks":
|
|
cd = NavigationGetObjectInfoWithLinks(data)
|
|
case "ObjectGraph":
|
|
cd = ObjectGraph(data)
|
|
case "ObjectSearch":
|
|
cd = ObjectSearch(data)
|
|
case "ObjectSearchSubscribe":
|
|
cd = ObjectSearchSubscribe(data)
|
|
case "ObjectIdsSubscribe":
|
|
cd = ObjectIdsSubscribe(data)
|
|
case "ObjectSearchUnsubscribe":
|
|
cd = ObjectSearchUnsubscribe(data)
|
|
case "ObjectRelationAdd":
|
|
cd = ObjectRelationAdd(data)
|
|
case "ObjectRelationUpdate":
|
|
cd = ObjectRelationUpdate(data)
|
|
case "ObjectRelationDelete":
|
|
cd = ObjectRelationDelete(data)
|
|
case "ObjectRelationOptionAdd":
|
|
cd = ObjectRelationOptionAdd(data)
|
|
case "ObjectRelationOptionUpdate":
|
|
cd = ObjectRelationOptionUpdate(data)
|
|
case "ObjectRelationOptionDelete":
|
|
cd = ObjectRelationOptionDelete(data)
|
|
case "ObjectRelationListAvailable":
|
|
cd = ObjectRelationListAvailable(data)
|
|
case "ObjectSetLayout":
|
|
cd = ObjectSetLayout(data)
|
|
case "ObjectFeaturedRelationAdd":
|
|
cd = ObjectFeaturedRelationAdd(data)
|
|
case "ObjectFeaturedRelationRemove":
|
|
cd = ObjectFeaturedRelationRemove(data)
|
|
case "ObjectSetIsFavorite":
|
|
cd = ObjectSetIsFavorite(data)
|
|
case "ObjectSetIsArchived":
|
|
cd = ObjectSetIsArchived(data)
|
|
case "ObjectToSet":
|
|
cd = ObjectToSet(data)
|
|
case "ObjectListDelete":
|
|
cd = ObjectListDelete(data)
|
|
case "ObjectListSetIsArchived":
|
|
cd = ObjectListSetIsArchived(data)
|
|
case "ObjectListSetIsFavorite":
|
|
cd = ObjectListSetIsFavorite(data)
|
|
case "BlockSetDetails":
|
|
cd = BlockSetDetails(data)
|
|
case "PageCreate":
|
|
cd = PageCreate(data)
|
|
case "SetCreate":
|
|
cd = SetCreate(data)
|
|
case "MetricsSetParameters":
|
|
cd = MetricsSetParameters(data)
|
|
case "ObjectTypeCreate":
|
|
cd = ObjectTypeCreate(data)
|
|
case "ObjectTypeList":
|
|
cd = ObjectTypeList(data)
|
|
case "ObjectTypeRelationList":
|
|
cd = ObjectTypeRelationList(data)
|
|
case "ObjectTypeRelationAdd":
|
|
cd = ObjectTypeRelationAdd(data)
|
|
case "ObjectTypeRelationUpdate":
|
|
cd = ObjectTypeRelationUpdate(data)
|
|
case "ObjectTypeRelationRemove":
|
|
cd = ObjectTypeRelationRemove(data)
|
|
case "Ping":
|
|
cd = Ping(data)
|
|
case "ProcessCancel":
|
|
cd = ProcessCancel(data)
|
|
case "HistoryShow":
|
|
cd = HistoryShow(data)
|
|
case "HistoryVersions":
|
|
cd = HistoryVersions(data)
|
|
case "HistorySetVersion":
|
|
cd = HistorySetVersion(data)
|
|
case "Export":
|
|
cd = Export(data)
|
|
case "ExportWorkspace":
|
|
cd = ExportWorkspace(data)
|
|
case "ExportTemplates":
|
|
cd = ExportTemplates(data)
|
|
case "ExportLocalstore":
|
|
cd = ExportLocalstore(data)
|
|
case "MakeTemplate":
|
|
cd = MakeTemplate(data)
|
|
case "MakeTemplateByObjectType":
|
|
cd = MakeTemplateByObjectType(data)
|
|
case "CloneTemplate":
|
|
cd = CloneTemplate(data)
|
|
case "ObjectDuplicate":
|
|
cd = ObjectDuplicate(data)
|
|
case "UnsplashSearch":
|
|
cd = UnsplashSearch(data)
|
|
case "UnsplashDownload":
|
|
cd = UnsplashDownload(data)
|
|
case "ApplyTemplate":
|
|
cd = ApplyTemplate(data)
|
|
case "DebugSync":
|
|
cd = DebugSync(data)
|
|
case "DebugThread":
|
|
cd = DebugThread(data)
|
|
case "DebugTree":
|
|
cd = DebugTree(data)
|
|
default:
|
|
log.Errorf("unknown command type: %s\n", cmd)
|
|
}
|
|
if callback != nil {
|
|
callback(cd)
|
|
}
|
|
}()
|
|
}
|
|
|
|
type MessageHandler interface {
|
|
Handle(b []byte)
|
|
}
|
|
|
|
func CommandMobile(cmd string, data []byte, callback MessageHandler) {
|
|
CommandAsync(cmd, data, callback.Handle)
|
|
}
|