Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitLabWebhookHandler ¶
type GitLabWebhookHandler interface {
httphandler.FastHTTPHandler
}
GitLabWebhookHandler defines http handler behaviours.
type Handler ¶
type Handler struct {
MessageQueue chan *sarama.ProducerMessage
Logger *slog.Logger
Topic kafkacp.KafkaTopicIdentifier
Secret string
}
Handler represents http handler configuration and must satisfy GitLabWebhookHandler interface.
func (Handler) Handle ¶
func (h Handler) Handle(ctx *fasthttp.RequestCtx)
Handle is a fasthttp handler function.
type Option ¶
Option represents option function type.
func WithProducerGitLabMessageQueue ¶
func WithProducerGitLabMessageQueue(mq chan *sarama.ProducerMessage) Option
WithProducerGitLabMessageQueue sets kafka producer message queue for gitlab webhooks.
func WithWebhookSecret ¶
WithWebhookSecret sets gitlab webhook secret.
Click to show internal directories.
Click to hide internal directories.