package
Version:
v0.0.0-...-401433d
Opens a new window with list of versions in this module.
Published: Feb 23, 2023
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
SharedKey = "crontab"
EnvironmentSecret = "CF_CRONTAB_SECRET"
DefaultAppName = "cf-crontab"
InternalDomain = "apps.internal"
)
type Amqp struct {
Exchange string `json:"exchange"`
ExchangeType string `json:"exchange_type"`
RoutingKey string `json:"routing_key"`
Payload string `json:"payload"`
ContentType string `json:"content_type"`
Instance string `json:"instance"`
Task *Task `json:"-"`
}
type Cartel struct {
Command string `json:"command"`
Name string `json:"name"`
Tags string `json:"tags"`
Instance string `json:"instance"`
Action string `json:"action"`
Task *Task `json:"-"`
}
type Http struct {
Method string `json:"method"`
URL string `json:"url"`
Body string `json:"body"`
Task *Task `json:"-"`
}
type Iron struct {
Command string `json:"command"`
CodeName string `json:"code_name"`
Cluster string `json:"cluster"`
Timeout int `json:"timeout"`
Payload string `json:"payload"`
Task *Task `json:"-"`
}
func (e *State) StartCron()
type Task struct {
Schedule string `json:"schedule"`
Job Job `json:"job"`
EntryID cron.EntryID `json:"entryID,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.