config

package
v0.0.0-...-7745932 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CasbinConf

type CasbinConf struct {
	ModelText string `json:"ModelText"`
}

func (CasbinConf) NewCasbin

func (l CasbinConf) NewCasbin(dbType *sql.DB, driver, table string) (*casbin.Enforcer, error)

type DatabaseConf

type DatabaseConf struct {
	Host     string
	Port     int
	Username string
	Password string
	DBName   string
	SSLMode  string
	Type     string
}

func (DatabaseConf) GetDSN

func (c DatabaseConf) GetDSN() string

func (DatabaseConf) MysqlDSN

func (c DatabaseConf) MysqlDSN() string

func (DatabaseConf) NewSqlConn

func (c DatabaseConf) NewSqlConn() (sqlConn sqlx.SqlConn)

func (DatabaseConf) PostgresDSN

func (c DatabaseConf) PostgresDSN() string

type GLobalEnv

type GLobalEnv struct {
	Endtime int64
}

func (GLobalEnv) NewGlobalEnv

func (g GLobalEnv) NewGlobalEnv() GLobalEnv

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL