config

package
v0.0.0-...-6a7b643 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeBackup

func InitializeBackup(ctx context.Context, c *Config)

func InitializeRestore

func InitializeRestore(ctx context.Context, c *Config)

Types

type Config

type Config struct {
	Token             string
	Operation_Type    OperationType
	PageUUIDs         []string
	DatabaseUUIDs     []string
	Dir               string
	Create_Dir        bool
	NotionClient      notionclient.NotionClient
	ReaderWriter      rw.ReaderWriter
	TreeBuilder       builder.TreeBuilder
	MetadataFilePath  string
	RestoreToPageUUID string
}

func (*Config) Execute

func (c *Config) Execute(ctx context.Context, opts ...ConfigOption) error

type ConfigOption

type ConfigOption func(context.Context, *Config)

type OperationType

type OperationType string
const (
	UNKNOWN OperationType = "UNKNOWN"
	BACKUP  OperationType = "BACKUP"
	RESTORE OperationType = "RESTORE"
)

Jump to

Keyboard shortcuts

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