Documentation
¶
Index ¶
- type Error
- type OpResult
- type Progress
- func (p *Progress) Close()
- func (p *Progress) Describe() ([]byte, *Error)
- func (p *Progress) Dump() ([]byte, *Error)
- func (p *Progress) ResumeCall(result []byte) OpResult
- func (p *Progress) ResumeFutures(result []byte) OpResult
- func (p *Progress) ResumeLookup(result []byte) OpResult
- func (p *Progress) TakeRepl() ReplResult
- type Repl
- type ReplResult
- type Runner
- type RunnerResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is an owned handle for a Monty error object.
type OpResult ¶
type OpResult struct {
Progress *Progress
ProgressPayload []byte
Repl *Repl
Error *Error
Prints string
}
OpResult wraps start/resume/feed operations.
func LoadProgress ¶
LoadProgress restores a serialized progress handle.
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
Progress is an owned handle for an in-flight Monty snapshot.
func (*Progress) ResumeCall ¶
ResumeCall resumes a function or OS-call progress handle.
func (*Progress) ResumeFutures ¶
ResumeFutures resumes a future-resolution progress handle.
func (*Progress) ResumeLookup ¶
ResumeLookup resumes a name-lookup progress handle.
func (*Progress) TakeRepl ¶
func (p *Progress) TakeRepl() ReplResult
TakeRepl extracts a REPL handle from a progress object.
type Repl ¶
type Repl struct {
// contains filtered or unexported fields
}
Repl is an owned handle for a Monty REPL session.
type ReplResult ¶
ReplResult wraps REPL construction or load results.
func NewRepl ¶
func NewRepl(options []byte) ReplResult
NewRepl constructs a new REPL from JSON options.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner is an owned handle for a compiled Monty runner.
type RunnerResult ¶
RunnerResult wraps runner construction or load results.
func LoadRunner ¶
func LoadRunner(data []byte) RunnerResult
LoadRunner restores a runner from a serialized byte slice.
func NewRunner ¶
func NewRunner(code []byte, options []byte) RunnerResult
NewRunner constructs a compiled runner from source code plus JSON options.