config

package
v0.8.46 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 8 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config config
View Source
var LambdaConfig lambdaConfig

Functions

This section is empty.

Types

type File added in v0.8.42

type File struct {
	FileMaxSize int `envconfig:"FILE_MAX_SIZE"`
}

type Graphql

type Graphql struct {
	Debug string
}

type JWT

type JWT struct {
	Secret              string
	Ttl                 int
	DisableCookieSecure bool `envconfig:"JWT_DISABLE_COOKIE_SECURE"`
}

type LambdaConfigFile added in v0.7.84

type LambdaConfigFile struct {
	SchemaLoadMode string `json:"schema_load_mode"`
	ProjectKey     string `json:"project_key"`
	Theme          string `json:"theme"`
	Domain         string `json:"domain"`
	Title          string `json:"title"`
	SubTitle       string `json:"subTitle"`
	Copyright      string `json:"copyright"`
	Favicon        string `json:"favicon"`
	Bg             string `json:"bg"`
	LogoText       string `json:"logoText"`
	SuperURL       string `json:"super_url"`
	AppURL         string `json:"app_url"`
	HasLanguage    bool   `json:"has_language"`
	WithCrudLog    bool   `json:"withCrudLog"`
	KrudPublic     bool   `json:"krud_public"`
	ControlPanel   struct {
		LogoLight    string   `json:"logoLight"`
		LogoDark     string   `json:"logoDark"`
		BrandBtnURL  string   `json:"brandBtnUrl"`
		ThemeMode    string   `json:"themeMode"`
		PrimaryColor string   `json:"primaryColor"`
		ThemeColors  []string `json:"themeColors"`
		ExtraStyles  []string `json:"extraStyles"`
		ExtraScripts []string `json:"extraScripts"`
	} `json:"controlPanel"`
	Languages []struct {
		Label string `json:"label"`
		Code  string `json:"code"`
	} `json:"languages"`
	DefaultLanguage string `json:"default_language"`
	RoleRedirects   []struct {
		RoleID int64  `json:"role_id"`
		URL    string `json:"url"`
	} `json:"role-redirects"`
	UserDataFields         []string `json:"user_data_fields"`
	DataFormCustomElements []struct {
		Element string `json:"element"`
	} `json:"data_form_custom_elements"`
	DataGridCustomElements []struct {
		Element string `json:"element"`
	} `json:"data_grid_custom_elements"`
	PasswordResetTimeOut int                    `json:"password_reset_time_out"`
	StaticWords          map[string]interface{} `json:"static_words"`
	Notify               struct {
		FirebaseConfig struct {
			APIKey            string `json:"apiKey"`
			PublicKey         string `json:"publicKey"`
			AuthDomain        string `json:"authDomain"`
			DatabaseURL       string `json:"databaseURL"`
			ProjectID         string `json:"projectId"`
			StorageBucket     string `json:"storageBucket"`
			MessagingSenderID string `json:"messagingSenderId"`
			AppID             string `json:"appId"`
			MeasurementID     string `json:"measurementId"`
		} `json:"firebaseConfig"`
		ServerKey string `json:"serverKey"`
		Sound     string `json:"sound"`
		Icon      string `json:"icon"`
	} `json:"notify"`
	CustomIcons  []interface{} `json:"custom_icons"`
	SecureFields []struct {
		Table  string `json:"table"`
		Column string `json:"column"`
	} `json:"secure_fields"`
	IgnoreTables []string `json:"ignore_tables"`
}

type Mail

type Mail struct {
	Driver      string
	Host        string
	Port        int
	Username    string
	Password    string
	Encryption  string
	FromAddress string `envconfig:"MAIL_FROM_ADDRESS"`
	FromName    string `envconfig:"MAIL_FROM_NAME"`
}

type SysAdmin

type SysAdmin struct {
	Login    string
	Email    string
	Password string
	UUID     bool
}

Jump to

Keyboard shortcuts

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