statecom

package
v0.0.0-...-55fbde6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(host, certPath, keyPath string, port int, store *datastore.Datastore, running *lifecycle.Running, queue *lifecycle.Queue)

Run runs the statecom server

Types

type Handler

type Handler struct {
	http.Handler
	Store   datastore.Datastore
	Running *lifecycle.Running
}

Handler handles HTTP for statecom

func NewHandler

func NewHandler(store *datastore.Datastore, running *lifecycle.Running) *Handler

NewHandler returns a pointer to a Handler struct

func (Handler) Create

func (h Handler) Create(res http.ResponseWriter, req *http.Request)

Create creats state of projects

func (*Handler) Get

func (h *Handler) Get(res http.ResponseWriter, req *http.Request)

Get gets the state of a project or projects

func (Handler) HandleUnsupported

func (h Handler) HandleUnsupported(res http.ResponseWriter, req *http.Request)

HandleUnsupported handles any unsupported methods

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(res http.ResponseWriter, req *http.Request)

ServeHTTP serves HTTP for statecom

type SuccessHandler

type SuccessHandler struct {
	Handler
	// contains filtered or unexported fields
}

func (SuccessHandler) Get

func (s SuccessHandler) Get(res http.ResponseWriter, req *http.Request)

func (SuccessHandler) Post

func (s SuccessHandler) Post(res http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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