in

package
v0.1.57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditChange added in v0.1.41

type AuditChange struct {
	Old string `json:"old,omitempty" bson:"old,omitempty"`
	New string `json:"new,omitempty" bson:"new,omitempty"`
}

type AuditLog added in v0.1.41

type AuditLog struct {
	Id             primitive.ObjectID     `json:"id,omitempty" bson:"_id,omitempty"`
	AuditMetaId    string                 `json:"audit_meta_id,omitempty" bson:"audit_meta_id,omitempty"`
	AuditEvent     string                 `json:"audit_event,omitempty" bson:"audit_event,omitempty"`
	AuditURL       string                 `json:"audit_url,omitempty" bson:"audit_url,omitempty"`
	AuditIPAddress string                 `json:"audit_ip_address,omitempty" bson:"audit_ip_address,omitempty"`
	AuditUserAgent string                 `json:"audit_user_agent,omitempty" bson:"audit_user_agent,omitempty"`
	AuditTags      []string               `json:"audit_tags,omitempty" bson:"audit_tags,omitempty"`
	AuditCreatedAt *time.Time             `json:"audit_created_at,omitempty" bson:"audit_created_at,omitempty"`
	AuditUpdatedAt *time.Time             `json:"audit_updated_at,omitempty" bson:"audit_updated_at,omitempty"`
	UserID         string                 `json:"user_id,omitempty" bson:"user_id,omitempty"`
	UserType       string                 `json:"user_type,omitempty" bson:"user_type,omitempty"`
	Change         map[string]AuditChange `json:"change,omitempty" bson:"change,omitempty"`
}

type AuditLogMeta added in v0.1.41

type AuditLogMeta struct {
	Id                   primitive.ObjectID     `json:"id,omitempty" bson:"_id,omitempty"`
	DocumentCurrentState map[string]interface{} `json:"document_current_state,omitempty" bson:"document_current_state,omitempty"`
}

type Hook

type Hook interface {
	PreSave(ctx context.Context, model interface{}, filter interface{}, col, ops, docId string)
	PostSave(ctx context.Context, model interface{}, filter interface{}, col, ops, docId string)
}

Hook interface for custom hooks

type Inject

type Inject struct {
}

type Test added in v0.1.9

type Test struct {
	*Inject
	Id   string
	Name string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL