fluitans

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package fluitans provides the Fluitans server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCSRFErrorHandler

func NewCSRFErrorHandler(
	tr godest.TemplateRenderer, l echo.Logger, ss *session.Store,
) http.HandlerFunc

func NewHTTPErrorHandler

func NewHTTPErrorHandler(tr godest.TemplateRenderer, ss *session.Store) echo.HTTPErrorHandler

Types

type ErrorData

type ErrorData struct {
	Code     int
	Error    httperr.DescriptiveError
	Messages []string
}

type Server

type Server struct {
	DBEmbeds database.Embeds
	Globals  *client.Globals
	Embeds   godest.Embeds
	Inlines  godest.Inlines
	Renderer godest.TemplateRenderer
	Handlers *routes.Handlers
}

func NewServer

func NewServer(logger godest.Logger) (s *Server, err error)

func (*Server) Close added in v0.5.2

func (s *Server) Close(e *echo.Echo) error

func (*Server) Register

func (s *Server) Register(e *echo.Echo) error

func (*Server) Run added in v0.5.2

func (s *Server) Run(e *echo.Echo) error

func (*Server) Shutdown added in v0.5.2

func (s *Server) Shutdown(ctx context.Context, e *echo.Echo) (err error)

Directories

Path Synopsis
Package auth provides application-level standardization for authentication
Package auth provides application-level standardization for authentication
Package client contains client code for external APIs
Package client contains client code for external APIs
Package conf supports environment variable-based application configuration
Package conf supports environment variable-based application configuration
Package handling provides utilities for handlers
Package handling provides utilities for handlers
Package routes contains the route handlers for the Fluitans server.
Package routes contains the route handlers for the Fluitans server.
assets
Package assets contains the route handlers for assets which are static for the server
Package assets contains the route handlers for assets which are static for the server
auth
Package auth contains the route handlers related to authentication and authorization.
Package auth contains the route handlers related to authentication and authorization.
cable
Package cable contains the route handlers serving Action Cables over WebSockets by implementing the Action Cable Protocol (https://docs.anycable.io/misc/action_cable_protocol) on the server.
Package cable contains the route handlers serving Action Cables over WebSockets by implementing the Action Cable Protocol (https://docs.anycable.io/misc/action_cable_protocol) on the server.
controllers
Package controllers contains the route handlers related to ZeroTier controllers.
Package controllers contains the route handlers related to ZeroTier controllers.
dns
Package dns contains the route handlers related to DNS records
Package dns contains the route handlers related to DNS records
home
Package home contains the route handlers related to the app's home screen.
Package home contains the route handlers related to the app's home screen.
networks
Package networks contains the route handlers related to ZeroTier networks.
Package networks contains the route handlers related to ZeroTier networks.
Package tmplfunc contains extension functions for templates
Package tmplfunc contains extension functions for templates
Package workers provides functionality which runs independently of request servicing.
Package workers provides functionality which runs independently of request servicing.

Jump to

Keyboard shortcuts

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