base

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrmLogger added in v1.0.32

func GetOrmLogger() *xorm.SimpleLogger

func MustBoot

func MustBoot(features BootFeature) *common.BootContext

Types

type BootFeature

type BootFeature int
const (
	// 不使用
	BootWithNone BootFeature = 0
	// 使用dotenv
	BootWithEnv BootFeature = 1 << 1
	// 使用session
	BootWithSession BootFeature = 1 << 1
	// 使用redis
	BootWithRedis BootFeature = 1 << 2
	// 使用orm, mysql
	BootWithOrm BootFeature = 1 << 3
	// 使用Logger
	BootWithLogger BootFeature = 1 << 4
	// 默认全部开启
	BootWithAll BootFeature = BootWithEnv |
		BootWithSession |
		BootWithRedis |
		BootWithOrm |
		BootWithLogger
)

Jump to

Keyboard shortcuts

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