lxAudit

package
v1.2.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Insert         = "insert"
	Update         = "update"
	Delete         = "delete"
	DefaultTimeout = time.Second * 30
	PathLogEntry   = "/v1/log"
	PathLogEntries = "/v1/bulk/log"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditLogEntryError added in v1.0.0

type AuditLogEntryError struct {
	Code    int         `json:"-"`
	Message interface{} `json:"message"`
}

AuditLogError

func NewAuditLogEntryError added in v1.0.0

func NewAuditLogEntryError(code int, message ...interface{}) *AuditLogEntryError

AuditLogError creates a new AuditLogError instance.

func (*AuditLogEntryError) Error added in v1.0.0

func (e *AuditLogEntryError) Error() string

Error

type IAudit

type IAudit interface {
	LogEntry(action string, user, data interface{}, timeout ...time.Duration) error
	LogEntries(entries []interface{}, timeout ...time.Duration) error
}

IAudit interface for audit logger

func NewAudit added in v1.0.0

func NewAudit(clientHost, collectionName, auditHost, auditAuthKey string) IAudit

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