api

package
v0.0.0-...-61e4535 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	User  *model.User
	Cache *units.Cached[string, string]
	http.ResponseWriter
	*http.Request
	// contains filtered or unexported fields
}

func (*Action) Binary

func (a *Action) Binary(contentType string, value goja.Value)

func (*Action) BinaryBody

func (a *Action) BinaryBody() any

func (*Action) Dump

func (a *Action) Dump() string

func (*Action) Json

func (a *Action) Json(value goja.Value)

func (*Action) JsonBody

func (a *Action) JsonBody() any

func (*Action) Ok

func (a *Action) Ok()

func (*Action) Redirect

func (a *Action) Redirect(url string, status int)

func (*Action) SearchQuery

func (a *Action) SearchQuery(key string) string

func (*Action) Status

func (a *Action) Status(code int)

func (*Action) Text

func (a *Action) Text(text string)

func (*Action) TextBody

func (a *Action) TextBody() any

Jump to

Keyboard shortcuts

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