ssr

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator added in v0.2.6

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

func New

func New(module *gomod.Module, transformer *transformrt.Map) *Generator

func (*Generator) Compile added in v0.2.6

func (c *Generator) Compile(fsys fileSystem) ([]byte, error)

func (*Generator) GenerateFile added in v0.2.6

func (c *Generator) GenerateFile(fsys genfs.FS, file *genfs.File) error

type Response

type Response struct {
	Status  int               `json:"status,omitempty"`
	Headers map[string]string `json:"headers,omitempty"`
	Body    string            `json:"body,omitempty"`
}

Response from evaluating SSR files

func (*Response) Write

func (res *Response) Write(w http.ResponseWriter)

Jump to

Keyboard shortcuts

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