Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuditUserToBson ¶
Types ¶
type AuditEvent ¶
type AuditEvent struct { Id primitive.ObjectID `json:"id" bson:"_id,omitempty"` User primitive.ObjectID `json:"user" bson:"user,omitempty"` IpLocal string `json:"ipLocal" bson:"ipLocal"` IpRemote string `json:"ipRemote" bson:"ipRemote"` Agent string `json:"agent" bson:"agent"` Auth bool `json:"auth" bson:"auth"` Token string `json:"token" bson:"token"` Consult bson.M `json:"consult" bson:"consult"` Operations []OperationAudit `json:"operations" bson:"operations"` }
type HistoryEvent ¶
type OperationAudit ¶
type OperationAudit struct { Id primitive.ObjectID `json:"id" bson:"_id,omitempty"` Operation primitive.ObjectID `json:"operation" bson:"operation"` Permission bool `json:"permission" bson:"permission"` NowStruct bson.M `json:"nowStruct" bson:"nowStruct"` NewStruct bson.M `json:"newStruct" bson:"newStruct"` Error string `json:"error" bson:"error"` Result bool `json:"result" bson:"result"` TimeB time.Time `json:"timeB" bson:"timeB"` TimeE time.Time `json:"timeE" bson:"timeE"` }
type RequestOptions ¶
Click to show internal directories.
Click to hide internal directories.