Documentation
¶
Overview ¶
Package backend defines resolved build-backend messages.
Index ¶
Constants ¶
View Source
const ( ProtocolVersion = 1 SchemaVersion = 2 )
Variables ¶
View Source
var ( ErrInvalidOperation = errors.New("backend: invalid operation") ErrMissingProfile = errors.New("backend: project has no selected profile") ErrMissingEntry = errors.New("backend: build requires an entry") ErrMissingOutput = errors.New("backend: build or run requires an output") ErrInvalidDefine = errors.New("backend: define value must be scalar") ErrInvalidCompiler = errors.New("backend: compiler path must be absolute") ErrInvalidOutput = errors.New("backend: output override must be absolute") )
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶
type Request ¶
type Request struct {
Kind string `json:"kind"`
SchemaVersion int `json:"schemaVersion"`
Operation Operation `json:"operation"`
ProjectRoot string `json:"projectRoot"`
Profile string `json:"profile"`
Target string `json:"target"`
Entry string `json:"entry,omitempty"`
Output string `json:"output,omitempty"`
IncludePaths []string `json:"includePaths"`
Defines map[string]string `json:"defines"`
Compiler *Compiler `json:"compiler,omitempty"`
Arguments []string `json:"arguments"`
}
type RequestOptions ¶
type Result ¶
type Result struct {
Kind string `json:"kind"`
SchemaVersion int `json:"schemaVersion"`
Status string `json:"status"`
Backend Identity `json:"backend"`
Artifacts []Artifact `json:"artifacts"`
Diagnostics []protocol.Diagnostic `json:"diagnostics"`
Process *Process `json:"process,omitempty"`
Runtime *Runtime `json:"runtime,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.