Documentation
¶
Index ¶
- Constants
- Variables
- func CreateSchedule(jobname, schedule string, cmd func(), logger *zap.Logger) (*cron.Cron, error)
- func InitDB(sub string, logger *zap.Logger) *gorm.DB
- func InitDefaultDB(logger *zap.Logger) *gorm.DB
- func InitMysqlViews(tx *gorm.DB, logger *zap.Logger) error
- type CronZaplog
- type DBCronJob
- type HealthController
- type OrmDialector
Constants ¶
View Source
const ( KeyInitDB = ginshared.KeyInitDB KeyTablePrefix = "database.tablePrefix" )
View Source
const ( HealthURIKey = "healthz" HealthURIValue = "/healthz" )
View Source
const ViewMysqlTmp = "CREATE OR REPLACE ALGORITHM = UNDEFINED VIEW %s%s AS %s"
Variables ¶
View Source
var DialectorMap = make(map[string]OrmDialector)
Functions ¶
func CreateSchedule ¶ added in v0.1.8
Types ¶
type CronZaplog ¶ added in v0.1.8
type CronZaplog struct {
// contains filtered or unexported fields
}
func (*CronZaplog) Error ¶ added in v0.1.8
func (c *CronZaplog) Error(err error, msg string, keysAndValues ...interface{})
func (*CronZaplog) Info ¶ added in v0.1.8
func (c *CronZaplog) Info(msg string, keysAndValues ...interface{})
type DBCronJob ¶ added in v0.1.8
type HealthController ¶
type HealthController struct {
// contains filtered or unexported fields
}
func (*HealthController) Ping ¶
func (h *HealthController) Ping(c *gin.Context)
type OrmDialector ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.