github

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HandlerConfigSet = wire.NewSet(
	wire.Struct(new(HandlerConfig), "*"),
)

HandlerConfigSet provides a handler config. nolint: gochecknoglobals

HandlerSet provides a handler. nolint: gochecknoglobals

Functions

This section is empty.

Types

type Config

type Config struct {
	Secret string `mapstructure:"secret"`
}

type Handler

type Handler struct {
	HandlerConfig
}

func NewHandler

func NewHandler(conf HandlerConfig, mgr manager.Manager) (*Handler, error)

func (*Handler) Handle added in v1.0.0

func (h *Handler) Handle(w http.ResponseWriter, r *http.Request) error

type HandlerConfig added in v1.0.0

type HandlerConfig struct {
	Config         Config
	Client         client.Client
	Recorder       record.EventRecorder
	TriggerHandler hookutil.TriggerHandler
}

func NewHandlerConfig added in v1.0.0

func NewHandlerConfig(conf Config, mgr manager.Manager) HandlerConfig

Jump to

Keyboard shortcuts

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