manager

package
v0.0.0-...-3f60b23 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(i do.Injector) (*DB, error)

func (*DB) CreateDatabase

func (d *DB) CreateDatabase(ctx context.Context) error

func (*DB) DropDatabase

func (d *DB) DropDatabase(ctx context.Context) error

func (*DB) Shutdown

func (d *DB) Shutdown(ctx context.Context) error

type IDB

type IDB interface {
	CreateDatabase(ctx context.Context) error
	DropDatabase(ctx context.Context) error
}

type MockIDB

type MockIDB struct {
	mock.Mock
}

MockIDB is an autogenerated mock type for the IDB type

func NewMockIDB

func NewMockIDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIDB

NewMockIDB creates a new instance of MockIDB. 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 (*MockIDB) CreateDatabase

func (_mock *MockIDB) CreateDatabase(ctx context.Context) error

CreateDatabase provides a mock function for the type MockIDB

func (*MockIDB) DropDatabase

func (_mock *MockIDB) DropDatabase(ctx context.Context) error

DropDatabase provides a mock function for the type MockIDB

func (*MockIDB) EXPECT

func (_m *MockIDB) EXPECT() *MockIDB_Expecter

type MockIDB_CreateDatabase_Call

type MockIDB_CreateDatabase_Call struct {
	*mock.Call
}

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

func (*MockIDB_CreateDatabase_Call) Return

func (*MockIDB_CreateDatabase_Call) Run

func (*MockIDB_CreateDatabase_Call) RunAndReturn

type MockIDB_DropDatabase_Call

type MockIDB_DropDatabase_Call struct {
	*mock.Call
}

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

func (*MockIDB_DropDatabase_Call) Return

func (*MockIDB_DropDatabase_Call) Run

func (*MockIDB_DropDatabase_Call) RunAndReturn

func (_c *MockIDB_DropDatabase_Call) RunAndReturn(run func(ctx context.Context) error) *MockIDB_DropDatabase_Call

type MockIDB_Expecter

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

func (*MockIDB_Expecter) CreateDatabase

func (_e *MockIDB_Expecter) CreateDatabase(ctx any) *MockIDB_CreateDatabase_Call

CreateDatabase is a helper method to define mock.On call

  • ctx context.Context

func (*MockIDB_Expecter) DropDatabase

func (_e *MockIDB_Expecter) DropDatabase(ctx any) *MockIDB_DropDatabase_Call

DropDatabase is a helper method to define mock.On call

  • ctx context.Context

Jump to

Keyboard shortcuts

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