flow

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InternalError = "Internal DB Error"
)

Variables

This section is empty.

Functions

func DeleteFlow

func DeleteFlow(response http.ResponseWriter, request *http.Request, params httprouter.Params)

func GetFlow

func GetFlow(response http.ResponseWriter, request *http.Request, params httprouter.Params)

func GetFlowMetadata

func GetFlowMetadata(response http.ResponseWriter, request *http.Request, params httprouter.Params)

func HandleInternalError

func HandleInternalError(response http.ResponseWriter, err error)

func HandlerErrorResWithType

func HandlerErrorResWithType(response http.ResponseWriter, code int, err error, errorType string)

func HandlerErrorResponse

func HandlerErrorResponse(response http.ResponseWriter, code int, err error)

func ListAllFlow

func ListAllFlow(response http.ResponseWriter, request *http.Request, _ httprouter.Params)

func Ping

func Ping(response http.ResponseWriter, request *http.Request, _ httprouter.Params)

func SaveFlow

func SaveFlow(response http.ResponseWriter, request *http.Request, _ httprouter.Params)

Types

type FlowError

type FlowError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Type    string `json:type`
}

func ConstructError

func ConstructError(err error, code int, errType string) FlowError

Jump to

Keyboard shortcuts

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