handler

package
v1.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package handler contains the logic for handling Zendesk webhook events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler handles the events sent by a Zendesk trigger.

func New

func New(src *v1alpha1.ZendeskSource, logger *zap.SugaredLogger, ceClient cloudevents.Client,
	username, password string) *Handler

New returns an initialized Handler.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler. Converts incoming Zesndesk events to CloudEvents and sends them to the configured event sink.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL