Versions in this module Expand all Collapse all v0 v0.6.0 Jul 30, 2022 v0.5.0 Jul 27, 2022 v0.4.0 Jul 26, 2022 v0.3.0 Jul 24, 2022 Changes in this version + type CasbinOptions struct + Model string + func NewCasbinOptions() *CasbinOptions + func (s *CasbinOptions) AddFlags(fs *pflag.FlagSet) + func (s *CasbinOptions) Validate() []error type JWTOptions + func NewJWTOptions() *JWTOptions + type PostgresOptions struct + Database string + Host string + LogEnableColor bool + LogLevel int + MaxConnectionLifeTime time.Duration + MaxIdleConnections int + MaxOpenConnections int + Password string + Port int + Username string + func NewPostgresOptions() *PostgresOptions + func (o *PostgresOptions) AddFlags(fs *pflag.FlagSet) + func (o *PostgresOptions) NewClient() (*gorm.DB, error) + func (o *PostgresOptions) Validate() []error v0.2.1 Jul 18, 2022 v0.2.0 Jul 18, 2022 Changes in this version + type JWTOptions struct + Key string + MaxRefresh time.Duration + Realm string + Timeout time.Duration + func NewJwtOptions() *JWTOptions + func (s *JWTOptions) AddFlags(fs *pflag.FlagSet) + func (s *JWTOptions) Validate() []error v0.1.0 Jul 16, 2022 Changes in this version + type MySQLOptions struct + Database string + Host string + LogEnableColor bool + LogLevel int + MaxConnectionLifeTime time.Duration + MaxIdleConnections int + MaxOpenConnections int + Password string + Username string + func NewMySQLOptions() *MySQLOptions + func (o *MySQLOptions) AddFlags(fs *pflag.FlagSet) + func (o *MySQLOptions) NewClient() (*gorm.DB, error) + func (o *MySQLOptions) Validate() []error + type RedisOptions struct + Addrs []string + Database int + EnableCluster bool + Host string + MasterName string + MaxActive int + MaxIdle int + Password string + Port int + SSLInsecureSkipVerify bool + Timeout int + UseSSL bool + Username string + func NewRedisOptions() *RedisOptions + func (o *RedisOptions) AddFlags(fs *pflag.FlagSet) + func (o *RedisOptions) Validate() []error