Documentation ¶
Index ¶
- func DecodeJsonRequest(r *http.Request, interfaceRef interface{}) error
- func GetDynamicPath(path string) string
- func RunJob(job Job)
- func ValidateRequest(data interface{}) error
- func View(path string, w http.ResponseWriter, content *interface{})
- type Job
- type JobHandler
- type JobResponse
- type JobResponseHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeJsonRequest ¶
func GetDynamicPath ¶
func ValidateRequest ¶
func ValidateRequest(data interface{}) error
func View ¶
func View(path string, w http.ResponseWriter, content *interface{})
Types ¶
type Job ¶
type Job struct { Handler JobHandler Args []byte DidSucceed JobResponseHandler DidFail JobResponseHandler DidTimeOut JobResponseHandler Timeout time.Duration RetryCount int }
type JobHandler ¶
type JobResponse ¶
type JobResponseHandler ¶
type JobResponseHandler = func(error)
Click to show internal directories.
Click to hide internal directories.