api

package
v0.0.0-...-bd3593b Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MUST_INCLUDE_ID = errors.New("Must include id")
)

Functions

This section is empty.

Types

type AllIncidents

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

handles the api methods for incidents

func NewAllIncidents

func NewAllIncidents(p *pipeline.Pipeline) *AllIncidents

func (*AllIncidents) EndPoint

func (a *AllIncidents) EndPoint() string

func (*AllIncidents) Get

list all the current incidents for the pipeline

type Deleter

type Deleter interface {
	Delete(http.ResponseWriter, *http.Request)
}

provides an http "DELETE" method

type EndPointer

type EndPointer interface {
	EndPoint() string
}

return the end point for this method

type Getter

type Getter interface {
	Get(http.ResponseWriter, *http.Request)
}

provides an http "GET" method

type Incident

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

handles the api methods for incidents

func NewIncident

func NewIncident(p *pipeline.Pipeline) *Incident

func (*Incident) EndPoint

func (i *Incident) EndPoint() string

func (*Incident) Post

func (i *Incident) Post(w http.ResponseWriter, r *http.Request)

type Poster

type Poster interface {
	Post(http.ResponseWriter, *http.Request)
}

provides an http "POST" method

type Server

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

Serves the http api for bangarang

func NewServer

func NewServer(port int, pipe *pipeline.Pipeline, auths []config.BasicAuth) *Server

func (*Server) Serve

func (s *Server) Serve() error

Jump to

Keyboard shortcuts

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