Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidDirectory = errors.New("directory does not exist")
ErrInvalidDirectory indicates that the provided directory does not exist
Functions ¶
This section is empty.
Types ¶
type Static ¶
type Static struct { Port int // Port the server runs on. Uses the next available port if one is not provided. Cert string // Location of a certificate file for TLS Key string // Location of a key file for TLS Directory string // Directory the files should be served from // contains filtered or unexported fields }
Static is a static file server.
Files may be accessed via the route `/camera`.
func (*Static) ListenAndServe ¶
ListenAndServe begins listening on the configured port and serving static files.
Click to show internal directories.
Click to hide internal directories.