Documentation
¶
Index ¶
- Constants
- Variables
- func ErrText(code int64) string
- func MakeHttpRequest(method string, url string, beforeFn func(reader *bytes.Buffer), ...)
- func PanicErr(originErr error, code ...int64)
- func ToEvictor(evictor *model.Evictor) core.Evictor
- func ToEvictorModel(evictor core.Evictor) *model.Evictor
- func ToOperator(operator *model.Operator) core.Operator
- func ToOperatorModel(operator core.Operator) *model.Operator
- func ToTrigger(trigger *model.Trigger) core.Trigger
- func ToTriggerModel(trigger core.Trigger) *model.Trigger
- func ToWindow(window *model.Window) core.Windows
- func ToWindowModel(windows core.Windows) *model.Window
- func WrapDB(ctx context.Context, fn func(database *mongo.Database))
- type CalTaskRepo
- type Error
- type EvictorRepo
- type OperatorRepo
- type TriggerRepo
- type WindowsRepo
Constants ¶
View Source
const ( CommonError = 00010001 DeleteEffectRowsZero = 00010002 JsonIterator = 00010003 DBError = 00010004 ParamsValidateError = 00010005 BusinessParamsError = 00010006 WindowNotExists = 10001001 TriggerNotExists = 10001002 OperatorNotExists = 10001003 EvictorNotExists = 10001004 CalTaskNotFound = 10001005 )
Variables ¶
View Source
var DataFlowDB = "dataflow_db"
View Source
var EmptyDetail = make(map[string]any)
View Source
var MongoURI string
Functions ¶
func MakeHttpRequest ¶
Types ¶
type CalTaskRepo ¶
type Error ¶
func (*Error) SetDetails ¶
type EvictorRepo ¶
type OperatorRepo ¶
type TriggerRepo ¶
Click to show internal directories.
Click to hide internal directories.