config

package
v0.0.0-...-59239ac Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultExpireTime = 30 * 24 * 60 * 60 * time.Second

Variables

This section is empty.

Functions

func InitConfig

func InitConfig() error

func InitDB

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

func InitLogger

func InitLogger() *zap.SugaredLogger

func InitOSS

func InitOSS() (*utils.MinioClient, error)

func NewMinioConn

func NewMinioConn(extraConn utils.ExtraConn, intraConn utils.IntraConn) (*utils.MinioClient, error)

func NewMinioExtraConn

func NewMinioExtraConn() (utils.ExtraConn, error)

func NewMinioIntraConn

func NewMinioIntraConn() (utils.IntraConn, error)

Types

type RedisClient

type RedisClient struct {
	// contains filtered or unexported fields
}

func InitRedis

func InitRedis() (*RedisClient, error)

func (*RedisClient) Delete

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

func (*RedisClient) Get

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

func (*RedisClient) Set

func (r *RedisClient) Set(key string, value any, rest ...any) error

Jump to

Keyboard shortcuts

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