ssr

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Island

type Island struct {
	ComponentPath string
	Props         map[string]interface{}
	Strategy      string
	ID            string
}

func NewIsland

func NewIsland(componentPath string, props map[string]interface{}, strategy string) *Island

func (*Island) RenderScript

func (i *Island) RenderScript() string

func (*Island) WrapContent

func (i *Island) WrapContent(content string) string

type RequestContext

type RequestContext struct {
	Request    *http.Request
	PathParams map[string]string
	Query      map[string]string
	Headers    map[string]string
}

func NewRequestContext

func NewRequestContext(r *http.Request, pathParams map[string]string) *RequestContext

func (*RequestContext) Header

func (rc *RequestContext) Header(key string) string

func (*RequestContext) Method

func (rc *RequestContext) Method() string

func (*RequestContext) Param

func (rc *RequestContext) Param(key string) string

func (*RequestContext) Path

func (rc *RequestContext) Path() string

func (*RequestContext) QueryParam

func (rc *RequestContext) QueryParam(key string) string

func (*RequestContext) URL

func (rc *RequestContext) URL() string

Jump to

Keyboard shortcuts

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