config

package
v1.5.33 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var C config

使用者根据自己需要修改这个结构体

Functions

func ConfigDecrypt added in v1.5.25

func ConfigDecrypt(cipherText []byte, keyLen int) ([]byte, error)

Decrypt 解密

func ExistConfig added in v1.5.25

func ExistConfig(configFileName string) bool

func InitConfig added in v1.5.25

func InitConfig()

func InitConfigV1 added in v1.5.25

func InitConfigV1[T any](confFile string, stru T)

解密配置文件

func ReadConfig added in v1.5.25

func ReadConfig[T any](fileName string, stru T) error

读取明文的配置文件

func ReadConfig2Byte added in v1.5.25

func ReadConfig2Byte(fileName string) ([]byte, error)

func ReadConfigForDecrypt added in v1.5.25

func ReadConfigForDecrypt[T any](fileName string, stru T, keyLen int) error

读取密文的配置文件

func UnmarshalConfig added in v1.5.25

func UnmarshalConfig[T any](bs []byte, stru T) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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