notion

package
v0.0.0-...-0cefa49 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageBlockUpdater

type PageBlockUpdater struct {
	// contains filtered or unexported fields
}

func NewPageBlockUpdater

func NewPageBlockUpdater(client *notionapi.Client, pageID string) *PageBlockUpdater

NewPageBlockUpdater creates a new BlockUpdater for the given Notion page, which adds all children to the given pageID, to be provided to 'notionreposync/renderer'.

func (*PageBlockUpdater) AddChildren

func (b *PageBlockUpdater) AddChildren(ctx context.Context, children []notionapi.Block) error

AddChildren appends blocks to the page root.

Jump to

Keyboard shortcuts

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