Documentation
¶
Overview ¶
Package config loads workspace-level remindb configuration from .remindb/config.json.
Index ¶
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"`
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 RedactionConfig ¶
type RedactionConfig struct {
DisableBuiltinKinds []string `json:"disable_builtin_kinds,omitempty"`
Custom []RedactionPattern `json:"custom,omitempty"`
}
type RedactionPattern ¶
type ServerConfig ¶
type ServerConfig struct {
Transport *string `json:"transport,omitempty"`
Listen *string `json:"listen,omitempty"`
Logging LoggingConfig `json:"logging,omitempty"`
}
type TemperatureConfig ¶
type TemperatureConfig struct {
DecayRate *float64 `json:"decay_rate,omitempty"`
AccessBoost *float64 `json:"access_boost,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.