Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessConf ¶
type AccessConf struct {
Restrict bool
IgnoreTable []string
Tables []TablesConf
}
AccessConf informations
type ExposeConf ¶
ExposeConf (expose data) information
type PluginMiddleware ¶
type Prest ¶
type Prest struct {
Version int
AuthEnabled bool
AuthSchema string
AuthTable string
AuthUsername string
AuthPassword string
AuthEncrypt string
AuthMetadata []string
AuthType string
HTTPHost string // HTTPHost Declare which http address the PREST used
HTTPPort int // HTTPPort Declare which http port the PREST used
HTTPTimeout int
PGHost string
PGPort int
PGUser string
PGPass string
PGDatabase string
PGURL string
PGSSLMode string
PGSSLCert string
PGSSLKey string
PGSSLRootCert string
ContextPath string
SSLMode string
SSLCert string
SSLKey string
SSLRootCert string
PGMaxIdleConn int
PGMaxOpenConn int
PGConnTimeout int
PGCache bool
JWTKey string
JWTAlgo string
JWTWhiteList []string
JSONAggType string
MigrationsPath string
QueriesPath string
AccessConf AccessConf
ExposeConf ExposeConf
CORSAllowOrigin []string
CORSAllowHeaders []string
CORSAllowMethods []string
CORSAllowCredentials bool
Debug bool
Adapter adapters.Adapter
EnableDefaultJWT bool
SingleDB bool
HTTPSMode bool
HTTPSCert string
HTTPSKey string
Cache cache.Config
PluginPath string
PluginMiddlewareList []PluginMiddleware
}
Prest basic config
var ( // PrestConf config variable PrestConf *Prest )
type TablesConf ¶
type TablesConf struct {
Name string `mapstructure:"name"`
Permissions []string `mapstructure:"permissions"`
Fields []string `mapstructure:"fields"`
}
TablesConf informations
Click to show internal directories.
Click to hide internal directories.