server

package
v0.0.0-...-d8a6ef6 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server) error

func WithCSS

func WithCSS(path string) Option

func WithCookie

func WithCookie(name string) Option

func WithPublic

func WithPublic(path string) Option

func WithRoot

func WithRoot(path string) Option

func WithSecret

func WithSecret(secret string) Option

func WithSigningKey

func WithSigningKey(key string) Option

func WithTemplates

func WithTemplates(path string) Option

type Options

type Options []Option

type Renderer

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

type Server

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

func New

func New(options ...Option) (*Server, error)

func (*Server) Router

func (s *Server) Router() http.Handler

func (*Server) Routes

func (s *Server) Routes()

type User

type User struct {
	IsAuthenticated bool
}

Jump to

Keyboard shortcuts

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