package
0.27.274
Repository: https://github.com/effective-security/porto.git
Documentation: pkg.go.dev

# Functions

New returns new task.
NewScheduler creates a new scheduler.
NewTask creates a new task from parsed format string.
NewTaskAtIntervals creates a new task with the time interval.
NewTaskDaily creates a new task to execute daily at specific time.
NewTaskOnWeekday creates a new task to execute on specific day of the week.
ParseSchedule parses a schedule string.
SetGlobalLocation the time location for the package.
WithID option to provide ID.
WithPublisher option to provide publisher.
WithRunTimeout option to provide run timeout.
WithTickerInterval option to provide ticker interval.

# Constants

Days specifies the time unit in days.
DefaultRunTimeoutInterval specify a timeout for a task to start.
DefaultTickerInterval for scheduler.
Hours specifies the time unit in hours.
Minutes specifies the time unit in minutes.
Never specifies the time unit to never run a task.
Seconds specifies the time unit in seconds.
Weeks specifies the time unit in weeks.

# Variables

TimeNow is a function that returns the current time.

# Structs

Schedule defines task schedule.

# Interfaces

Option configures how we set up the client.
Publisher defines a publisher interface.
Scheduler defines the scheduler interface.
Task defines task interface.

# Type aliases

TimeUnit specifies the time unit: 'minutes', 'hours'...