Documentation ¶
Index ¶
- type Monitor
- func (m *Monitor) AcceptRequest(req *rpc.StartEgressRequest)
- func (m *Monitor) CanAcceptRequest(req *rpc.StartEgressRequest) bool
- func (m *Monitor) EgressEnded(req *rpc.StartEgressRequest)
- func (m *Monitor) EgressStarted(req *rpc.StartEgressRequest)
- func (m *Monitor) GetCPULoad() float64
- func (m *Monitor) Start(conf *config.ServiceConfig, isAvailable func() float64) error
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 ¶
Click to show internal directories.
Click to hide internal directories.