webhook

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter struct {
	Events    chan testkube.WebhookEvent
	Responses chan WebhookResult
	Log       *zap.SugaredLogger
}

func NewEmitter

func NewEmitter() *Emitter

func (*Emitter) Listen

func (s *Emitter) Listen(events chan testkube.WebhookEvent)

func (*Emitter) Notify

func (s *Emitter) Notify(event testkube.WebhookEvent)

func (*Emitter) RunWorkers

func (s *Emitter) RunWorkers()

func (*Emitter) Send

func (s *Emitter) Send(event testkube.WebhookEvent)

type WebhookHttpResponse

type WebhookHttpResponse struct {
	StatusCode int
	Body       string
}

type WebhookResult

type WebhookResult struct {
	Event    testkube.WebhookEvent
	Error    error
	Response WebhookHttpResponse
}

Jump to

Keyboard shortcuts

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