loggermock

package
v2.38.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package loggermock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRequestLogger

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

MockRequestLogger is a mock of RequestLogger interface.

func NewMockRequestLogger

func NewMockRequestLogger(ctrl *gomock.Controller) *MockRequestLogger

NewMockRequestLogger creates a new mock instance.

func (*MockRequestLogger) EXPECT

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

func (*MockRequestLogger) WithAuthContext

func (m *MockRequestLogger) WithAuthContext(actor rbac.Subject)

WithAuthContext mocks base method.

func (*MockRequestLogger) WithFields

func (m *MockRequestLogger) WithFields(fields ...slog.Field)

WithFields mocks base method.

func (*MockRequestLogger) WriteLog

func (m *MockRequestLogger) WriteLog(ctx context.Context, status int)

WriteLog mocks base method.

type MockRequestLoggerMockRecorder

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

MockRequestLoggerMockRecorder is the mock recorder for MockRequestLogger.

func (*MockRequestLoggerMockRecorder) WithAuthContext

func (mr *MockRequestLoggerMockRecorder) WithAuthContext(actor any) *gomock.Call

WithAuthContext indicates an expected call of WithAuthContext.

func (*MockRequestLoggerMockRecorder) WithFields

func (mr *MockRequestLoggerMockRecorder) WithFields(fields ...any) *gomock.Call

WithFields indicates an expected call of WithFields.

func (*MockRequestLoggerMockRecorder) WriteLog

func (mr *MockRequestLoggerMockRecorder) WriteLog(ctx, status any) *gomock.Call

WriteLog indicates an expected call of WriteLog.

Jump to

Keyboard shortcuts

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