Documentation ¶
Index ¶
Constants ¶
View Source
const ( Create = iota Read Update Delete Log )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditModel ¶
type AuditModel struct { TimeStamp time.Time `json:"timestamp" bson:"timestamp"` ServiceName string `json:"service_name" bson:"service_name"` ServiceHost string `json:"service_host" bson:"service_host"` Action int `json:"action" bson:"action"` User interface{} `json:"user" bson:"user"` Message interface{} `json:"msg" bson:"msg"` Data interface{} `json:"data" bson:"data"` }
AuditModel, model for audit entry
func (*AuditModel) ToJson ¶ added in v0.1.2
func (am *AuditModel) ToJson() string
ToJson, convert model to json string for log
Click to show internal directories.
Click to hide internal directories.