ssr

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 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 Compiler

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

func New

func New(module *gomod.Module, transformer transformrt.Transformer) *Compiler

func (*Compiler) Compile

func (c *Compiler) Compile(ctx context.Context, fsys fs.FS) ([]byte, error)

func (*Compiler) GenerateFile

func (c *Compiler) GenerateFile(ctx context.Context, fsys overlay.F, file *overlay.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