mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-04 17:48:35 +00:00
update docs
This commit is contained in:
parent
84144d823d
commit
6341aebe66
13 changed files with 139 additions and 19 deletions
|
@ -40,7 +40,7 @@ type WebConfig struct {
|
|||
func NewConfig(file string) (*Config, error) {
|
||||
var cfg Config
|
||||
|
||||
const prefix = "API"
|
||||
const prefix = "HBOX"
|
||||
|
||||
help, err := func() (string, error) {
|
||||
if _, err := os.Stat(file); errors.Is(err, os.ErrNotExist) {
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
package config
|
||||
|
||||
const (
|
||||
LogFormatJSON = "json"
|
||||
LogFormatText = "text"
|
||||
)
|
||||
|
||||
type LoggerConf struct {
|
||||
Level string `conf:"default:debug"`
|
||||
File string `conf:""`
|
||||
Level string `conf:"default:info"`
|
||||
Format string `conf:"default:text"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue