processors

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(container ast.Container, provider Provider, rawBlock notionapi.Block) error

Types

type Func

type Func func(container ast.Container, provider Provider, rawBlock notionapi.Block) (ast.Node, error)

type Processor

type Processor interface {
	Process(container ast.Container, provider Provider, rawBlock notionapi.Block) (ast.Node, error)
}

func For

func For(block notionapi.Block) Processor

type Provider

type Provider interface {
	ProvideChildren(rawBlock notionapi.Block) ([]notionapi.Block, error)
	ProvidePageChildren(rawBlock notionapi.Page) ([]notionapi.Block, error)
	ProvideDatabase(rawBlock notionapi.Block) (*notionapi.Database, error)
	ProvideDatabaseData(db *notionapi.Database) ([]notionapi.Page, error)
}

Jump to

Keyboard shortcuts

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