lxAudit

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Insert = "insert"
	Find   = "find"
	Update = "update"
	Upsert = "upsert"
	Remove = "remove"
)

Variables

This section is empty.

Functions

func InitAuditConfigInstance added in v0.3.0

func InitAuditConfigInstance(client *http.Client, auditHost, auditAuthKey, hostName string)

InitAuditInstance, set instance for auditConfig

Types

type IAudit

type IAudit interface {
	Log(action string, user, data interface{}) error
}

IAudit interface for lxaudit logger

func GetAuditInstance added in v0.3.0

func GetAuditInstance(dbHost, dbName, collectionName string) IAudit

GetAuditInstance, create new instance of audit with singleton auditConfig

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