Documentation ¶
Overview ¶
Package logs_mock is a generated GoMock package.
Index ¶
- type MockAuditLog
- func (m *MockAuditLog) Add(ctx context.Context, action string) error
- func (m *MockAuditLog) EXPECT() *MockAuditLogMockRecorder
- func (m *MockAuditLog) GetLogsBetweenInterval(ctx context.Context, start, end time.Time, userID string) ([]*go_audit_log.Log, error)
- func (m *MockAuditLog) GetLogsOfUser(ctx context.Context, userID string) ([]*go_audit_log.Log, error)
- type MockAuditLogMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuditLog ¶
type MockAuditLog struct {
// contains filtered or unexported fields
}
MockAuditLog is a mock of AuditLog interface
func NewMockAuditLog ¶
func NewMockAuditLog(ctrl *gomock.Controller) *MockAuditLog
NewMockAuditLog creates a new mock instance
func (*MockAuditLog) Add ¶
func (m *MockAuditLog) Add(ctx context.Context, action string) error
Add mocks base method
func (*MockAuditLog) EXPECT ¶
func (m *MockAuditLog) EXPECT() *MockAuditLogMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAuditLog) GetLogsBetweenInterval ¶
func (m *MockAuditLog) GetLogsBetweenInterval(ctx context.Context, start, end time.Time, userID string) ([]*go_audit_log.Log, error)
GetLogsBetweenInterval mocks base method
func (*MockAuditLog) GetLogsOfUser ¶
func (m *MockAuditLog) GetLogsOfUser(ctx context.Context, userID string) ([]*go_audit_log.Log, error)
GetLogsOfUser mocks base method
type MockAuditLogMockRecorder ¶
type MockAuditLogMockRecorder struct {
// contains filtered or unexported fields
}
MockAuditLogMockRecorder is the mock recorder for MockAuditLog
func (*MockAuditLogMockRecorder) Add ¶
func (mr *MockAuditLogMockRecorder) Add(ctx, action interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockAuditLogMockRecorder) GetLogsBetweenInterval ¶
func (mr *MockAuditLogMockRecorder) GetLogsBetweenInterval(ctx, start, end, userID interface{}) *gomock.Call
GetLogsBetweenInterval indicates an expected call of GetLogsBetweenInterval
func (*MockAuditLogMockRecorder) GetLogsOfUser ¶
func (mr *MockAuditLogMockRecorder) GetLogsOfUser(ctx, userID interface{}) *gomock.Call
GetLogsOfUser indicates an expected call of GetLogsOfUser
Click to show internal directories.
Click to hide internal directories.