ioc

package
v0.0.0-...-594631a Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger() io.Writer

func InitMiddlewares

func InitMiddlewares(writer io.Writer, isWebsiteInitialized func() bool) []gin.HandlerFunc

func JwtParseMiddleware

func JwtParseMiddleware(isWebsiteInitialized func() bool) gin.HandlerFunc

JwtParseMiddleware jwt 解析中间件

func NewEventBus

func NewEventBus() *eventbus.EventBus

func NewGinEngine

func NewGinEngine(fileHdr *file.Handler, ctgHdr *category.Handler, cmtHdr *comment.Handler, cfgHdr *website_config.Handler, frdHdr *friend.Handler, postHdr *post.Handler, vlHdr *visit_log.Handler, msgTplHandler *message_template.Handler, tagsHandler *tag.Handler, daHandler *data_analysis.Handler, csHandler *count_stats.Handler, backupHandler *backup.Handler, middleware []gin.HandlerFunc, validators Validators, postIndexHdr *post_index.Handler, postDraftHdr *post_draft.Handler, aggregatePostHdr *aggregate_post.Handler, postLikesHdr *post_like.Handler, postVisitHdr *post_visit.Handler) (*gin.Engine, error)

func NewMongoDB

func NewMongoDB() *mongo.Database

Types

type Validators

type Validators map[string]func(fl validator.FieldLevel) bool

func InitGinValidators

func InitGinValidators() Validators

Jump to

Keyboard shortcuts

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