Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
Handler handles HTTP for statecom
func NewHandler ¶
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
type SuccessHandler ¶
type SuccessHandler struct { Handler // contains filtered or unexported fields }
func NewSuccessHandler ¶
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)
Click to show internal directories.
Click to hide internal directories.