lxAudit

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package lxAudit is a generated GoMock package.

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

type MockIAudit added in v0.3.0

type MockIAudit struct {
	// contains filtered or unexported fields
}

MockIAudit is a mock of IAudit interface

func NewMockIAudit added in v0.3.0

func NewMockIAudit(ctrl *gomock.Controller) *MockIAudit

NewMockIAudit creates a new mock instance

func (*MockIAudit) EXPECT added in v0.3.0

func (m *MockIAudit) EXPECT() *MockIAuditMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIAudit) Log added in v0.3.0

func (m *MockIAudit) Log(arg0 string, arg1, arg2 interface{}) error

Log mocks base method

type MockIAuditMockRecorder added in v0.3.0

type MockIAuditMockRecorder struct {
	// contains filtered or unexported fields
}

MockIAuditMockRecorder is the mock recorder for MockIAudit

func (*MockIAuditMockRecorder) Log added in v0.3.0

func (mr *MockIAuditMockRecorder) Log(arg0, arg1, arg2 interface{}) *gomock.Call

Log indicates an expected call of Log

Jump to

Keyboard shortcuts

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