Files
ezbookkeeping/pkg/core/handler.go
T
2021-01-02 02:04:38 +08:00

13 lines
426 B
Go

package core
import "github.com/mayswind/lab/pkg/errs"
// MiddlewareHandlerFunc represents the middleware handler function
type MiddlewareHandlerFunc func(*Context)
// ApiHandlerFunc represents the api handler function
type ApiHandlerFunc func(*Context) (interface{}, *errs.Error)
// DataHandlerFunc represents the handler function that returns byte array
type DataHandlerFunc func(*Context) ([]byte, string, *errs.Error)