Documentation
¶
Index ¶
Constants ¶
View Source
const ( CommandScheduleDeployment string = "api-schedule-deployment" CommandUpdateDeployment string = "api-update-deployment" CommandCallbackMessage string = "api-callback-message" )
API Queue Commands
View Source
const ( CommandDeployNamespace string = "sch-deploy-namespace" // CommandRestartNamespace is the command used for scheduling a service restart in a namespace CommandRestartNamespace string = "sch-restart-namespace" )
Scheduler Queue Commands
View Source
const ( MessageAttributeReqID string = "x_req_id" MessageAttributeCommand string = "eve_cmd" MessageAttributeID string = "eve_id" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { MaxNumberOfMessage int64 `split_words:"true" default:"10"` QueueURL string `split_words:"true" required:"true"` WaitTimeSecond int64 `split_words:"true" default:"20"` VisibilityTimeout int64 `split_words:"true" default:"3600"` }
Config struct
type HandlerFunc ¶
HandlerFunc is used to define the Handler that is run on for each message
func (HandlerFunc) HandleMessage ¶
func (f HandlerFunc) HandleMessage(ctx context.Context, msg *M) error
HandleMessage wraps a function for handling sqs messages
Click to show internal directories.
Click to hide internal directories.