handler

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMIDFromRequest added in v0.2.0

func GetMIDFromRequest(req *http.Request) (string, error)

GetMIDFromRequest extracts the measurement id ("mid") from a given HTTP request, if present.

A measurement ID can be specified in two ways: via a "mid" querystring parameter (when access tokens are not required) or via the ID field in the JWT access token.

Types

type Handler

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

func New

func New(archivalDataDir string) *Handler

func (*Handler) Download

func (h *Handler) Download(rw http.ResponseWriter, req *http.Request)

func (*Handler) Upload

func (h *Handler) Upload(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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