migration

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 16

Documentation

Overview

Package migration is a generated GoMock package.

Package migration is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(migrationsMap map[int64]Migrate, c *container.Container)

Types

type Datasource

type Datasource struct {
	Logger

	SQL    db
	Redis  commands
	PubSub client
}

type Logger

type Logger interface {
	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
}

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

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) Del added in v1.3.0

func (m *Mockcommands) Del(ctx context.Context, keys ...string) *red.IntCmd

Del mocks base method.

func (*Mockcommands) EXPECT added in v1.3.0

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

func (*Mockcommands) Get added in v1.3.0

func (m *Mockcommands) Get(ctx context.Context, key string) *red.StringCmd

Get mocks base method.

func (*Mockcommands) Rename added in v1.3.0

func (m *Mockcommands) Rename(ctx context.Context, key, newKey string) *red.StatusCmd

Rename mocks base method.

func (*Mockcommands) Set added in v1.3.0

func (m *Mockcommands) Set(ctx context.Context, key string, value any, expiration time.Duration) *red.StatusCmd

Set mocks base method.

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.

func (*MockcommandsMockRecorder) Rename added in v1.3.0

func (mr *MockcommandsMockRecorder) Rename(ctx, key, newKey any) *gomock.Call

Rename indicates an expected call of Rename.

func (*MockcommandsMockRecorder) Set added in v1.3.0

func (mr *MockcommandsMockRecorder) Set(ctx, key, value, expiration any) *gomock.Call

Set indicates an expected call of Set.

type Options added in v1.3.0

type Options interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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