Versions in this module Expand all Collapse all v0 v0.1.0 Jul 1, 2024 Changes in this version + const DriverMssql + const DriverMysql + const DriverOceanBase + const DriverPostgresql + const DriverSqlite + const EnvLocal + const EnvProd + const EnvTest + func AssertPrefix() string + func GetAccessLogOff() bool + func GetAccessLogPath() string + func GetAllowDelOperationLog() bool + func GetAppID() string + func GetAssetRootPath() string + func GetAssetUrl() string + func GetAuthUserTable() string + func GetColorScheme() string + func GetCustom403HTML() template.HTML + func GetCustom404HTML() template.HTML + func GetCustom500HTML() template.HTML + func GetCustomFootHtml() template.HTML + func GetCustomHeadHtml() template.HTML + func GetDebug() bool + func GetDomain() string + func GetEnv() string + func GetErrorLogOff() bool + func GetErrorLogPath() string + func GetExcludeThemeComponents() []string + func GetExtra() map[string]interface + func GetFooterInfo() template.HTML + func GetHideVisitorUserCenterEntrance() bool + func GetIndexURL() string + func GetIndexUrl() string + func GetInfoLogOff() bool + func GetInfoLogPath() string + func GetLanguage() string + func GetLoginLogo() template.HTML + func GetLoginTitle() string + func GetLoginUrl() string + func GetLogo() template.HTML + func GetMiniLogo() template.HTML + func GetNoLimitLoginIP() bool + func GetOpenAdminApi() bool + func GetOperationLogOff() bool + func GetSessionLifeTime() int + func GetSiteOff() bool + func GetSqlLog() bool + func GetTheme() string + func GetTitle() string + func GetUrlPrefix() string + func IsNotProductionEnvironment() bool + func IsProductionEnvironment() bool + func Prefix() string + func PrefixFixSlash() string + func URLRemovePrefix(url string) string + func Url(suffix string) string + type Config struct + AccessAssetsLogOff bool + AccessLogOff bool + AccessLogPath string + AllowDelOperationLog bool + Animation PageAnimation + AppID string + AssetRootPath string + AssetUrl string + AuthUserTable string + BootstrapFilePath string + ColorScheme string + Custom403HTML template.HTML + Custom404HTML template.HTML + Custom500HTML template.HTML + CustomFootHtml template.HTML + CustomHeadHtml template.HTML + Databases DatabaseList + Debug bool + Domain string + Env string + ErrorLogOff bool + ErrorLogPath string + ExcludeThemeComponents []string + Extra ExtraInfo + FileUploadEngine FileUploadEngine + FooterInfo template.HTML + GoModFilePath string + HideAppInfoEntrance bool + HideConfigCenterEntrance bool + HidePluginEntrance bool + HideToolEntrance bool + HideVisitorUserCenterEntrance bool + IndexUrl string + InfoLogOff bool + InfoLogPath string + Language string + Logger Logger + LoginLogo template.HTML + LoginTitle string + LoginUrl string + Logo template.HTML + MiniLogo template.HTML + NoLimitLoginIP bool + OpenAdminApi bool + OperationLogOff bool + ProhibitConfigModification bool + SessionLifeTime int + SiteOff bool + SqlLog bool + Store Store + Theme string + Title string + URLFormat URLFormat + UpdateProcessFn UpdateConfigProcessFn + UrlPrefix string + func Get() *Config + func GetService(s interface{}) *Config + func Initialize(cfg *Config) *Config + func ReadFromINI(path string) Config + func ReadFromJson(path string) Config + func ReadFromYaml(path string) Config + func SetDefault(cfg *Config) *Config + func (c *Config) AddUpdateProcessFn(fn UpdateConfigProcessFn) *Config + func (c *Config) AssertPrefix() string + func (c *Config) Copy() *Config + func (c *Config) EraseSens() *Config + func (c *Config) GetIndexURL() string + func (c *Config) Index() string + func (c *Config) IsAllowConfigModification() bool + func (c *Config) IsLocalEnvironment() bool + func (c *Config) IsNotProductionEnvironment() bool + func (c *Config) IsProductionEnvironment() bool + func (c *Config) IsTestEnvironment() bool + func (c *Config) Prefix() string + func (c *Config) PrefixFixSlash() string + func (c *Config) ToMap() map[string]string + func (c *Config) URLRemovePrefix(url string) string + func (c *Config) Update(m map[string]string) error + func (c *Config) Url(suffix string) string + type Database struct + ConnMaxIdleTime time.Duration + ConnMaxLifetime time.Duration + Driver string + DriverMode string + Dsn string + File string + Host string + MaxIdleConns int + MaxOpenConns int + Name string + Params map[string]string + Port string + Pwd string + User string + func (d Database) GetDSN() string + func (d Database) ParamStr() string + type DatabaseList map[string]Database + func GetDatabaseListFromJSON(m string) DatabaseList + func GetDatabases() DatabaseList + func (d DatabaseList) Add(key string, db Database) + func (d DatabaseList) Connections() []string + func (d DatabaseList) Copy() DatabaseList + func (d DatabaseList) GetDefault() Database + func (d DatabaseList) GroupByDriver() map[string]DatabaseList + func (d DatabaseList) JSON() string + type EncoderCfg struct + Caller string + CallerKey string + Duration string + Encoding string + Level string + LevelKey string + MessageKey string + NameKey string + StacktraceKey string + Time string + TimeKey string + type ExtraInfo map[string]interface + type FileUploadEngine struct + Config map[string]interface{} + Name string + func GetFileUploadEngine() FileUploadEngine + func GetFileUploadEngineFromJSON(m string) FileUploadEngine + func (f FileUploadEngine) JSON() string + type Logger struct + Encoder EncoderCfg + Level int8 + Rotate RotateCfg + type PageAnimation struct + Delay float32 + Duration float32 + Type string + func GetAnimation() PageAnimation + func (p PageAnimation) JSON() string + type RotateCfg struct + Compress bool + MaxAge int + MaxBackups int + MaxSize int + type Service struct + C *Config + func SrvWithConfig(c *Config) *Service + func (s *Service) Name() string + type Store struct + Path string + Prefix string + func GetStore() Store + func GetStoreFromJSON(m string) Store + func (s Store) JSON() string + func (s Store) URL(suffix string) string + type URLFormat struct + Create string + Delete string + Detail string + Edit string + Export string + Info string + ShowCreate string + ShowEdit string + Update string + func GetURLFormats() URLFormat + func (f URLFormat) SetDefault() URLFormat + type UpdateConfigProcessFn func(values form.Values) (form.Values, error)