webhook

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(handler Handler) http.HandlerFunc

func NoContent

func NoContent(w http.ResponseWriter) error

func Params

func Params(r *http.Request) map[string]string

func String

func String(w http.ResponseWriter, status int, data string) error

Types

type Config

type Config struct {
	Address string `mapstructure:"address"`
}

type Handler

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

type Server

type Server struct {
	Config    Config
	Namespace string
	// contains filtered or unexported fields
}

func (*Server) InjectClient added in v0.1.0

func (s *Server) InjectClient(c client.Client) error

func (*Server) InjectLogger added in v0.1.0

func (s *Server) InjectLogger(l logr.Logger) error

func (*Server) Start added in v0.1.0

func (s *Server) Start(stop <-chan struct{}) error

func (*Server) Webhook

func (s *Server) Webhook(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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