Documentation ¶
Overview ¶
Service js provides JavaScript scripting for the sarif network.
Index ¶
- Variables
- type Config
- type ContentPayload
- type Dependencies
- type Machine
- func (m *Machine) Attach(listener string)
- func (m *Machine) Disable() error
- func (m *Machine) Do(code string) (string, error, interface{})
- func (m *Machine) Enable() error
- func (m *Machine) FlushOut() string
- func (m *Machine) InformListeners(action, message string)
- func (m *Machine) RegisterModule(name string, module map[string]interface{})
- type MsgMachineAllStatus
- type MsgMachineStatus
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = &services.Module{ Name: "js", Version: "1.0", NewInstance: NewService, }
Functions ¶
This section is empty.
Types ¶
type ContentPayload ¶
func (ContentPayload) Text ¶
func (p ContentPayload) Text() string
type Dependencies ¶
type Machine ¶
type Machine struct { sarif.Client Modules *motto.Motto VM *otto.Otto StateLock sync.Mutex OutputBuffer string Listeners []string }
func NewMachine ¶
func (*Machine) InformListeners ¶
func (*Machine) RegisterModule ¶
type MsgMachineAllStatus ¶
func (MsgMachineAllStatus) Text ¶
func (s MsgMachineAllStatus) Text() string
type MsgMachineStatus ¶
type MsgMachineStatus struct { Machine string `json:"machine,omitempty"` Status string `json:"status,omitempty"` Out string `json:"out,omitempty"` }
func (MsgMachineStatus) String ¶
func (p MsgMachineStatus) String() string
Click to show internal directories.
Click to hide internal directories.