services

package
v0.0.0-...-83c0583 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package services 加载或初始化外部依赖服务

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAtomicLevelServer

func CheckAtomicLevelServer(ctx context.Context) string

CheckAtomicLevelServer 检查 logging 的 AtomicLevel server 是否正常

func CheckMySQL

func CheckMySQL(ctx context.Context) map[string]string

CheckMySQL 检查 mysql 服务状态

func CheckRedis

func CheckRedis(ctx context.Context) map[string]string

CheckRedis 检查 redis 服务状态

func DB

func DB(ctx context.Context) *gorm.DB

DB 获取带有ctx 和自定义 logger 的 gorm db 实例

func Init

func Init() error

Init 相关依赖服务的初始化或加载操作

Types

This section is empty.

Jump to

Keyboard shortcuts

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