handlers

package
v0.0.0-...-ff62c10 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleReq

func HandleReq(h http.Handler) http.Handler

HandleReq wrapper for all requests to api

func HandleReqWithBearerToken

func HandleReqWithBearerToken(h http.Handler) http.Handler

Types

type DynamoHandler

type DynamoHandler struct {
	Name string
	Svc  *dynamodb.DynamoDB
}

DynamoHandler acts as a proxy between the mobile application and s3

func (DynamoHandler) ServeHTTP

func (dh DynamoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type FileQueryRequest

type FileQueryRequest struct {
	ParticipantID int    `json:"participantID"`
	Type          string `json:"type"`
	StartTime     string `json:"startTime"`
	EndTime       string `json:"endTime"`
}

FileQueryRequest payload for time of query needed

type Record

type Record struct {
	Size string
}

Record to unmarshall dynamo db return

Jump to

Keyboard shortcuts

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