package
Version:
v0.0.0-...-f36ebf9
Opens a new window with list of versions in this module.
Published: Aug 31, 2019
License: BSD-2-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
LogJobName is LogJob's unique identifier.
Do parses the SQS message and invokes Job.Do.
Job is the interfce implemented by jobs.
NewLogJob returns a LogJob.
LogJob is a job that simply prints a log message.
Do implements Job.Do by printing a log message.
type Message struct {
Job string `json:"job"`
}
Message models a job message sent to the queue.
NewMessage returns an initialized Message.
String implementes Stringer by marshaling the message to JSON.
NewJob is a function definition for functions that return initialized Jobs.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.