SSPanelAPI

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String2Uint32

func String2Uint32(s string) (uint32, error)

Types

type PostLoad

type PostLoad struct {
	Uptime uint64 `json:"uptime"`
	Load   string `json:"load"`
}

type SspController

type SspController struct {
	URL      string
	Key      string
	NodeInfo *structures.NodeInfo
}

func (*SspController) GetNodeInfo

func (sspCtl *SspController) GetNodeInfo(closeTLS bool) (err error)

func (*SspController) GetNowInfo

func (sspCtl *SspController) GetNowInfo() (nodeInfo *structures.NodeInfo)

func (*SspController) GetUser

func (sspCtl *SspController) GetUser() (userList *[]structures.UserInfo, err error)

func (*SspController) Init

func (sspCtl *SspController) Init(cfg *structures.BaseConfig, idIndex uint32) (err error)

func (*SspController) PostAliveIP

func (sspCtl *SspController) PostAliveIP(baseCfg *structures.BaseConfig, userIP *[]structures.UserIP) (err error)

func (*SspController) PostSysLoad

func (sspCtl *SspController) PostSysLoad(load *structures.SysLoad) (err error)

func (*SspController) PostTraffic

func (sspCtl *SspController) PostTraffic(trafficData *[]structures.UserTraffic) (err error)

Jump to

Keyboard shortcuts

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