config

package
v0.0.0-...-64045c7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevel             = "LOG_LEVEL"
	AiURL                = "AI_URL"
	AiKey                = "AI_KEY"
	LarkAppId            = "LARK_APP_ID"
	LarkAppSecret        = "LARK_APP_SECRET"
	WechatToken          = "WECHAT_TOKEN"
	TemplateAppToken     = "TEMPLATE_APP_TOKEN"
	TargetFolderAppToken = "TARGET_FOLDER_APP_TOKEN"
	DBAppToken           = "DB_APP_TOKEN"
	DBTableToken         = "DB_TABLE_TOKEN"
	AuditLogDBToken      = "AUDIT_LOG_DB_TOKEN"
	AuditLogTableToken   = "AUDIT_LOG_TABLE_TOKEN"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AIConfig

type AIConfig struct {
	AiURL string
	AiKey string
}

type Config

type Config struct {
	LogLevel logrus.Level
	LarkConfig
	AIConfig
	LarkDBConfig
	AuditLogDBToken    string
	AuditLogTableToken string
}

func GetConfig

func GetConfig() *Config

func Load

func Load() *Config

type LarkConfig

type LarkConfig struct {
	DbAppId              string
	DbAppSecret          string
	WechatToken          string
	TemplateAppToken     string
	TargetFolderAppToken string
}

func GetLarkConfig

func GetLarkConfig() LarkConfig

type LarkDBConfig

type LarkDBConfig struct {
	DBAppToken           string
	DBTableToken         string
	TemplateAppToken     string
	TargetFolderAppToken string
}

func GetLarkDBConfig

func GetLarkDBConfig() LarkDBConfig

Jump to

Keyboard shortcuts

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