api

package
v0.0.0-...-ea7d51e Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitApiServer

func InitApiServer(
	db orm.Repo,
	logger *zap.Logger,
	middlewares []gin.HandlerFunc,
	client *lark.Client,
	msg feishuMessage.MessageHandleInterface,
	tokenStore token.Store[string],
) *gin.Engine

func InitMiddleware

func InitMiddleware(logger *zap.Logger, cfg configs.Config) []gin.HandlerFunc

InitMiddleware init middleware

func InitServerStatus

func InitServerStatus(g *gin.Engine)

InitServerStatus register server run time

func InitServiceRoute

func InitServiceRoute(g *gin.Engine)

InitServiceRoute register router common service register 404 route not found register 405 route method not found

func InitTestRoute

func InitTestRoute(g *gin.Engine)

InitTestRoute init debug register hello router

Types

This section is empty.

Jump to

Keyboard shortcuts

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