mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
support event stream
This commit is contained in:
@@ -15,6 +15,9 @@ type MiddlewareHandlerFunc func(*WebContext)
|
||||
// ApiHandlerFunc represents the api handler function
|
||||
type ApiHandlerFunc func(*WebContext) (any, *errs.Error)
|
||||
|
||||
// EventStreamApiHandlerFunc represents the event stream api handler function
|
||||
type EventStreamApiHandlerFunc func(*WebContext) *errs.Error
|
||||
|
||||
// DataHandlerFunc represents the handler function that returns file data byte array and file name
|
||||
type DataHandlerFunc func(*WebContext) ([]byte, string, *errs.Error)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user