gutils

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CancelWaitTime = time.Second * 30

CancelWaitTime is the default GCP wait time for an operation

View Source
var DsClient *datastore.Client

DsClient is the global datastore client

View Source
var EntityType = "price-tracks"

EntityType is the EntityType in your datastore

View Source
var ProjectName = "project-order-management"

ProjectName is the project name in your GCP

Functions

func ConvReq2Ent

func ConvReq2Ent(req *models.CreateRequest) models.Entity

ConvReq2Ent converts CreateRequest to Entity in datastore

func FetchData

func FetchData(n int) []models.Entity

FetchData fetches n records from datastore that needs to be checked

func Refresh

func Refresh(pushClient *pushover.Client, fetchLimit int)

Refresh refreshes prices from datastore

func Schedule

func Schedule(what func(), delay time.Duration) chan bool

Schedule schedules a task that is running in the background and can be kill by the chan returned by the function

Types

This section is empty.

Jump to

Keyboard shortcuts

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