settings

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: AGPL-3.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conf *ini.File
View Source
var ConfPath string
View Source
var GitSettings = &Git{}
View Source
var (
	LastModified string
)
View Source
var NginxLogSettings = &NginxLog{
	AccessLogPath: "",
	ErrorLogPath:  "",
}
View Source
var OpenAISettings = &OpenAI{}
View Source
var ServerSettings = &Server{
	HttpPort:          "9000",
	RunMode:           "debug",
	HTTPChallengePort: "9180",
	Database:          "database",
	StartCmd:          "login",
	Demo:              false,
	PageSize:          10,
	CADir:             "",
	GithubProxy:       "",
}

Functions

func Init

func Init(confPath string)

func MapTo

func MapTo()

func ReflectFrom

func ReflectFrom()

func Save

func Save() (err error)

func Setup

func Setup()

Types

type Git added in v1.8.0

type Git struct {
	Url                string `json:"url"`
	AuthMethod         string `json:"auth_method"`
	Username           string `json:"username"`
	Password           string `json:"password"`
	PrivateKeyFilePath string `json:"private_key_file_path"`
}

type NginxLog added in v1.6.0

type NginxLog struct {
	AccessLogPath string `json:"access_log_path"`
	ErrorLogPath  string `json:"error_log_path"`
}

type OpenAI added in v1.7.8

type OpenAI struct {
	BaseUrl string `json:"base_url"`
	Token   string `json:"token"`
	Proxy   string `json:"proxy"`
	Model   string `json:"model"`
}

type Server

type Server struct {
	HttpPort          string `json:"http_port"`
	RunMode           string `json:"run_mode"`
	JwtSecret         string `json:"jwt_secret"`
	HTTPChallengePort string `json:"http_challenge_port"`
	Email             string `json:"email"`
	Database          string `json:"database"`
	StartCmd          string `json:"start_cmd"`
	CADir             string `json:"ca_dir"`
	Demo              bool   `json:"demo"`
	PageSize          int    `json:"page_size"`
	GithubProxy       string `json:"github_proxy"`
	NginxConfigDir    string `json:"nginx_config_dir"`
	NginxPIDPath      string `json:"nginx_pid_path"`
}

Jump to

Keyboard shortcuts

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