f5/types.go
2023-08-20 21:04:58 +08:00

43 lines
658 B
Go

package f5
import (
"q5"
)
const (
WSPROXYPACKHEAD_C_SIZE = 20
WSPROXYPACKHEAD_S_SIZE = 16
NET_MSG_MAGIC_CODE = uint16('K') + uint16('S') << 8
)
type MsgNode struct {
}
type IMMsgNode struct {
msgId uint16
params q5.Args
next *IMMsgNode
}
type Pagination struct {
Total int32
PerPage int32
CurrentPage int32
TotalPages int32
Rows *DataSet
}
type HandlerFunc func(*Context)
type QueryResultCb func (error, *DataSet)
type QueryOneCb func (error, *[]*string)
type PageQueryCb func (error, *Pagination)
type ExecResultCb func (error, int64, int64)
type middleware struct {
middlewareType int32
handlerFunc HandlerFunc
entry q5.ListHead
}