tools

package
v0.0.0-...-f368eb9 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckInNetwork

func CheckInNetwork(next http.Handler) http.Handler

Prevent out-of-network requests to dashboard endpoints

func ConnectSqlite

func ConnectSqlite(filePath string) (*sql.DB, error)

func DebugLog

func DebugLog(message string)

func ParseStartAndEndDate

func ParseStartAndEndDate(r *http.Request) (string, string)

Get the start and end dates from the request, format them for comparison with the DB

func RunMigrations

func RunMigrations(db *sql.DB) error

func StartAndEndDateToTime

func StartAndEndDateToTime(startDate string, endDate string) (time.Time, time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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