webhook

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: MIT Imports: 14 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 {
	Client *k8s.Client
	Config Config
}

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) (err 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