handlers

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Healthz

type Healthz struct{}

Healthz handles health check requests.

func (*Healthz) ServeHTTP

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

type Index

type Index struct{}

Index handles index requests.

func (*Index) Serve added in v1.10.0

func (h *Index) Serve(v url.Values) (int, string, error)

func (*Index) ServeHTTP

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

type Webhook

type Webhook struct {
	HTTPClientFactory func(context.Context) *http.Client // Default to http.DefaultClient
}

Webhook handles requests from JIRA webhook.

func (*Webhook) Serve added in v1.10.0

func (h *Webhook) Serve(ctx context.Context, v url.Values, body io.Reader) (int, error)

func (*Webhook) ServeHTTP

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

type WebhookParams

type WebhookParams struct {
	Webhook  string
	Username string
	Channel  string
	Icon     string
	Dialect  dialect.Dialect
	Debug    bool
}

Jump to

Keyboard shortcuts

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