staticfs

package
v0.0.0-...-7c5ca0a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseDir string
}

Config is the server configuration

func NewConfig

func NewConfig() Config

NewConfig creates a new server configuration It requires ENV vars:

BASEDIR

type StaticFileServer

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

StaticFileServer is a server that serves static files

func New

func New(config Config) *StaticFileServer

New creates a new StaticFileServer

func (*StaticFileServer) Start

func (s *StaticFileServer) Start(port int) error

Start starts the static file server

Jump to

Keyboard shortcuts

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