studiohttp

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMaxBodyBytes = int64(1 << 20)

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeGenerator

type CodeGenerator interface {
	GenerateStudioBuilderCode(ctx context.Context, graph any) (any, error)
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(config HandlerConfig) *Handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w nethttp.ResponseWriter, r *nethttp.Request)

type HandlerConfig

type HandlerConfig struct {
	Validate     Validator
	Codegen      CodeGenerator
	YAML         YAMLExporter
	ImportYAML   YAMLImporter
	Run          Runner
	Save         Saver
	MaxBodyBytes int64
}

type Runner

type Runner interface {
	RunStudioGraph(ctx context.Context, graph any, req any) (any, error)
}

type Saver

type Saver interface {
	SaveStudioGraph(ctx context.Context, graph any) (any, error)
}

type Validator

type Validator interface {
	ValidateStudioGraph(ctx context.Context, graph any) (any, error)
}

type YAMLExporter

type YAMLExporter interface {
	GenerateStudioScenarioYAML(ctx context.Context, graph any) (any, error)
}

type YAMLImporter

type YAMLImporter interface {
	ImportStudioScenarioYAML(ctx context.Context, yaml []byte, layout any) (any, error)
}

Jump to

Keyboard shortcuts

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