command

package module
v0.0.0-...-d744ff8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package command is a small module for setting up an small development server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Server

func Server(config string, sites ...Site) (s *httpserver.Server, err error)

Server returns a initialized and configured Server. custom authentication handlers are not configurable, since the server is preped for startup Returns nil on errors and creates the config if the file does not exist, in the later case server and error are nil The only middleware that is set up is: - db.Middleware - middleware.LogMiddleware

Types

type Site

type Site struct {
	// Config is the name of the mapitem with the config
	Config string
	// Site is the site itself
	Site httpserver.Site
}

Site is an simple type for wrapping sites and their config paths in the absence of an **kwargs equivalent.

Directories

Path Synopsis
Package main sets up an simple httpserver without any sites
Package main sets up an simple httpserver without any sites

Jump to

Keyboard shortcuts

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