interpreter

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: GPL-3.0 Imports: 15 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 *string `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
}

Jump to

Keyboard shortcuts

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