Documentation ¶
Overview ¶
common functions used by both binaries
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶
func DefaultConfigPath() string
DefaultConfigPath returns the default config location for onedriver
func StringToLevel ¶
StringToLevel converts a string to a zerolog.LogLevel that can be used with zerolog
Types ¶
type Config ¶
type Config struct { CacheDir string `yaml:"cacheDir"` LogLevel string `yaml:"log"` graph.AuthConfig `yaml:"auth"` }
func LoadConfig ¶
LoadConfig is the primary way of loading onedriver's config
Click to show internal directories.
Click to hide internal directories.