notionify

package module
v0.0.0-...-ccfc996 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 2 Imported by: 0

README

Notionify

I use this tool to continuously sync my papers on Dropbox with a Notion board.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DropboxConfig

type DropboxConfig struct {
	Token      string `mapstructure:"token"`
	RootFolder string `mapstructure:"rootFolder"`
}

type NotionConfig

type NotionConfig struct {
	Token      string `mapstructure:"token"`
	DatabaseID string `mapstructure:"databaseID"`
}

type RecurringConfig

type RecurringConfig struct {
	Interval time.Duration `mapstructure:"interval"`
	Notion   NotionConfig  `mapstructure:"notion"`
}

type RedisConfig

type RedisConfig struct {
	Addr     string `mapstructure:"addr"`
	Password string `mapstructure:"password"`
	DB       int    `mapstructure:"db"`
}

type ResearchConfig

type ResearchConfig struct {
	Dropbox DropboxConfig `mapstructure:"dropbox"`
	Notion  NotionConfig  `mapstructure:"notion"`
}

type RootConfig

type RootConfig struct {
	Web       WebConfig       `mapstructure:"web"`
	Redis     RedisConfig     `mapstructure:"redis"`
	Research  ResearchConfig  `mapstructure:"research"`
	Recurring RecurringConfig `mapstructure:"recurring"`
}

func ReadConfig

func ReadConfig() (RootConfig, error)

type WebConfig

type WebConfig struct {
	Addr string `mapstructure:"addr"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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