base

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyAll           int = 0
	KeyToken         int = 1
	KeyPassword      int = 2
	KeyCpuUseRate    int = 3
	KeyMemUseRate    int = 4
	KeyProcess       int = 5
	KeyProcessStatus int = 7
	KeyStatistic     int = 8
	KeyUpdate        int = 9
	KeyLicenseStatus int = 10
)
View Source
const (
	StatusCreated int = 1
	StatusUpdated int = 2
	StatusDeleted int = 3
)
View Source
const (
	OperateStart       string = "start"
	OperateStop        string = "stop"
	OperateRestart     string = "restart"
	OperateEnable      string = "enable"
	OperateDisable     string = "disable"
	OperateUpdate      string = "update"
	OperateConfig      string = "config"
	OperateDownloadLog string = "download_log"
	OperateConfigNet   string = "config_net"
)
View Source
const (
	UpdateUpdating int = 1
	UpdateSuccess  int = 2
	UpdateFail     int = 3
)
View Source
const (
	LicenseUnauthorized int = 0
	LicenseAuthorized   int = 1
	LicenseImporting    int = 2
)
View Source
const (
	AuthUuid     string = "uuid"
	AuthForever  string = "forever"
	AuthDatetime string = "datetime"
	AuthDuration string = "duration"
)
View Source
const (
	ValueTypeInt      string = "int"
	ValueTypeBool     string = "bool"
	ValueTypeString   string = "string"
	ValueTypeDatetime string = "datetime"
)
View Source
const (
	StatusTypeStarted string = "started" // 0: stopped, 1: started
)

Variables

View Source
var Sqlite *sqlite.Sqlite

Functions

This section is empty.

Types

type MemUsage

type MemUsage struct {
	Rate  uint32 `json:"rate"`
	Total uint64 `json:"total"`
	Avail uint64 `json:"avail"`
}

type Statistic

type Statistic struct {
	Total   int `json:"total"`
	Running int `json:"running"`
	Stopped int `json:"stopped"`
	Disable int `json:"disable"`
}

type UpdateNotification

type UpdateNotification struct {
	Status  int `json:"status"`
	Current int `json:"current"`
	Total   int `json:"total"`
}

Jump to

Keyboard shortcuts

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