Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultListen = ":7777" DefaultUIListen = ":7778" DefaultTimeout = 30 * time.Second DefaultLogLevel = "info" DefaultLimit = 100 DefaultMaxLimit = 1000 DefaultMaxBodyBytes = int64(10 << 20) // 10 MiB )
Variables ¶
View Source
var ErrNoConfigFound = errors.New("no config file found")
Functions ¶
Types ¶
type Config ¶
type Config struct {
Driver database.Driver
DSN string
Listen string
ReadOnly bool
AllowedSchemas []string
AllowedTables []string
Timeout time.Duration
UI UIConfig
CORSOrigins []string
AuthTokenEnv string
AuthToken string // Resolved at runtime from AuthTokenEnv by the cli; empty disables bearer auth.
LogLevel string
DefaultLimit int
MaxLimit int
MaxBodyBytes int64
}
Click to show internal directories.
Click to hide internal directories.