tracker

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() monitor.ModuleLogger

func Middleware

func Middleware(db boil.Executor) mux.MiddlewareFunc

func TimeNow

func TimeNow() time.Time

TimeNow returns the current time in UTC. The only way to set the local timezone in Go is to set the TZ env var. Otherwise all times are created using the local timezone of your OS. This can screw up your time comparisons if you're not careful. Best practice: always use UTC

func Touch

func Touch(db boil.Executor, userID int) error

Touch sets the wallet access time for a user to now

func Unload

func Unload(db boil.Executor, olderThan time.Duration) (int, error)

Unload unloads wallets of users who have not accessed their wallet recently

Types

This section is empty.

Jump to

Keyboard shortcuts

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