Documentation ¶
Index ¶
Constants ¶
View Source
const ( ActionCreate = "create" ActionUpdate = "update" ActionDelete = "delete" ActionExport = "export" ActionImport = "import" )
View Source
const ( ValueTypeUser = "user" ValueTypeRole = "role" ValueTypeView = "view" ValueTypeViewGroup = "viewgroup" ValueTypePlayList = "playlist" ValueTypeEventFilter = "eventfilter" ValueTypeScenario = "scenario" ValueTypeMetaalarmRule = "metaalarmrule" ValueTypeDynamicInfo = "dynamicinfo" ValueTypeEntity = "entity" ValueTypeEntityService = "entityservice" ValueTypeEntityCategory = "entitycategory" ValueTypePbehaviorType = "pbehaviortype" ValueTypePbehaviorReason = "pbehaviorreason" ValueTypePbehaviorException = "pbehaviorexception" ValueTypePbehavior = "pbehavior" ValueTypeHeartbeat = "heartbeat" ValueTypeJobConfig = "jobconfig" ValueTypeJob = "job" ValueTypeInstruction = "instruction" ValueTypeStateSetting = "statesetting" ValueTypeBroadcastMessage = "broadcastmessage" ValueAssociativeTable = "associativetable" ValueTypeIdleRule = "idlerule" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionLogger ¶
type ActionLogger interface { Action(c *gin.Context, logEntry LogEntry) error Err(err error, msg string) }
func NewActionLogger ¶
func NewActionLogger(dbClient mongo.DbClient, zLog zerolog.Logger) ActionLogger
Click to show internal directories.
Click to hide internal directories.