hooksvc

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MPL-2.0-no-copyleft-exception Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrCancelPR

type ErrCancelPR struct {
	PRID       int64
	Repository string
}

ErrCancelPR is the error returned when a pr should be canceled.

func (*ErrCancelPR) Error

func (ec *ErrCancelPR) Error() string

type Handler

type Handler struct {
	Config HandlerConfig `yaml:",inline"`
	// contains filtered or unexported fields
}

Handler is the hooksvc handler.

func (*Handler) Init

func (h *Handler) Init() error

Init initializes the handler.

func (*Handler) ServeHTTP

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

ServeHTTP is the primary handler returned by the server.

type HandlerConfig

type HandlerConfig struct {
	TLS           config.CertConfig `yaml:"tls"`
	QueueEndpoint string            `yaml:"queue_service"` // endpoint of queuesvc to submit to
	DataEndpoint  string            `yaml:"data_service"`
	LogEndpoint   string            `yaml:"log_service"`
}

HandlerConfig configures the hooksvc handler.

Jump to

Keyboard shortcuts

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