web

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnInfo added in v0.0.23

type ColumnInfo struct {
	Name   string
	Param  string
	Sorted string
	Class  string
}

func (ColumnInfo) TitleArrow added in v0.0.23

func (c ColumnInfo) TitleArrow() string

func (ColumnInfo) URLString added in v0.0.23

func (c ColumnInfo) URLString() string

type Server

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

Server represents a SCUD web server. The SCUD web service can serve 2 different kinda of responses. The first is basic static vendor-provided files (called "assetFiles" here). An arbitrary number of them can be placed in assets/ and served up via a path prefix of /assets. They do not need individual routes to be specified. The second is htmx responses fragments. We never automatically serve templates (ie no mapping from template name to a URL route), there will always be a specific route or routes which use one or more templates to return a response.

func Create

func Create(bmm *db.BookmarkManager, cmm *db.ConfigManager) *Server

Create creates a new web server instance and sets up routing.

func (*Server) Start

func (s *Server) Start()

Start starts the web server, blocking forever.

Jump to

Keyboard shortcuts

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