webhook

package
v0.9.18-beta004 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Events    chan testkube.WebhookEvent
	Responses chan WebhookResult
}

func NewServer

func NewServer() *Server

func (*Server) Listen

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

func (*Server) Notify

func (s *Server) Notify(event testkube.WebhookEvent, uris []string)

func (*Server) RunWorkers

func (s *Server) RunWorkers()

func (*Server) Send

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

type WebhookResult

type WebhookResult struct {
	Error    error
	Response *http.Response
}

Jump to

Keyboard shortcuts

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