vps

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vps

type Vps struct {
	Url     string
	Keyword string
	Desc    string
	Name    string
}

type VpsMonitor

type VpsMonitor struct {
	VTU sync.Map              // map[string]map[int64]struct{} vps -> user
	C   chan map[int64]string // user -> msg
	// contains filtered or unexported fields
}

func NewVpsMonitor

func NewVpsMonitor() *VpsMonitor

func (*VpsMonitor) AddMonitor

func (t *VpsMonitor) AddMonitor(id int64, url string)

func (*VpsMonitor) CancelAndStart

func (t *VpsMonitor) CancelAndStart()

func (*VpsMonitor) GetList

func (t *VpsMonitor) GetList() map[string]*Vps

func (*VpsMonitor) Start

func (t *VpsMonitor) Start()

Jump to

Keyboard shortcuts

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