interpreter

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2025 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandsResult

type CommandsResult struct {
	Interpreter  string
	TempFilename string
	ExitCode     int
	Stderr       string
	Stdout       string
}

type GetInstallationResult

type GetInstallationResult struct {
	StatusCode int
}

type Message

type Message struct {
	PostId              string      `json:"post_id"`
	Commands            *string     `json:"commands"`
	InterpreterOverride StringFalse `json:"interpreter_override"`
	GetInstallation     *bool       `json:"get_installation"`
}

func (*Message) CreatePostbackRequest added in v0.2.0

func (msg *Message) CreatePostbackRequest(ctx context.Context, device agent.Device, body io.Reader) (*http.Request, error)

func (*Message) Execute

func (msg *Message) Execute(ctx context.Context, device agent.Device) []byte

func (*Message) Parse

func (msg *Message) Parse(data []byte) error

type Result

type Result struct {
	PostId          string
	Commands        *CommandsResult
	GetInstallation *GetInstallationResult
}

type StringFalse added in v0.4.3

type StringFalse struct {
	Value string
}

func (*StringFalse) UnmarshalJSON added in v0.4.3

func (sf *StringFalse) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL