socket

package
v0.0.466 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, p *project.Project, mux *http.ServeMux)

Types

type CliDevEvent

type CliDevEvent struct {
	App    string `json:"app"`
	Stage  string `json:"stage"`
	Region string `json:"region"`
}

type Frame

type Frame struct {
	Raw string `json:"raw"`
}

type Invocation

type Invocation struct {
	ID     string            `json:"id,omitempty"`
	Source string            `json:"source,omitempty"`
	Cold   bool              `json:"cold,omitempty"`
	Input  json.RawMessage   `json:"input,omitempty"`
	Output interface{}       `json:"output,omitempty"`
	Start  int64             `json:"start,omitempty"`
	End    int64             `json:"end,omitempty"`
	Errors []InvocationError `json:"errors"`
	Logs   []InvocationLog   `json:"logs"`
	Report *InvocationReport `json:"report,omitempty"`
}

type InvocationError

type InvocationError struct {
	ID      string  `json:"id"`
	Error   string  `json:"error"`
	Message string  `json:"message"`
	Stack   []Frame `json:"stack"`
	Failed  bool    `json:"failed"`
}

type InvocationLog

type InvocationLog struct {
	ID        string `json:"id,omitempty"`
	Timestamp int64  `json:"timestamp,omitempty"`
	Message   string `json:"message,omitempty"`
}

type InvocationReport

type InvocationReport struct {
	Duration int64  `json:"duration"`
	Init     int64  `json:"init"`
	Size     int64  `json:"size"`
	Memory   int64  `json:"memory"`
	Xray     string `json:"xray"`
}

Jump to

Keyboard shortcuts

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