DjangoSSPanelAPI

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DjSspController

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

func (*DjSspController) GetNodeInfo

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

func (*DjSspController) GetNowInfo

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

func (*DjSspController) GetUser

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

func (*DjSspController) Init

func (djsspCtl *DjSspController) Init(cfg *structures.BaseConfig, idIndex uint32) (err error)

func (*DjSspController) PostAliveIP

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

func (*DjSspController) PostSysLoad

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

func (*DjSspController) PostTraffic

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

type SSUserTraffic

type SSUserTraffic struct {
	UserId          uint32 `json:"user_id"`
	DownloadTraffic int64  `json:"download_traffic"`
	UploadTraffic   int64  `json:"upload_traffic"`
}

type SSsyncReq

type SSsyncReq struct {
	UserTraffics *[]SSUserTraffic `json:"data"`
}

type UserTraffic

type UserTraffic struct {
	UserId          uint32 `json:"user_id"`
	DownloadTraffic int64  `json:"dt"`
	UploadTraffic   int64  `json:"ut"`
}

Jump to

Keyboard shortcuts

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