Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AggregatePlanFrame ¶
type CatchFrame ¶
type ConstantFrame ¶
type ConstantFrame struct {
Bool *bool `json:"bool,omitempty" msgpack:"bool,omitempty"`
Int *int64 `json:"int,omitempty" msgpack:"int,omitempty"`
Float *float64 `json:"float,omitempty" msgpack:"float,omitempty"`
String *string `json:"string,omitempty" msgpack:"string,omitempty"`
DateTime *string `json:"datetime,omitempty" msgpack:"datetime,omitempty"`
Type string `json:"type" msgpack:"type"`
Binary []byte `json:"binary,omitempty" msgpack:"binary,omitempty"`
}
type FunctionsFrame ¶
type FunctionsFrame struct {
Host []HostFunctionFrame `json:"host,omitempty" msgpack:"host,omitempty"`
UserDefined []UDFFrame `json:"userDefined,omitempty" msgpack:"userDefined,omitempty"`
}
type HostFunctionFrame ¶
type InstructionFrame ¶
type LabelFrame ¶
type MetadataFrame ¶
type MetadataFrame struct {
Labels []LabelFrame `json:"labels,omitempty" msgpack:"labels,omitempty"`
CompilerVersion string `json:"compilerVersion,omitempty" msgpack:"compilerVersion,omitempty"`
AggregatePlans []AggregatePlanFrame `json:"aggregatePlans,omitempty" msgpack:"aggregatePlans,omitempty"`
AggregateSelectorSlots []int `json:"aggregateSelectorSlots,omitempty" msgpack:"aggregateSelectorSlots,omitempty"`
MatchFailTargets []int `json:"matchFailTargets,omitempty" msgpack:"matchFailTargets,omitempty"`
DebugSpans []SpanFrame `json:"debugSpans,omitempty" msgpack:"debugSpans,omitempty"`
OptimizationLevel int `json:"optimizationLevel" msgpack:"optimizationLevel"`
}
type ProgramFrame ¶
type ProgramFrame struct {
ISAVersion *int `json:"isaVersion" msgpack:"isaVersion"`
Registers *int `json:"registers" msgpack:"registers"`
Bytecode *[]InstructionFrame `json:"bytecode" msgpack:"bytecode"`
Source *SourceFrame `json:"source,omitempty" msgpack:"source,omitempty"`
Functions FunctionsFrame `json:"functions" msgpack:"functions"`
Constants []ConstantFrame `json:"constants,omitempty" msgpack:"constants,omitempty"`
CatchTable []CatchFrame `json:"catchTable,omitempty" msgpack:"catchTable,omitempty"`
Params []string `json:"params,omitempty" msgpack:"params,omitempty"`
Metadata MetadataFrame `json:"metadata" msgpack:"metadata"`
}
func FromProgram ¶
func FromProgram(program *bytecode.Program) (ProgramFrame, error)
type SourceFrame ¶
Click to show internal directories.
Click to hide internal directories.