server

package
v0.0.0-...-07818df Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Port        string
	AssetPath   string
	AssetDir    string
	TmpPath     string
	TmpDir      string
	TemplateDir string
}

Server is the struct representing the port to serve on and paths to the assets.

func NewServer

func NewServer() *Server

NewServer returns a pointer to a Server.

func (*Server) Start

func (s *Server) Start() error

Start starts the server after it has been initialised with NewServer.

Jump to

Keyboard shortcuts

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