httphandlers

package
v0.0.0-...-95221f7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CorsSettings = cors.New(cors.Options{

	AllowedOrigins: []string{"*"},

	AllowedMethods:   []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
	AllowedHeaders:   []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},
	ExposedHeaders:   []string{"Link"},
	AllowCredentials: true,
	MaxAge:           300,
}).Handler

Functions

func NewClientHandler

func NewClientHandler() http.Handler

Types

type ApiHandler

type ApiHandler struct {
	http.Handler
}

func NewApiHandler

func NewApiHandler(fitDAL *dal.FitDAL) *ApiHandler

type FitHandler

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

FitHandler is an HTTP handler for fit files

func NewFitHandler

func NewFitHandler(dal *dal.FitDAL) *FitHandler

NewFitHandler creates a new FitHandler

func (*FitHandler) ServeHTTP

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

Jump to

Keyboard shortcuts

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