tree

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	ID         string
	Title      string
	LastEdited time.Time
	Children   Pages
	URL        string
	Parent     *Page
	Depth      int
}

func (*Page) Traverse

func (p *Page) Traverse(fn func(page *Page) error) error

type PageSet

type PageSet struct {
	Roots       Pages
	ByID        map[string]*Page
	LastUpdated time.Time
}

func Load

func Load(ctx context.Context, notion *notionapi.Client) (*PageSet, error)

type Pages

type Pages []*Page

func (Pages) Traverse

func (pages Pages) Traverse(fn func(page *Page) error) error

Jump to

Keyboard shortcuts

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