client

package
v0.0.0-...-a6644e4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinDataLocator

type BinDataLocator struct {
}

func (*BinDataLocator) Get

func (l *BinDataLocator) Get(path string) ([]byte, error)

type FsLocator

type FsLocator struct {
	Root string
}

func (*FsLocator) Get

func (l *FsLocator) Get(filePath string) ([]byte, error)

type Handler

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

func NewHandler

func NewHandler(res ResourceLocator) *Handler

func (*Handler) Handle

func (h *Handler) Handle(r *mux.Router)

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ResourceLocator

type ResourceLocator interface {
	Get(string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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