sys

package
v0.0.0-...-2bb2ff7 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const Name = "Tibula"
View Source
const Version = "17.10.8"

Variables

This section is empty.

Functions

func Bool

func Bool(value interface{}) bool

func ConfigFileName

func ConfigFileName() string

func ConfigRead

func ConfigRead(filename string, instance interface{}) error

func ConfigWrite

func ConfigWrite(filename string, instance interface{}) error

func Configure

func Configure() error

func Float

func Float(nameValue interface{}) float64

func Help

func Help()

func Number

func Number(nameValue interface{}) int64

func Setup

func Setup() (err error)

func String

func String(nameValue interface{}) string

func WizardPassword

func WizardPassword(message string) string

func WizardPrompt

func WizardPrompt(message string) string

func WizardSetup

func WizardSetup() error

Types

type TypeCommand

type TypeCommand struct {
	Start   bool `json:"start,omitempty"`
	DbSetup bool `json:"db_setup,omitempty"`
	Wizard  bool `json:"wizard,omitempty"`
	Help    bool `json:"help,omitempty"`
}
var Commands TypeCommand

type TypeConfig

type TypeConfig struct {
	DbType        string `json:"db_type,omitempty"`
	DbName        string `json:"db_name,omitempty"`
	DbUser        string `json:"db_user,omitempty"`
	DbPass        string `json:"db_pass,omitempty"`
	DbHost        string `json:"db_host,omitempty"`
	DbPort        int    `json:"db_port,omitempty"`
	DbSetupUser   string `json:"db_setup_user,omitempty"`
	DbSetupPass   string `json:"db_setup_pass,omitempty"`
	DbSetupPath   string `json:"db_setup_path,omitempty"`
	WebHost       string `json:"web_host,omitempty"`
	WebPort       int    `json:"web_port,omitempty"`
	WebPath       string `json:"web_path,omitempty"`
	WebTlsPublic  string `json:"web_tls_public,omitempty"`
	WebTlsPrivate string `json:"web_tls_private,omitempty"`
	ConfigFile    string `json:"config_file,omitempty"`
	Language      string `json:"language,omitempty"`
	LogLevel      int    `json:"log_level,omitempty"`
	LogFile       string `json:"log_file,omitempty"`
	GoogleSsoId   string `json:"google_sso_id,omitempty"`
}
var Options TypeConfig

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳