Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Runtime = &sdkruntimes.Runtime{ Desc: kittehs.Must1(sdktypes.StrictRuntimeFromProto(&sdktypes.RuntimePB{ Name: "python", FileExtensions: []string{"py"}, })), New: New, } )
Functions ¶
func New ¶
func New() (sdkservices.Runtime, error)
Types ¶
type CallbackMessage ¶ added in v0.4.6
type CallbackMessage struct { Name string `json:"name"` Args []string `json:"args"` Kw map[string]string `json:"kw"` Data []byte `json:"data"` }
py <-> go
func (CallbackMessage) Type ¶ added in v0.4.6
func (CallbackMessage) Type() string
type DoneMessage ¶ added in v0.5.7
type DoneMessage struct{}
func (DoneMessage) Type ¶ added in v0.5.7
func (DoneMessage) Type() string
type LogMessage ¶ added in v0.6.3
func (LogMessage) Type ¶ added in v0.6.3
func (LogMessage) Type() string
type Message ¶ added in v0.4.6
type Message struct { Type string `json:"type"` Payload json.RawMessage `json:"payload"` }
type ModuleMessage ¶ added in v0.4.6
type ModuleMessage struct {
Entries []string `json:"entries"`
}
py -> go
func (ModuleMessage) Type ¶ added in v0.4.6
func (ModuleMessage) Type() string
type ResponseMessage ¶ added in v0.4.6
type ResponseMessage struct {
Value []byte `json:"value"`
}
py <-> go
func (ResponseMessage) Type ¶ added in v0.4.6
func (ResponseMessage) Type() string
type RunMessage ¶ added in v0.4.6
go -> python
func (RunMessage) Type ¶ added in v0.4.6
func (RunMessage) Type() string
type SleepMessage ¶ added in v0.6.3
type SleepMessage struct {
Seconds float64 `json:"seconds"`
}
func (SleepMessage) Type ¶ added in v0.6.3
func (SleepMessage) Type() string
type SubMessage ¶ added in v0.4.6
type SubMessage interface { CallbackMessage | DoneMessage | LogMessage | ModuleMessage | ResponseMessage | RunMessage | SleepMessage Typed }
Click to show internal directories.
Click to hide internal directories.