Documentation
¶
Index ¶
- func SendJsonErrorResponse(w http.ResponseWriter, response interface{}, err string)
- func SendJsonResponse(w http.ResponseWriter, response interface{}, err error)
- func SetupStatRouter(pool db.DBPool, prefix string, writeToFile bool, middleware RestMiddleware) *pat.PatternServeMux
- func SetupTaskRouter(pool db.DBPool, prefix string, writeToFile bool, middleware RestMiddleware) *pat.PatternServeMux
- type Response
- type RestMiddleware
- type StatServices
- type TaskServices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendJsonErrorResponse ¶
func SendJsonErrorResponse(w http.ResponseWriter, response interface{}, err string)
func SendJsonResponse ¶
func SendJsonResponse(w http.ResponseWriter, response interface{}, err error)
func SetupStatRouter ¶
func SetupStatRouter(pool db.DBPool, prefix string, writeToFile bool, middleware RestMiddleware) *pat.PatternServeMux
func SetupTaskRouter ¶
func SetupTaskRouter(pool db.DBPool, prefix string, writeToFile bool, middleware RestMiddleware) *pat.PatternServeMux
Types ¶
type RestMiddleware ¶
type RestMiddleware func(http.HandlerFunc, ...func(http.HandlerFunc) http.HandlerFunc) http.HandlerFunc
type StatServices ¶
type StatServices struct {
// contains filtered or unexported fields
}
func NewStatServices ¶
func NewStatServices(statAPI *api.StatAPI) *StatServices
func SetupStats ¶
func SetupStats(pool db.DBPool) *StatServices
type TaskServices ¶
type TaskServices struct {
// contains filtered or unexported fields
}
func NewTaskServices ¶
func NewTaskServices(taskAPI *api.TaskAPI) *TaskServices
func SetupTasks ¶
func SetupTasks(pool db.DBPool) *TaskServices
Click to show internal directories.
Click to hide internal directories.