notify

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNotifier

type MockNotifier struct {
	mock.Mock
}

MockNotifier is an autogenerated mock type for the Notifier type

func NewMockNotifier

func NewMockNotifier(t interface {
	mock.TestingT
	Cleanup(func())
},
) *MockNotifier

NewMockNotifier creates a new instance of MockNotifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockNotifier) EXPECT

func (_m *MockNotifier) EXPECT() *MockNotifier_Expecter

func (*MockNotifier) Errorf

func (_mock *MockNotifier) Errorf(format string, args ...any)

Errorf provides a mock function for the type MockNotifier

func (*MockNotifier) Infof

func (_mock *MockNotifier) Infof(format string, args ...any)

Infof provides a mock function for the type MockNotifier

func (*MockNotifier) SetLogger

func (_mock *MockNotifier) SetLogger(log logrus.FieldLogger)

SetLogger provides a mock function for the type MockNotifier

func (*MockNotifier) ShowError added in v1.3.0

func (_mock *MockNotifier) ShowError(err error)

ShowError provides a mock function for the type MockNotifier

type MockNotifier_Errorf_Call

type MockNotifier_Errorf_Call struct {
	*mock.Call
}

MockNotifier_Errorf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Errorf'

func (*MockNotifier_Errorf_Call) Return

func (*MockNotifier_Errorf_Call) Run

func (_c *MockNotifier_Errorf_Call) Run(run func(format string, args ...any)) *MockNotifier_Errorf_Call

func (*MockNotifier_Errorf_Call) RunAndReturn

func (_c *MockNotifier_Errorf_Call) RunAndReturn(run func(format string, args ...any)) *MockNotifier_Errorf_Call

type MockNotifier_Expecter

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

func (*MockNotifier_Expecter) Errorf

func (_e *MockNotifier_Expecter) Errorf(format interface{}, args ...interface{}) *MockNotifier_Errorf_Call

Errorf is a helper method to define mock.On call

  • format string
  • args ...any

func (*MockNotifier_Expecter) Infof

func (_e *MockNotifier_Expecter) Infof(format interface{}, args ...interface{}) *MockNotifier_Infof_Call

Infof is a helper method to define mock.On call

  • format string
  • args ...any

func (*MockNotifier_Expecter) SetLogger

func (_e *MockNotifier_Expecter) SetLogger(log interface{}) *MockNotifier_SetLogger_Call

SetLogger is a helper method to define mock.On call

  • log logrus.FieldLogger

func (*MockNotifier_Expecter) ShowError added in v1.3.0

func (_e *MockNotifier_Expecter) ShowError(err interface{}) *MockNotifier_ShowError_Call

ShowError is a helper method to define mock.On call

  • err error

type MockNotifier_Infof_Call

type MockNotifier_Infof_Call struct {
	*mock.Call
}

MockNotifier_Infof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Infof'

func (*MockNotifier_Infof_Call) Return

func (*MockNotifier_Infof_Call) Run

func (_c *MockNotifier_Infof_Call) Run(run func(format string, args ...any)) *MockNotifier_Infof_Call

func (*MockNotifier_Infof_Call) RunAndReturn

func (_c *MockNotifier_Infof_Call) RunAndReturn(run func(format string, args ...any)) *MockNotifier_Infof_Call

type MockNotifier_SetLogger_Call

type MockNotifier_SetLogger_Call struct {
	*mock.Call
}

MockNotifier_SetLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetLogger'

func (*MockNotifier_SetLogger_Call) Return

func (*MockNotifier_SetLogger_Call) Run

func (*MockNotifier_SetLogger_Call) RunAndReturn

type MockNotifier_ShowError_Call added in v1.3.0

type MockNotifier_ShowError_Call struct {
	*mock.Call
}

MockNotifier_ShowError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowError'

func (*MockNotifier_ShowError_Call) Return added in v1.3.0

func (*MockNotifier_ShowError_Call) Run added in v1.3.0

func (*MockNotifier_ShowError_Call) RunAndReturn added in v1.3.0

func (_c *MockNotifier_ShowError_Call) RunAndReturn(run func(err error)) *MockNotifier_ShowError_Call

type Notifier

type Notifier interface {
	Infof(format string, args ...any)
	Errorf(format string, args ...any)
	ShowError(err error)
	SetLogger(log logrus.FieldLogger)
}

func New

func New(log logrus.FieldLogger) Notifier

Jump to

Keyboard shortcuts

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