package
Version:
v0.0.0-...-135a279
Opens a new window with list of versions in this module.
Published: Jul 29, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CasbinConfig struct {
DbMode bool `mapstructure:"MODE"`
PostgresTable string `mapstructure:"POSTGRES_TABLE"`
ModelConfig string `mapstructure:"MODEL_CONFIG"`
Policy string `mapstructure:"POLICY"`
}
type Logger struct {
Development bool `mapstructure:"DEVELOPMENT"`
Encoding string `mapstructure:"ENCODING"`
Level string `mapstructure:"LEVEL"`
}
type PostgresConfig struct {
Host string `mapstructure:"HOST"`
Port string `mapstructure:"PORT"`
User string `mapstructure:"USER"`
Password string `mapstructure:"PASSWORD"`
Database string `mapstructure:"DATABASE"`
Driver string `mapstructure:"DRIVER"`
}
type ServerConfig struct {
Host string `mapstructure:"HOST"`
Port string `mapstructure:"PORT"`
Environment string `mapstructure:"ENVIRONMENT"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.