ares

package module
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

ares

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseConfig added in v0.1.8

func GetBaseConfig() *config.BaseConfig

func GetConfig

func GetConfig() *viper.Viper

func GetEnv

func GetEnv() string

func InitConfigWithPath

func InitConfigWithPath(env string, configPath string)

Types

type Ares

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

func Default

func Default() *Ares

func NewAres

func NewAres() *Ares

func (*Ares) GetMemoryCache

func (a *Ares) GetMemoryCache() *cache.Cache

func (*Ares) GetMongo

func (a *Ares) GetMongo(alias string) *store.MongoDB

func (*Ares) GetOrm

func (a *Ares) GetOrm(alias string) *store.Orm

func (*Ares) GetRedis

func (a *Ares) GetRedis(alias string) *redis.Client

Directories

Path Synopsis
internal
mdw

Jump to

Keyboard shortcuts

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