Documentation ¶
Index ¶
- func Content2ArweavePage(srcContent string) (*types.ArweavePage, error)
- func ConvertImageBlock(blockDTO *notion.BlockDTO) notion.Block
- func GetTagValue(name string, tags []arTypes.Tag) string
- func IsSupported(dto *notion.BlockDTO) bool
- func LogResp_Debug(resp *resty.Response)
- func LogResp_Error(resp *resty.Response)
- func MakeImageTags(sign string) []arTypes.Tag
- func MakeTags(typ, sign, content string) []arTypes.Tag
- func MergeChildBlocks(content1, content2 string) (merged string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Content2ArweavePage ¶
func Content2ArweavePage(srcContent string) (*types.ArweavePage, error)
TODO: Can't support sub page, image, database now.
Content2ArweavePage converting content from arweave to ArweavePage struct
func ConvertImageBlock ¶
func ConvertImageBlock(blockDTO *notion.BlockDTO) notion.Block
ConvertImageBlock convert image block to richtext link.
func IsSupported ¶
func IsSupported(dto *notion.BlockDTO) bool
func LogResp_Debug ¶
func LogResp_Debug(resp *resty.Response)
func LogResp_Error ¶
func LogResp_Error(resp *resty.Response)
func MakeImageTags ¶
func MergeChildBlocks ¶
MergeChildBlocks content format is notion.BlockChildrenResponse
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.