Documentation ¶
Overview ¶
Package memory implements the Memory domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetDOMCountersReply ¶
type GetDOMCountersReply struct { Documents int `json:"documents"` // No description. Nodes int `json:"nodes"` // No description. JsEventListeners int `json:"jsEventListeners"` // No description. }
GetDOMCountersReply represents the return values for GetDOMCounters in the Memory domain.
type PressureLevel ¶
type PressureLevel int
PressureLevel Memory pressure level.
const ( PressureLevelNotSet PressureLevel = iota PressureLevelModerate PressureLevelCritical )
PressureLevel as enums.
func (PressureLevel) MarshalJSON ¶
func (e PressureLevel) MarshalJSON() ([]byte, error)
MarshalJSON encodes enum into a string or null when not set.
func (PressureLevel) String ¶
func (e PressureLevel) String() string
func (*PressureLevel) UnmarshalJSON ¶
func (e *PressureLevel) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes a string value into a enum.
type SetPressureNotificationsSuppressedArgs ¶
type SetPressureNotificationsSuppressedArgs struct {
Suppressed bool `json:"suppressed"` // If true, memory pressure notifications will be suppressed.
}
SetPressureNotificationsSuppressedArgs represents the arguments for SetPressureNotificationsSuppressed in the Memory domain.
func NewSetPressureNotificationsSuppressedArgs ¶
func NewSetPressureNotificationsSuppressedArgs(suppressed bool) *SetPressureNotificationsSuppressedArgs
NewSetPressureNotificationsSuppressedArgs initializes SetPressureNotificationsSuppressedArgs with the required arguments.
type SimulatePressureNotificationArgs ¶
type SimulatePressureNotificationArgs struct {
Level PressureLevel `json:"level"` // Memory pressure level of the notification.
}
SimulatePressureNotificationArgs represents the arguments for SimulatePressureNotification in the Memory domain.
func NewSimulatePressureNotificationArgs ¶
func NewSimulatePressureNotificationArgs(level PressureLevel) *SimulatePressureNotificationArgs
NewSimulatePressureNotificationArgs initializes SimulatePressureNotificationArgs with the required arguments.