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 )
Click to show internal directories.
Click to hide internal directories.