config

package
v2.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(file string)

Types

type BasicAuthConfiguration added in v2.0.14

type BasicAuthConfiguration struct {
	Username string `json:"username" mapstructure:"username" default:""`
	Password string `json:"password" mapstructure:"password" default:""`
}

type Configuration

type Configuration struct {
	Gigapi    GigapiConfiguration    `json:"gigapi" mapstructure:"gigapi" default:""`
	Port      int                    `json:"port" mapstructure:"port" default:"7971"`
	Host      string                 `json:"host" mapstructure:"host" default:"0.0.0.0"`
	BasicAuth BasicAuthConfiguration `json:"basic_auth" mapstructure:"basic_auth" default:""`
}
var Config *Configuration

type GigapiConfiguration

type GigapiConfiguration struct {
	Enabled       bool    `json:"enabled" mapstructure:"enabled" default:"true"`
	Root          string  `json:"root" mapstructure:"root" default:""`
	MergeTimeoutS int     `json:"merge_timeout_s" mapstructure:"merge_timeout_s" default:"10"`
	Secret        string  `json:"secret" mapstructure:"secret" default:""`
	AllowSaveToHD bool    `json:"allow_save_to_hd" mapstructure:"allow_save_to_hd" default:"true"`
	SaveTimeoutS  float64 `json:"save_timeout_s" mapstructure:"save_timeout_s" default:"1"`
	NoMerges      bool    `json:"no_merges" mapstructure:"no_merges" default:"false"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL