capacity

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AWSSESLambdaAPIKey string
View Source
var CryptoKey string
View Source
var GarminSecret string
View Source
var GarminToken string
View Source
var JwtSecret string

JwtSecret will be set by main

Functions

func CreateAccessToken

func CreateAccessToken(capacity string, study string, ptID int64) string

CreateAccessToken for participants

Types

type AdminClaims

type AdminClaims struct {
	ID       int64  `json:"participant_id"`
	Capacity string `json:"capacity"`
	jwt.StandardClaims
}

AdminClaims claims create token with administrative policy

type NonAdminClaims

type NonAdminClaims struct {
	ID       int64  `json:"participant_id"`
	Capacity string `json:"capacity"`
	Study    string `json:"study"`
	jwt.StandardClaims
}

NonAdminClaims claims create token with coordinator or patient policy

Jump to

Keyboard shortcuts

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