migrations

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerStorage

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

func NewBadgerStorage

func NewBadgerStorage(db *badger.DB) *BadgerStorage

func (*BadgerStorage) LoadState

func (b *BadgerStorage) LoadState(name string) (migrations.State, error)

func (*BadgerStorage) LoadStatus

func (b *BadgerStorage) LoadStatus(name string) (migrations.Status, error)

func (*BadgerStorage) SaveState

func (b *BadgerStorage) SaveState(name string, state migrations.State) error

func (*BadgerStorage) SaveStatus

func (b *BadgerStorage) SaveStatus(name string, status migrations.Status) error

type CommandDeleteGoSsbRepositoryInOldFormatAdapter

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

func NewCommandDeleteGoSsbRepositoryInOldFormatAdapter

func NewCommandDeleteGoSsbRepositoryInOldFormatAdapter(
	directory string,
	m commands.Migrations,
) *CommandDeleteGoSsbRepositoryInOldFormatAdapter

func (*CommandDeleteGoSsbRepositoryInOldFormatAdapter) Fn

type CommandImportDataFromGoSSBHandlerAdapter

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

func NewCommandImportDataFromGoSSBHandlerAdapter

func NewCommandImportDataFromGoSSBHandlerAdapter(
	directory string,
	m commands.Migrations,
) *CommandImportDataFromGoSSBHandlerAdapter

func (*CommandImportDataFromGoSSBHandlerAdapter) Fn

type GoSSBRepoReader

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

func NewGoSSBRepoReader

func NewGoSSBRepoReader(
	logger logging.Logger,
) *GoSSBRepoReader

func (GoSSBRepoReader) GetMessages

func (m GoSSBRepoReader) GetMessages(ctx context.Context, directory string, resumeFromSequence *common.ReceiveLogSequence) (<-chan commands.GoSSBMessageOrError, error)

Jump to

Keyboard shortcuts

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