Documentation
¶
Overview ¶
Service lua provides Lua scripting for the sarif network.
Index ¶
- Constants
- 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, arg interface{}) (string, error, interface{})
- func (m *Machine) Enable() error
- func (m *Machine) FlushOut() string
- func (m *Machine) InformListeners(action, message string)
- func (m *Machine) PreloadModuleString(name, source string) error
- type MsgMachineAllStatus
- type MsgMachineStatus
- type Service
Constants ¶
View Source
const ModFun string = `` /* 28899-byte string literal not displayed */
View Source
const ModStore string = `` /* 1018-byte string literal not displayed */
Variables ¶
View Source
var Module = &services.Module{ Name: "lua", 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
Lua *lua.LState
StateLock sync.Mutex
OutputBuffer string
Listeners []string
}
func NewMachine ¶
func (*Machine) InformListeners ¶
func (*Machine) PreloadModuleString ¶
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.