web

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustStatic

func MustStatic() fs.FS

Types

type Kind

type Kind string
const (
	KindInfo  Kind = "info"
	KindError Kind = "error"
)

type Page

type Page struct {
	Offset int
	Limit  int
	Empty  bool
}

func (Page) Page

func (p Page) Page() int

type Web

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

func New

func New(db *ent.Client, brain *brain.Brain, baseURL string) (*Web, error)

func (*Web) DeleteMessage

func (w *Web) DeleteMessage(res http.ResponseWriter, req *http.Request)

func (*Web) Index

func (w *Web) Index(res http.ResponseWriter, req *http.Request)

func (*Web) Thread

func (w *Web) Thread(res http.ResponseWriter, req *http.Request)

func (*Web) Threads

func (w *Web) Threads(res http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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