Documentation
¶
Overview ¶
Package config loads workspace-level remindb configuration from .remindb/config.json.
Index ¶
- Constants
- func Resolve[T any](flagChanged bool, flag T, cfg, env *T, def T) T
- type BudgetsConfig
- type ByteSize
- type CompileConfig
- type Config
- type Duration
- type LoggingConfig
- type RedactionConfig
- type RedactionPattern
- type RescanConfig
- type RescanFilesConfig
- type ResourcesConfig
- type ServerConfig
- type SessionFilesConfig
- type SessionsConfig
- type TemperatureConfig
Constants ¶
View Source
const ( DirName = ".remindb" FileName = "config.json" Path = DirName + "/" + FileName )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BudgetsConfig ¶
type CompileConfig ¶
type Config ¶
type Config struct {
Budgets BudgetsConfig `json:"budgets"`
Compile CompileConfig `json:"compile"`
Redaction RedactionConfig `json:"redaction"`
Rescan RescanConfig `json:"rescan"`
Server ServerConfig `json:"server"`
Temperature TemperatureConfig `json:"temperature"`
}
type Duration ¶
func (*Duration) UnmarshalJSON ¶
Accept a duration string ("10m", "2h"); JSON has no native duration form.
type LoggingConfig ¶
type LoggingConfig struct {
Level *string `json:"level,omitempty"`
Format *string `json:"format,omitempty"`
OutputPath *string `json:"output_path,omitempty"`
BufferSize *int `json:"buffer_size,omitempty"`
SessionFiles SessionFilesConfig `json:"session_files"`
}
type RedactionConfig ¶
type RedactionConfig struct {
DisableBuiltinKinds []string `json:"disable_builtin_kinds,omitempty"`
Custom []RedactionPattern `json:"custom,omitempty"`
}
type RedactionPattern ¶
type RescanConfig ¶ added in v0.3.4
type RescanFilesConfig ¶ added in v0.3.5
type ResourcesConfig ¶ added in v0.3.4
type ServerConfig ¶
type ServerConfig struct {
Transport *string `json:"transport,omitempty"`
Listen *string `json:"listen,omitempty"`
Logging LoggingConfig `json:"logging"`
Resources ResourcesConfig `json:"resources"`
Sessions SessionsConfig `json:"sessions"`
RescanFiles RescanFilesConfig `json:"rescan_files"`
}
type SessionFilesConfig ¶ added in v0.3.5
type SessionsConfig ¶ added in v0.3.5
type SessionsConfig struct {
FlushInterval *Duration `json:"flush_interval,omitempty"`
}
type TemperatureConfig ¶
type TemperatureConfig struct {
Enabled *bool `json:"enabled,omitempty"`
DecayRate *float64 `json:"decay_rate,omitempty"`
AccessBoost *float64 `json:"access_boost,omitempty"`
HotThreshold *float64 `json:"hot_threshold,omitempty"`
ColdThreshold *float64 `json:"cold_threshold,omitempty"`
NotifyThreshold *float64 `json:"notify_threshold,omitempty"`
SummarizeRebound *float64 `json:"summarize_rebound,omitempty"`
TickInterval *Duration `json:"tick_interval,omitempty"`
ColdNotifyTTL *Duration `json:"cold_notify_ttl,omitempty"`
ColdNotifyLimit *int `json:"cold_notify_limit,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.