task

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Handling and running the task to query the current daily offer.

Index

Constants

This section is empty.

Variables

View Source
var OFFFER_TEMPLATE_STRING = ""

default values will be overridden with SetupValues

View Source
var URL = ""

Functions

func GetMessageText

func GetMessageText(storage *storage.StorageHelper) string

GetMessageText returns the current daily offer.

func SetupValues

func SetupValues(storage *storage.StorageHelper)

SetupValues sets up somem values needed for the task to be performed

func StartTask

func StartTask(offerChannel chan string)

StartTaks starts the task to be run cron like at 00:30 for the time "Europe/Zurich"

Types

This section is empty.

Jump to

Keyboard shortcuts

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