snippets

package
v0.0.0-...-5778cac Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

package snippets defines a serverless function that proxies requests/responses to/from the Go playground, for the CUE playground.

The "interface" of such a package is that it declares a Function type that implements net/http.Handler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct {
	DevelopmentMode bool
}

Function is a type which implements net/http.Handler, a handler which implements the serverless function for the CUE playground snippet handling.

func (Function) ServeHTTP

func (fn Function) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP is the implementation of the snippets serverless function.

Jump to

Keyboard shortcuts

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