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: 0

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