dbconf

package
v0.0.0-...-f73911a Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

* @Author: Wangjun * @Date: 2021-05-15 22:43:19 * @LastEditTime: 2023-09-12 17:28:54 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\config\dbconf\confdb.go * hnxr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(db *gorm.DB, appName string) (conf config.Configer, err error)

Load 加载配置来自文件

Types

type App

type App struct {
	DB   *gorm.DB
	Name string
}

type Conf

type Conf struct {
	config.Conf
	// contains filtered or unexported fields
}

Conf .

func (*Conf) Load

func (m *Conf) Load(file interface{}) (conf config.Configer, err error)

Load 从数据库加载配置

func (*Conf) Save

func (m *Conf) Save(file ...interface{}) (err error)

Save 保存到关系库

Jump to

Keyboard shortcuts

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