Documentation ¶
Index ¶
- type DetachedEvent
- type DisableCommand
- type DisableCommandFn
- type DisableReturn
- type EnableCommand
- type EnableCommandFn
- type EnableReturn
- type InspectorAgent
- func (agent *InspectorAgent) FireDetached(event DetachedEvent)
- func (agent *InspectorAgent) FireDetachedOnTarget(targetId string, event DetachedEvent)
- func (agent *InspectorAgent) FireTargetCrashed()
- func (agent *InspectorAgent) FireTargetCrashedOnTarget(targetId string)
- func (agent *InspectorAgent) Name() string
- func (agent *InspectorAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
- func (agent *InspectorAgent) SetDisableHandler(handler func(DisableCommand))
- func (agent *InspectorAgent) SetEnableHandler(handler func(EnableCommand))
- type TargetCrashedEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetachedEvent ¶
type DetachedEvent struct {
Reason string `json:"reason"` // The reason why connection has been terminated.
}
type DisableCommand ¶
type DisableCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*DisableCommand) Initalize ¶
func (c *DisableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*DisableCommand) Respond ¶
func (c *DisableCommand) Respond()
func (*DisableCommand) RespondWithError ¶
func (c *DisableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type DisableCommandFn ¶
type DisableCommandFn struct {
// contains filtered or unexported fields
}
func (*DisableCommandFn) Load ¶
func (a *DisableCommandFn) Load() func(DisableCommand)
func (*DisableCommandFn) Store ¶
func (a *DisableCommandFn) Store(fn func(DisableCommand))
type DisableReturn ¶
type DisableReturn struct { }
type EnableCommand ¶
type EnableCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*EnableCommand) Initalize ¶
func (c *EnableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*EnableCommand) Respond ¶
func (c *EnableCommand) Respond()
func (*EnableCommand) RespondWithError ¶
func (c *EnableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type EnableCommandFn ¶
type EnableCommandFn struct {
// contains filtered or unexported fields
}
func (*EnableCommandFn) Load ¶
func (a *EnableCommandFn) Load() func(EnableCommand)
func (*EnableCommandFn) Store ¶
func (a *EnableCommandFn) Store(fn func(EnableCommand))
type EnableReturn ¶
type EnableReturn struct { }
type InspectorAgent ¶
type InspectorAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(conn *shared.Connection) *InspectorAgent
func (*InspectorAgent) FireDetached ¶
func (agent *InspectorAgent) FireDetached(event DetachedEvent)
Dispatchable Events
func (*InspectorAgent) FireDetachedOnTarget ¶
func (agent *InspectorAgent) FireDetachedOnTarget(targetId string, event DetachedEvent)
func (*InspectorAgent) FireTargetCrashed ¶
func (agent *InspectorAgent) FireTargetCrashed()
func (*InspectorAgent) FireTargetCrashedOnTarget ¶
func (agent *InspectorAgent) FireTargetCrashedOnTarget(targetId string)
func (*InspectorAgent) Name ¶
func (agent *InspectorAgent) Name() string
func (*InspectorAgent) ProcessCommand ¶
func (agent *InspectorAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
func (*InspectorAgent) SetDisableHandler ¶
func (agent *InspectorAgent) SetDisableHandler(handler func(DisableCommand))
func (*InspectorAgent) SetEnableHandler ¶
func (agent *InspectorAgent) SetEnableHandler(handler func(EnableCommand))
Commands Sent From Frontend
type TargetCrashedEvent ¶
type TargetCrashedEvent struct { }
Click to show internal directories.
Click to hide internal directories.