log

package
v0.0.0-...-0de623a Latest Latest
Warning

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

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

Documentation

Overview

Package log is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var Log log

Functions

func Init

func Init(path string, isDebug bool)

Types

type ILog

type ILog interface {
	GetLogger() *logrus.Logger
	Debug(format string, args ...interface{})
	Info(format string, args ...interface{})
	Warn(format string, args ...interface{})
	Error(format string, args ...interface{})
	Fatal(format string, args ...interface{})
}

type MockILog

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

MockILog is a mock of ILog interface.

func NewMockILog

func NewMockILog(ctrl *gomock.Controller) *MockILog

NewMockILog creates a new mock instance.

func (*MockILog) Debug

func (m *MockILog) Debug(format string, args ...interface{})

Debug mocks base method.

func (*MockILog) EXPECT

func (m *MockILog) EXPECT() *MockILogMockRecorder

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

func (*MockILog) Error

func (m *MockILog) Error(format string, args ...interface{})

Error mocks base method.

func (*MockILog) Fatal

func (m *MockILog) Fatal(format string, args ...interface{})

Fatal mocks base method.

func (*MockILog) GetLogger

func (m *MockILog) GetLogger() *logrus.Logger

GetLogger mocks base method.

func (*MockILog) Info

func (m *MockILog) Info(format string, args ...interface{})

Info mocks base method.

func (*MockILog) Warn

func (m *MockILog) Warn(format string, args ...interface{})

Warn mocks base method.

type MockILogMockRecorder

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

MockILogMockRecorder is the mock recorder for MockILog.

func (*MockILogMockRecorder) Debug

func (mr *MockILogMockRecorder) Debug(format interface{}, args ...interface{}) *gomock.Call

Debug indicates an expected call of Debug.

func (*MockILogMockRecorder) Error

func (mr *MockILogMockRecorder) Error(format interface{}, args ...interface{}) *gomock.Call

Error indicates an expected call of Error.

func (*MockILogMockRecorder) Fatal

func (mr *MockILogMockRecorder) Fatal(format interface{}, args ...interface{}) *gomock.Call

Fatal indicates an expected call of Fatal.

func (*MockILogMockRecorder) GetLogger

func (mr *MockILogMockRecorder) GetLogger() *gomock.Call

GetLogger indicates an expected call of GetLogger.

func (*MockILogMockRecorder) Info

func (mr *MockILogMockRecorder) Info(format interface{}, args ...interface{}) *gomock.Call

Info indicates an expected call of Info.

func (*MockILogMockRecorder) Warn

func (mr *MockILogMockRecorder) Warn(format interface{}, args ...interface{}) *gomock.Call

Warn indicates an expected call of Warn.

Jump to

Keyboard shortcuts

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