Documentation ¶
Overview ¶
Package migration is a generated GoMock package.
Package migration is a generated GoMock package.
Index ¶
- func Run(migrationsMap map[int64]Migrate, c *container.Container)
- type Datasource
- type Logger
- type Migrate
- type MigrateFunc
- type Migrator
- type MockMigrator
- type MockMigratorMockRecorder
- type MockOptions
- type MockOptionsMockRecorder
- type Mockcommands
- func (m *Mockcommands) Del(ctx context.Context, keys ...string) *red.IntCmd
- func (m *Mockcommands) EXPECT() *MockcommandsMockRecorder
- func (m *Mockcommands) Get(ctx context.Context, key string) *red.StringCmd
- func (m *Mockcommands) Rename(ctx context.Context, key, newKey string) *red.StatusCmd
- func (m *Mockcommands) Set(ctx context.Context, key string, value any, expiration time.Duration) *red.StatusCmd
- type MockcommandsMockRecorder
- func (mr *MockcommandsMockRecorder) Del(ctx any, keys ...any) *gomock.Call
- func (mr *MockcommandsMockRecorder) Get(ctx, key any) *gomock.Call
- func (mr *MockcommandsMockRecorder) Rename(ctx, key, newKey any) *gomock.Call
- func (mr *MockcommandsMockRecorder) Set(ctx, key, value, expiration any) *gomock.Call
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Datasource ¶
type Datasource struct { Logger SQL db Redis commands PubSub client }
type Migrate ¶
type Migrate struct {
UP MigrateFunc
}
type MigrateFunc ¶
type MigrateFunc func(d Datasource) error
type Migrator ¶ added in v1.3.0
type Migrator interface {
// contains filtered or unexported methods
}
type MockMigrator ¶ added in v1.3.0
type MockMigrator struct {
// contains filtered or unexported fields
}
MockMigrator is a mock of Migrator interface.
func NewMockMigrator ¶ added in v1.3.0
func NewMockMigrator(ctrl *gomock.Controller) *MockMigrator
NewMockMigrator creates a new mock instance.
func (*MockMigrator) EXPECT ¶ added in v1.3.0
func (m *MockMigrator) EXPECT() *MockMigratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockMigratorMockRecorder ¶ added in v1.3.0
type MockMigratorMockRecorder struct {
// contains filtered or unexported fields
}
MockMigratorMockRecorder is the mock recorder for MockMigrator.
type MockOptions ¶ added in v1.3.0
type MockOptions struct {
// contains filtered or unexported fields
}
MockOptions is a mock of Options interface.
func NewMockOptions ¶ added in v1.3.0
func NewMockOptions(ctrl *gomock.Controller) *MockOptions
NewMockOptions creates a new mock instance.
func (*MockOptions) EXPECT ¶ added in v1.3.0
func (m *MockOptions) EXPECT() *MockOptionsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockOptionsMockRecorder ¶ added in v1.3.0
type MockOptionsMockRecorder struct {
// contains filtered or unexported fields
}
MockOptionsMockRecorder is the mock recorder for MockOptions.
type Mockcommands ¶ added in v1.3.0
type Mockcommands struct {
// contains filtered or unexported fields
}
Mockcommands is a mock of commands interface.
func NewMockcommands ¶ added in v1.3.0
func NewMockcommands(ctrl *gomock.Controller) *Mockcommands
NewMockcommands creates a new mock instance.
func (*Mockcommands) EXPECT ¶ added in v1.3.0
func (m *Mockcommands) EXPECT() *MockcommandsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockcommandsMockRecorder ¶ added in v1.3.0
type MockcommandsMockRecorder struct {
// contains filtered or unexported fields
}
MockcommandsMockRecorder is the mock recorder for Mockcommands.
func (*MockcommandsMockRecorder) Del ¶ added in v1.3.0
func (mr *MockcommandsMockRecorder) Del(ctx any, keys ...any) *gomock.Call
Del indicates an expected call of Del.
func (*MockcommandsMockRecorder) Get ¶ added in v1.3.0
func (mr *MockcommandsMockRecorder) Get(ctx, key any) *gomock.Call
Get indicates an expected call of Get.