config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedExtensions

func AllowedExtensions() []string

func GraphMode

func GraphMode() string

func IgnoredDirectories

func IgnoredDirectories() []string

func NGramRange

func NGramRange() []int

func NotesDirPaths

func NotesDirPaths() []string

func OpenCommand

func OpenCommand() []string

func PluginPaths

func PluginPaths() []string

func Setup

func Setup() error

func StopWords

func StopWords() []string

Types

type OolongConfig

type OolongConfig struct {
	NotesDirPaths     []string `toml:"note_directories"`
	AllowedExtensions []string `toml:"allowed_extensions"`
	IgnoreDirectories []string `toml:"ignored_directories"`
	OpenCommand       []string `toml:"open_command"`

	LinkerConfig  OolongLinkerConfig `toml:"linker"`
	GraphConfig   OolongGraphConfig  `toml:"graph"`
	SyncConfig    OolongSyncConfig   `toml:"sync"`
	PluginsConfig OolongPluginConfig `toml:"plugins"`
}

func Config

func Config() *OolongConfig

type OolongEditorConfig

type OolongEditorConfig struct {
}

type OolongGraphConfig

type OolongGraphConfig struct {
	MinNodeWeight float64 `toml:"min_node_weight"`
	MaxNodeWeight float64 `toml:"max_node_weight"`
	MinLinkWeight float64 `toml:"min_link_weight"`
	DefaultMode   string  `toml:"default_mode"`
}

func WeightThresholds

func WeightThresholds() OolongGraphConfig

type OolongLinkerConfig

type OolongLinkerConfig struct {
	// TODO: move these things to a "linker" config section
	NGramRange []int    `toml:"ngram_range"`
	StopWords  []string `toml:"stop_words"`
}

func LinkerConfig

func LinkerConfig() OolongLinkerConfig

type OolongPluginConfig

type OolongPluginConfig struct {
	PluginPaths []string `toml:"plugin_paths"`
}

type OolongSyncConfig

type OolongSyncConfig sync.SyncConfig

func SyncConfig

func SyncConfig() OolongSyncConfig

Jump to

Keyboard shortcuts

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