stats

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

func NewMonitor

func NewMonitor() *Monitor

func (*Monitor) AcceptRequest

func (m *Monitor) AcceptRequest(req *rpc.StartEgressRequest)

func (*Monitor) CanAcceptRequest

func (m *Monitor) CanAcceptRequest(req *rpc.StartEgressRequest) bool

func (*Monitor) EgressEnded

func (m *Monitor) EgressEnded(req *rpc.StartEgressRequest)

func (*Monitor) EgressStarted

func (m *Monitor) EgressStarted(req *rpc.StartEgressRequest)

func (*Monitor) GetCPULoad

func (m *Monitor) GetCPULoad() float64

func (*Monitor) Start

func (m *Monitor) Start(conf *config.ServiceConfig, isAvailable func() float64) error

Jump to

Keyboard shortcuts

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