fuzzplayground

package
v3.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

This package provides a mock server for testing fuzzing templates

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup()

Cleanup cleans up the temporary database directory

Types

type PlaygroundServer added in v3.10.0

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

PlaygroundServer wraps the fuzz playground handler with the lifecycle methods used by the integration tests and the standalone playground command.

func GetPlaygroundServer

func GetPlaygroundServer() *PlaygroundServer

func (*PlaygroundServer) Close added in v3.10.0

func (s *PlaygroundServer) Close() error

func (*PlaygroundServer) ServeHTTP added in v3.10.0

func (s *PlaygroundServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*PlaygroundServer) Start added in v3.10.0

func (s *PlaygroundServer) Start(addr string) error

type Posts

type Posts struct {
	ID      int
	Title   string
	Content string
	Lang    string
}

type User

type User struct {
	XMLName xml.Name `xml:"user"`
	ID      int      `xml:"id"`
	Name    string   `xml:"name"`
	Age     int      `xml:"age"`
	Role    string   `xml:"role"`
}

Jump to

Keyboard shortcuts

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