config

package
v0.0.0-...-6149473 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

InitConfig 初始化配置

func InitDB

func InitDB() (*gorm.DB, error)

func InitLogger

func InitLogger() *zap.SugaredLogger

InitLogger 初始化zap日志

Types

type RedisClient

type RedisClient struct {
}

func InitRedis

func InitRedis() (*RedisClient, error)

func (*RedisClient) Delete

func (rc *RedisClient) Delete(key ...string) error

func (*RedisClient) Get

func (rc *RedisClient) Get(key string) (any, error)

func (*RedisClient) Set

func (rc *RedisClient) Set(key string, value any) error

Jump to

Keyboard shortcuts

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