Documentation
¶
Index ¶
- func AMQPHandler(msg *message.Message) ([]*message.Message, error)
- func GithubWebhookHandler(msg *message.Message) ([]*message.Message, error)
- func GrafanaHandler(msg *message.Message) ([]*message.Message, error)
- func GrafanaMarshaller(credentials string) http.MarshalMessageFunc
- func SetupRouter(router *message.Router, c Config, logger watermill.LoggerAdapter) error
- func SlackHandler(msg *message.Message) ([]*message.Message, error)
- func SlackMarshaller(url string, msg *message.Message) (*http.Request, error)
- type Config
- type DeploySimulator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AMQPHandler ¶
AMQPHandler receives a deployment message over AMQP and translates it into a commitDeployed event.
func GithubWebhookHandler ¶
GithubWebhookHandler receives GitHub webhooks and translates each commit details into a commitPushed event.
func GrafanaHandler ¶
GrafanaHandler receives an event and translates it into an annotation payload compatible with Grafana REST API.
func GrafanaMarshaller ¶
func GrafanaMarshaller(credentials string) http.MarshalMessageFunc
func SetupRouter ¶
func SlackHandler ¶
SlackHandler receives an event and translates it into a message payload compatible with Slack REST API.
Types ¶
type Config ¶
type Config struct { BindAddr string MetricsBindAddr string AMQPURI string AMQPQueue string KafkaBrokers []string KafkaTopic string GrafanaURL string GrafanaCredentials string SlackWebhookURL string }
func LoadConfig ¶
func LoadConfig() Config
type DeploySimulator ¶
DeploySimulator simulates deployment messages for each commitPushed event.
Click to show internal directories.
Click to hide internal directories.