mocks

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorHandler

type ErrorHandler struct {
	mock.Mock
}

ErrorHandler is an autogenerated mock type for the ErrorHandler type

func (*ErrorHandler) HandleError

func (_m *ErrorHandler) HandleError(error error, entry logger.Entry)

HandleError provides a mock function with given fields: error, entry

type FormatterInterface

type FormatterInterface struct {
	mock.Mock
}

FormatterInterface is an autogenerated mock type for the FormatterInterface type

func (*FormatterInterface) Format

func (_m *FormatterInterface) Format(entry logger.Entry) string

Format provides a mock function with given fields: entry

type LogInterface

type LogInterface struct {
	mock.Mock
}

LogInterface is an autogenerated mock type for the LogInterface type

func (*LogInterface) Log

func (_m *LogInterface) Log(message string, level logger.Level, field ...logger.Field)

Log provides a mock function with given fields: message, level, field

type LoggerInterface

type LoggerInterface struct {
	mock.Mock
}

LoggerInterface is an autogenerated mock type for the LoggerInterface type

func (*LoggerInterface) Alert

func (_m *LoggerInterface) Alert(message string, field ...logger.Field)

Alert provides a mock function with given fields: message, field

func (*LoggerInterface) Critical

func (_m *LoggerInterface) Critical(message string, field ...logger.Field)

Critical provides a mock function with given fields: message, field

func (*LoggerInterface) Debug

func (_m *LoggerInterface) Debug(message string, field ...logger.Field)

Debug provides a mock function with given fields: message, field

func (*LoggerInterface) Emergency

func (_m *LoggerInterface) Emergency(message string, field ...logger.Field)

Emergency provides a mock function with given fields: message, field

func (*LoggerInterface) Error

func (_m *LoggerInterface) Error(message string, field ...logger.Field)

Error provides a mock function with given fields: message, field

func (*LoggerInterface) Info

func (_m *LoggerInterface) Info(message string, field ...logger.Field)

Info provides a mock function with given fields: message, field

func (*LoggerInterface) Log

func (_m *LoggerInterface) Log(message string, level logger.Level, field ...logger.Field)

Log provides a mock function with given fields: message, level, field

func (*LoggerInterface) Notice

func (_m *LoggerInterface) Notice(message string, field ...logger.Field)

Notice provides a mock function with given fields: message, field

func (*LoggerInterface) Warning

func (_m *LoggerInterface) Warning(message string, field ...logger.Field)

Warning provides a mock function with given fields: message, field

type RotateWriter

type RotateWriter struct {
	mock.Mock
}

RotateWriter is an autogenerated mock type for the RotateWriter type

func (*RotateWriter) Rotate

func (_m *RotateWriter) Rotate() error

Rotate provides a mock function with given fields:

func (*RotateWriter) Write

func (_m *RotateWriter) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

type WrappableLoggerInterface

type WrappableLoggerInterface struct {
	mock.Mock
}

WrappableLoggerInterface is an autogenerated mock type for the WrappableLoggerInterface type

func (*WrappableLoggerInterface) Alert

func (_m *WrappableLoggerInterface) Alert(message string, field ...logger.Field)

Alert provides a mock function with given fields: message, field

func (*WrappableLoggerInterface) Critical

func (_m *WrappableLoggerInterface) Critical(message string, field ...logger.Field)

Critical provides a mock function with given fields: message, field

func (*WrappableLoggerInterface) Debug

func (_m *WrappableLoggerInterface) Debug(message string, field ...logger.Field)

Debug provides a mock function with given fields: message, field

func (*WrappableLoggerInterface) Emergency

func (_m *WrappableLoggerInterface) Emergency(message string, field ...logger.Field)

Emergency provides a mock function with given fields: message, field

func (*WrappableLoggerInterface) Error

func (_m *WrappableLoggerInterface) Error(message string, field ...logger.Field)

Error provides a mock function with given fields: message, field

func (*WrappableLoggerInterface) Info

func (_m *WrappableLoggerInterface) Info(message string, field ...logger.Field)

Info provides a mock function with given fields: message, field

func (*WrappableLoggerInterface) Log

func (_m *WrappableLoggerInterface) Log(message string, level logger.Level, field ...logger.Field)

Log provides a mock function with given fields: message, level, field

func (*WrappableLoggerInterface) Notice

func (_m *WrappableLoggerInterface) Notice(message string, field ...logger.Field)

Notice provides a mock function with given fields: message, field

func (*WrappableLoggerInterface) Warning

func (_m *WrappableLoggerInterface) Warning(message string, field ...logger.Field)

Warning provides a mock function with given fields: message, field

func (*WrappableLoggerInterface) Wrap

Wrap provides a mock function with given fields: middlewares

func (*WrappableLoggerInterface) WrapNew

WrapNew provides a mock function with given fields: middlewares

type Writer

type Writer struct {
	mock.Mock
}

Writer is an autogenerated mock type for the Writer type

func (*Writer) Write

func (_m *Writer) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

Jump to

Keyboard shortcuts

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