global

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const LogDir = "logs/"

Variables

View Source
var (
	GormDB *gorm.DB
	Config *model.ConfigModel
)
View Source
var (
	AsteroidDir string
	MiscDir     string

	RepositoryDir string
	IsolationDir  string
	BackupDir     string

	ConfigFile string
)
View Source
var (
	BroadcastInfoList          = make(chan string)
	BroadcastNoticeList        = make(chan string)
	BroadcastErrorList         = make(chan string)
	BroadcastHighlightInfoList = make(chan string)
)

Functions

func ErrorToChan

func ErrorToChan(msg string, err error)

func InfoHighlightToChan

func InfoHighlightToChan(obj ...interface{})

func InfoToChan

func InfoToChan(obj ...interface{})

func InitConfig

func InitConfig() error

func InitDB

func InitDB() error

func InitLog

func InitLog(runOnce bool) error

func InitProjDir

func InitProjDir() error

func NoticeToChan

func NoticeToChan(obj ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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