staticbin

package module
v0.0.0-...-6eb52d1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2014 License: MIT Imports: 5 Imported by: 0

README

This package has been moved to https://github.com/martini-contrib/staticbin.

Documentation

Overview

Package staticbin provides a Martini middleware/handler for serving static files from binary data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Classic

func Classic(asset func(string) ([]byte, error)) *martini.ClassicMartini

Classic creates a classic Martini with a default Static.

func ClassicWithoutStatic

func ClassicWithoutStatic() *martini.ClassicMartini

ClassicWithoutStatic creates a classic Martini without a default Static.

func Static

func Static(dir string, Asset func(string) ([]byte, error), options ...Options) martini.Handler

Static returns a middleware handler that serves static files in the given directory.

Types

type Options

type Options struct {
	// SkipLogging will disable [Static] log messages when a static file is served.
	SkipLogging bool
}

Options represents configuration options for the staticbin.Static middleware.

Jump to

Keyboard shortcuts

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