initialize

package
v0.0.0-...-124573e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Datasource

func Datasource(config configs.Datasource) error

数据库

func Redis

func Redis(config configs.Redis) error

缓存

Types

type Setting

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

func ReadConfig

func ReadConfig() (*Setting, error)

读取配置

func (*Setting) ReadConfigStruct

func (s *Setting) ReadConfigStruct(k string, v interface{}) error

读取配置结构

Jump to

Keyboard shortcuts

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