handler

package
v0.0.0-...-2bd89a9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemplate

func GetTemplate(c echo.Context) error

func Play

func Play(c echo.Context) error

func ShowLanguages

func ShowLanguages(c echo.Context) error

func SocketPlay

func SocketPlay(c echo.Context) error

Types

type PlayParam

type PlayParam struct {
	Type     string   `json:"type"`
	Language string   `json:"language"`
	Filename string   `json:"filename"`
	Args     []string `json:"args"`
	Content  string   `json:"content" validate:"required"`
}

type PlayResponse

type PlayResponse struct {
	IsSystem  bool   `json:"is-system"`
	IsError   bool   `json:"is-error"`
	IsCompile bool   `json:"is-compile"`
	Text      string `json:"text"`
}

Jump to

Keyboard shortcuts

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