lxAudit

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Create = iota
	Read
	Update
	Delete
	Log
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditAction added in v0.1.1

type AuditAction int

AuditAction for analyses audit entries

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

type IAudit

type IAudit interface {
	SetupAudit() error
	Log(action int, user, message, data interface{}) chan bool
}

IAudit, interface for audit repositories

Directories

Path Synopsis
Package lxAuditMocks is a generated GoMock package.
Package lxAuditMocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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