server

package
v0.0.0-...-89bd3ed Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const SupportedWebhookVersion = "4"

SupportedWebhookVersion is the alert webhook data version that is supported by this app

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represents a web server that processes webhooks

func New

func New(db internal.Storer, debug bool) Server

New returns a new web server

func (Server) Start

func (s Server) Start(address string)

Start starts a new server on the given address

Jump to

Keyboard shortcuts

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