conf

package
v0.0.0-...-e476057 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RelRootPath = "../"

Functions

This section is empty.

Types

type AppConf

type AppConf struct {
	OpenaiKey               string `toml:"OpenaiKey"`
	AppRootPath             string
	MySqlDB                 MySqlDB `toml:"MySqlDB"`
	WechatMpOpenID          string  `toml:"WechatMpOpenID"`
	WechatMpAppSecret       string  `toml:"WechatMpAppSecret"`
	NewUserLimitGptReplyNum int64   `toml:"NewUserLimitGptReplyNum"`
}

func InitAppConf

func InitAppConf() *AppConf

type MySqlDB

type MySqlDB struct {
	Host     string
	Port     string
	UserName string
	Password string
	Database string
}

Jump to

Keyboard shortcuts

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