core

package
v0.0.0-...-955a8ec Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(configPath string, configStructList ...interface{}) error

*

  • @Author lvxin0315@163.com
  • @Description 加载配置文件
  • @Date 2:24 下午 2021/4/2
  • @Param
  • @return *

Types

type FuncWithMysqlGormDB

type FuncWithMysqlGormDB func(gormDB *gorm.DB) error

type FuncWithSqliteGormDB

type FuncWithSqliteGormDB func(gormDB *gorm.DB) error

type MysqlDB

type MysqlDB struct {
	// contains filtered or unexported fields
}

*

  • @Author lvxin0315@163.com
  • @Description mysql操作专用
  • @Date 2:45 下午 2021/4/2
  • @Param
  • @return *

func NewMysqlDB

func NewMysqlDB(config *config.MysqlConfig, logger *log.L) *MysqlDB

func (*MysqlDB) Exec

func (mysqlDB *MysqlDB) Exec(fs ...FuncWithMysqlGormDB) error

*

  • @Author lvxin0315@163.com
  • @Description 执行操作
  • @Date 4:49 下午 2021/4/13
  • @Param
  • @return *

type SqliteDB

type SqliteDB struct {
	// contains filtered or unexported fields
}

*

  • @Author lvxin0315@163.com
  • @Description sqlite操作专用
  • @Date 4:44 下午 2021/4/13
  • @Param
  • @return *

func NewSqliteDB

func NewSqliteDB(config *config.SqliteConfig, logger *log.L) *SqliteDB

func (*SqliteDB) Exec

func (sqliteDB *SqliteDB) Exec(fs ...FuncWithSqliteGormDB) error

*

  • @Author lvxin0315@163.com
  • @Description 执行操作
  • @Date 4:49 下午 2021/4/13
  • @Param
  • @return *

Jump to

Keyboard shortcuts

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