Documentation ¶
Index ¶
- Variables
- func AddConfig()
- func CalcDpiScaledSize(SizeW int32, SizeH int32) (int32, int32)
- func CheckConfig() (config, controllerPort string)
- func CronTask()
- func Dashboard()
- func EditConfig(configName, configUrl string)
- func FileExist(path string) bool
- func GetMMDB(value mmdb.Type)
- func MenuConfigInit()
- func RegCmd(value cmd.GeneralType) error
- func RegCompare(command cmd.CommandType) (b bool)
- func ShowMenuConfig()
- func StyleMenuRun(w *walk.MainWindow, SizeW int32, SizeH int32)
- func TaskBuild() (xml []byte, err error)
- func TaskCommand(taskType task.Type) (err error)
- func TaskCommandCall(taskType task.Type, callback func(err error))
- type ConfigInfo
- type ConfigInfoModel
- type SubscriptionUserInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WindowMap = make(map[string]*walk.MainWindow) MenuConfig *walk.MainWindow )
Functions ¶
func CheckConfig ¶
func CheckConfig() (config, controllerPort string)
func EditConfig ¶
func EditConfig(configName, configUrl string)
func MenuConfigInit ¶
func MenuConfigInit()
func RegCompare ¶
func RegCompare(command cmd.CommandType) (b bool)
func ShowMenuConfig ¶
func ShowMenuConfig()
func StyleMenuRun ¶
func StyleMenuRun(w *walk.MainWindow, SizeW int32, SizeH int32)
func TaskCommand ¶
func TaskCommandCall ¶
TaskCommandCall 执行任务计划并回调
Types ¶
type ConfigInfo ¶
type ConfigInfoModel ¶
type ConfigInfoModel struct { walk.TableModelBase // contains filtered or unexported fields }
func NewConfigInfoModel ¶
func NewConfigInfoModel() *ConfigInfoModel
func (*ConfigInfoModel) Checked ¶
func (m *ConfigInfoModel) Checked(row int) bool
func (*ConfigInfoModel) ResetRows ¶
func (m *ConfigInfoModel) ResetRows()
func (*ConfigInfoModel) RowCount ¶
func (m *ConfigInfoModel) RowCount() int
func (*ConfigInfoModel) TaskCron ¶
func (m *ConfigInfoModel) TaskCron()
func (*ConfigInfoModel) Value ¶
func (m *ConfigInfoModel) Value(row, col int) interface{}
type SubscriptionUserInfo ¶
type SubscriptionUserInfo struct { Upload int64 `query:"upload"` Download int64 `query:"download"` Total int64 `query:"total"` Unused int64 Used int64 ExpireUnix int64 `query:"expire"` UsedInfo string UnusedInfo string ExpireInfo string }
func UpdateSubscriptionUserInfo ¶
func UpdateSubscriptionUserInfo() (userInfo SubscriptionUserInfo)
Click to show internal directories.
Click to hide internal directories.