config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPath

func DefaultPath() (string, error)

func ExpandPath

func ExpandPath(path string) (string, error)

func WriteStarter

func WriteStarter(path string) (string, error)

Types

type APIConfig

type APIConfig struct {
	Enabled  bool   `toml:"enabled"`
	TokenEnv string `toml:"token_env"`
	BaseURL  string `toml:"base_url"`
	Version  string `toml:"version"`
}

type Config

type Config struct {
	DBPath      string       `toml:"db_path"`
	CacheDir    string       `toml:"cache_dir"`
	MarkdownDir string       `toml:"markdown_dir"`
	Notion      NotionConfig `toml:"notion"`
	Share       ShareConfig  `toml:"share"`
}

func Default

func Default() Config

func Load

func Load(path string) (Config, error)

func (Config) APIToken

func (c Config) APIToken() string

func (*Config) Resolve

func (c *Config) Resolve() error

type DesktopConfig

type DesktopConfig struct {
	Enabled bool   `toml:"enabled"`
	Path    string `toml:"path"`
}

type MCPConfig added in v0.5.0

type MCPConfig struct {
	Enabled     bool   `toml:"enabled"`
	BaseURL     string `toml:"base_url"`
	AuthPath    string `toml:"auth_path"`
	ConnectorID string `toml:"connector_id"`
	MaxPages    int    `toml:"max_pages"`
}

type NotionConfig

type NotionConfig struct {
	Desktop DesktopConfig `toml:"desktop"`
	API     APIConfig     `toml:"api"`
	MCP     MCPConfig     `toml:"mcp"`
}

type ShareConfig

type ShareConfig struct {
	Remote     string `toml:"remote"`
	Branch     string `toml:"branch"`
	RepoPath   string `toml:"repo_path"`
	StaleAfter string `toml:"stale_after"`
}

Jump to

Keyboard shortcuts

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