webreceiver

package
v0.0.0-...-a1e463d Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2015 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(be backend.NotificationBackend, config ReceiverConfig) *App

func (*App) PostNotificationHandler

func (a *App) PostNotificationHandler(w http.ResponseWriter, r *http.Request)

func (*App) ServeHTTP

func (a *App) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ReceiverConfig

type ReceiverConfig struct {
	ListenHost string
	ListenPort int
	PathPrefix string            // Without the trailing slash
	Tokens     map[string]string // api token => origin name
}

Jump to

Keyboard shortcuts

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