Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrValidateNil = errors.New("cavorite config must have a Validate() function") ErrValidate = errors.New("validate() failed") ErrDirExpander = errors.New("dirExpander failed") ErrDirExpanderNil = errors.New("dirExpander cannot be nil") ErrMarshalNil = errors.New("marshal cannot be nil") ErrUnsupportedStore = errors.New("not a supported store type") ErrConfigNotExist = errors.New("config file does not exist") ErrConfigDirNotExist = errors.New("config directory does not exist") )
View Source
var (
ErrViperReadConfig = errors.New("viper.ReadConfig failure")
)
Functions ¶
Types ¶
type Config ¶
type Config struct { StoreType stores.StoreType `json:"store_type" mapstructure:"store_type"` Options stores.Options `json:"options" mapstructure:"options"` Validate func() error `json:"-"` Expander func(string) (string, error) `json:"-"` Marshal func(v any) ([]byte, error) `json:"-"` }
var (
Cfg Config
)
func InitalizeStoreTypeOf ¶
Click to show internal directories.
Click to hide internal directories.