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 ¶
Types ¶
type ApiHandler ¶
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)
Click to show internal directories.
Click to hide internal directories.