database

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDb

func InitDb(username, password, dbAddr string, dbName string)

InitDb used in main function to initialize the database

func PgToJSON

func PgToJSON(rows *sql.Rows) []byte

Types

type AmossDB

type AmossDB struct {
	Db          *sql.DB
	Environment string
}

AmossDB global type to wrap database

var ADB AmossDB

ADB database instance for application

type JawboneUser

type JawboneUser struct {
	ParticipantID int
	Study         string
	WearableID    string
	AccessToken   string
	JawboneDate   string
}

JawboneUser contains data to make jawbone queries and send files to correct place on s3

func FindJawboneUsers

func FindJawboneUsers() []JawboneUser

FindJawboneUsers get user with there access token for jawbone requests

Jump to

Keyboard shortcuts

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