Documentation ¶
Index ¶
- type GetDOMCountersCommand
- type GetDOMCountersCommandFn
- type GetDOMCountersReturn
- type MemoryAgent
- func (agent *MemoryAgent) Name() string
- func (agent *MemoryAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
- func (agent *MemoryAgent) SetGetDOMCountersHandler(handler func(GetDOMCountersCommand))
- func (agent *MemoryAgent) SetSetPressureNotificationsSuppressedHandler(handler func(SetPressureNotificationsSuppressedCommand))
- func (agent *MemoryAgent) SetSimulatePressureNotificationHandler(handler func(SimulatePressureNotificationCommand))
- type PressureLevel
- type SetPressureNotificationsSuppressedCommand
- func (c *SetPressureNotificationsSuppressedCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
- func (c *SetPressureNotificationsSuppressedCommand) Respond()
- func (c *SetPressureNotificationsSuppressedCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
- type SetPressureNotificationsSuppressedCommandFn
- type SetPressureNotificationsSuppressedReturn
- type SimulatePressureNotificationCommand
- type SimulatePressureNotificationCommandFn
- type SimulatePressureNotificationReturn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetDOMCountersCommand ¶
type GetDOMCountersCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*GetDOMCountersCommand) Initalize ¶
func (c *GetDOMCountersCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*GetDOMCountersCommand) Respond ¶
func (c *GetDOMCountersCommand) Respond(r *GetDOMCountersReturn)
func (*GetDOMCountersCommand) RespondWithError ¶
func (c *GetDOMCountersCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type GetDOMCountersCommandFn ¶
type GetDOMCountersCommandFn struct {
// contains filtered or unexported fields
}
func (*GetDOMCountersCommandFn) Load ¶
func (a *GetDOMCountersCommandFn) Load() func(GetDOMCountersCommand)
func (*GetDOMCountersCommandFn) Store ¶
func (a *GetDOMCountersCommandFn) Store(fn func(GetDOMCountersCommand))
type GetDOMCountersReturn ¶
type MemoryAgent ¶
type MemoryAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(conn *shared.Connection) *MemoryAgent
func (*MemoryAgent) Name ¶
func (agent *MemoryAgent) Name() string
func (*MemoryAgent) ProcessCommand ¶
func (agent *MemoryAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
func (*MemoryAgent) SetGetDOMCountersHandler ¶
func (agent *MemoryAgent) SetGetDOMCountersHandler(handler func(GetDOMCountersCommand))
Commands Sent From Frontend
func (*MemoryAgent) SetSetPressureNotificationsSuppressedHandler ¶
func (agent *MemoryAgent) SetSetPressureNotificationsSuppressedHandler(handler func(SetPressureNotificationsSuppressedCommand))
func (*MemoryAgent) SetSimulatePressureNotificationHandler ¶
func (agent *MemoryAgent) SetSimulatePressureNotificationHandler(handler func(SimulatePressureNotificationCommand))
type PressureLevel ¶
type PressureLevel string
const ( PressureLevelModerate PressureLevel = "moderate" PressureLevelCritical PressureLevel = "critical" )
type SetPressureNotificationsSuppressedCommand ¶
type SetPressureNotificationsSuppressedCommand struct { DestinationTargetID string Suppressed bool `json:"suppressed"` // If true, memory pressure notifications will be suppressed. // contains filtered or unexported fields }
func (*SetPressureNotificationsSuppressedCommand) Initalize ¶
func (c *SetPressureNotificationsSuppressedCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetPressureNotificationsSuppressedCommand) Respond ¶
func (c *SetPressureNotificationsSuppressedCommand) Respond()
func (*SetPressureNotificationsSuppressedCommand) RespondWithError ¶
func (c *SetPressureNotificationsSuppressedCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetPressureNotificationsSuppressedCommandFn ¶
type SetPressureNotificationsSuppressedCommandFn struct {
// contains filtered or unexported fields
}
func (*SetPressureNotificationsSuppressedCommandFn) Load ¶
func (a *SetPressureNotificationsSuppressedCommandFn) Load() func(SetPressureNotificationsSuppressedCommand)
func (*SetPressureNotificationsSuppressedCommandFn) Store ¶
func (a *SetPressureNotificationsSuppressedCommandFn) Store(fn func(SetPressureNotificationsSuppressedCommand))
type SetPressureNotificationsSuppressedReturn ¶
type SetPressureNotificationsSuppressedReturn struct { }
type SimulatePressureNotificationCommand ¶
type SimulatePressureNotificationCommand struct { DestinationTargetID string Level PressureLevel `json:"level"` // Memory pressure level of the notification. // contains filtered or unexported fields }
func (*SimulatePressureNotificationCommand) Initalize ¶
func (c *SimulatePressureNotificationCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SimulatePressureNotificationCommand) Respond ¶
func (c *SimulatePressureNotificationCommand) Respond()
func (*SimulatePressureNotificationCommand) RespondWithError ¶
func (c *SimulatePressureNotificationCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SimulatePressureNotificationCommandFn ¶
type SimulatePressureNotificationCommandFn struct {
// contains filtered or unexported fields
}
func (*SimulatePressureNotificationCommandFn) Load ¶
func (a *SimulatePressureNotificationCommandFn) Load() func(SimulatePressureNotificationCommand)
func (*SimulatePressureNotificationCommandFn) Store ¶
func (a *SimulatePressureNotificationCommandFn) Store(fn func(SimulatePressureNotificationCommand))
type SimulatePressureNotificationReturn ¶
type SimulatePressureNotificationReturn struct { }
Click to show internal directories.
Click to hide internal directories.