initialize

package
v0.0.0-...-7253f33 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package initialize 处理程序初始化逻辑

Index

Constants

This section is empty.

Variables

View Source
var EtcdClient *etcd.EtcdClient

EtcdClient Global variable to hold the etcd client

View Source
var Validate *validator.Validate

Functions

func SetupDB

func SetupDB()

SetupDB 初始化数据库和 ORM

func SetupEtcd

func SetupEtcd()

SetupEtcd initializes Etcd

func SetupLogger

func SetupLogger()

SetupLogger 初始化 Logger

func SetupR2

func SetupR2()

SetupR2 initializes Cloudflare R2 client

func SetupRedis

func SetupRedis()

SetupRedis 初始化 Redis

func SetupRoute

func SetupRoute(router *gin.Engine)

SetupRoute 路由初始化

func SetupValidators

func SetupValidators()

SetupValidators 初始化 Validators

Types

This section is empty.

Jump to

Keyboard shortcuts

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