Documentation ¶
Index ¶
- type ClearMessagesCommand
- type ClearMessagesCommandFn
- type ClearMessagesReturn
- type ConsoleAgent
- func (agent *ConsoleAgent) FireMessageAdded(event MessageAddedEvent)
- func (agent *ConsoleAgent) FireMessageAddedOnTarget(targetId string, event MessageAddedEvent)
- func (agent *ConsoleAgent) Name() string
- func (agent *ConsoleAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
- func (agent *ConsoleAgent) SetClearMessagesHandler(handler func(ClearMessagesCommand))
- func (agent *ConsoleAgent) SetDisableHandler(handler func(DisableCommand))
- func (agent *ConsoleAgent) SetEnableHandler(handler func(EnableCommand))
- type ConsoleMessage
- type ConsoleMessageLevelEnum
- type ConsoleMessageSourceEnum
- type DisableCommand
- type DisableCommandFn
- type DisableReturn
- type EnableCommand
- type EnableCommandFn
- type EnableReturn
- type MessageAddedEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClearMessagesCommand ¶
type ClearMessagesCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*ClearMessagesCommand) Initalize ¶
func (c *ClearMessagesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ClearMessagesCommand) Respond ¶
func (c *ClearMessagesCommand) Respond()
func (*ClearMessagesCommand) RespondWithError ¶
func (c *ClearMessagesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ClearMessagesCommandFn ¶
type ClearMessagesCommandFn struct {
// contains filtered or unexported fields
}
func (*ClearMessagesCommandFn) Load ¶
func (a *ClearMessagesCommandFn) Load() func(ClearMessagesCommand)
func (*ClearMessagesCommandFn) Store ¶
func (a *ClearMessagesCommandFn) Store(fn func(ClearMessagesCommand))
type ClearMessagesReturn ¶
type ClearMessagesReturn struct { }
type ConsoleAgent ¶
type ConsoleAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(conn *shared.Connection) *ConsoleAgent
func (*ConsoleAgent) FireMessageAdded ¶
func (agent *ConsoleAgent) FireMessageAdded(event MessageAddedEvent)
Dispatchable Events
func (*ConsoleAgent) FireMessageAddedOnTarget ¶
func (agent *ConsoleAgent) FireMessageAddedOnTarget(targetId string, event MessageAddedEvent)
func (*ConsoleAgent) Name ¶
func (agent *ConsoleAgent) Name() string
func (*ConsoleAgent) ProcessCommand ¶
func (agent *ConsoleAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
func (*ConsoleAgent) SetClearMessagesHandler ¶
func (agent *ConsoleAgent) SetClearMessagesHandler(handler func(ClearMessagesCommand))
func (*ConsoleAgent) SetDisableHandler ¶
func (agent *ConsoleAgent) SetDisableHandler(handler func(DisableCommand))
func (*ConsoleAgent) SetEnableHandler ¶
func (agent *ConsoleAgent) SetEnableHandler(handler func(EnableCommand))
Commands Sent From Frontend
type ConsoleMessage ¶
type ConsoleMessage struct { Source ConsoleMessageSourceEnum `json:"source"` // Message source. Level ConsoleMessageLevelEnum `json:"level"` // Message severity. Text string `json:"text"` // Message text. Url *string `json:"url,omitempty"` // URL of the message origin. Line *int64 `json:"line,omitempty"` // Line number in the resource that generated this message (1-based). Column *int64 `json:"column,omitempty"` // Column number in the resource that generated this message (1-based). }
type ConsoleMessageLevelEnum ¶
type ConsoleMessageLevelEnum string
const ( ConsoleMessageLevelLog ConsoleMessageLevelEnum = "log" ConsoleMessageLevelWarning ConsoleMessageLevelEnum = "warning" ConsoleMessageLevelError ConsoleMessageLevelEnum = "error" ConsoleMessageLevelDebug ConsoleMessageLevelEnum = "debug" ConsoleMessageLevelInfo ConsoleMessageLevelEnum = "info" )
type ConsoleMessageSourceEnum ¶
type ConsoleMessageSourceEnum string
const ( ConsoleMessageSourceXml ConsoleMessageSourceEnum = "xml" ConsoleMessageSourceJavascript ConsoleMessageSourceEnum = "javascript" ConsoleMessageSourceNetwork ConsoleMessageSourceEnum = "network" ConsoleMessageSourceConsoleDashapi ConsoleMessageSourceEnum = "console-api" ConsoleMessageSourceStorage ConsoleMessageSourceEnum = "storage" ConsoleMessageSourceAppcache ConsoleMessageSourceEnum = "appcache" ConsoleMessageSourceRendering ConsoleMessageSourceEnum = "rendering" ConsoleMessageSourceSecurity ConsoleMessageSourceEnum = "security" ConsoleMessageSourceOther ConsoleMessageSourceEnum = "other" ConsoleMessageSourceDeprecation ConsoleMessageSourceEnum = "deprecation" ConsoleMessageSourceWorker ConsoleMessageSourceEnum = "worker" )
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 MessageAddedEvent ¶
type MessageAddedEvent struct {
Message ConsoleMessage `json:"message"` // Console message that has been added.
}
Click to show internal directories.
Click to hide internal directories.