migrations

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accounts

type Accounts struct{}

func (*Accounts) Down

func (i *Accounts) Down(context.Context, fdbclient.Transaction, redis.Pipeliner) error

func (*Accounts) Up

func (i *Accounts) Up(ctx context.Context, ftr fdbclient.Transaction, rtr redis.Pipeliner) error

func (*Accounts) Version

func (i *Accounts) Version() uint32

type Cookies

type Cookies struct{}

func (*Cookies) Down

func (i *Cookies) Down(context.Context, fdbclient.Transaction, redis.Pipeliner) error

func (*Cookies) Up

func (i *Cookies) Up(ctx context.Context, ftr fdbclient.Transaction, rtr redis.Pipeliner) error

func (*Cookies) Version

func (i *Cookies) Version() uint32

type Empty added in v0.3.5

type Empty struct {
}

func (*Empty) Down added in v0.3.5

func (e *Empty) Down(context.Context, fdbclient.Transaction, redis.Pipeliner) error

func (*Empty) Up added in v0.3.5

func (e *Empty) Up(context.Context, fdbclient.Transaction, redis.Pipeliner) error

func (*Empty) Version added in v0.3.5

func (e *Empty) Version() uint32

type Migration

type Migration interface {
	Up(ctx context.Context, ftr fdbclient.Transaction, rtr redis.Pipeliner) error
	Down(ctx context.Context, ftr fdbclient.Transaction, rtr redis.Pipeliner) error
	Version() uint32
}

func Migrations

func Migrations(version uint32) []Migration

type Migrator added in v0.3.1

type Migrator interface {
	Migrate(ctx context.Context) error
}

func NewMigrator added in v0.3.1

func NewMigrator(fdb fdb.Database, rdb *redis.Client, log log.Logger) Migrator

type SessionStorage added in v0.3.7

type SessionStorage struct{}

func (*SessionStorage) Down added in v0.3.7

func (i *SessionStorage) Down(context.Context, fdbclient.Transaction, redis.Pipeliner) error

func (*SessionStorage) Up added in v0.3.7

func (i *SessionStorage) Up(ctx context.Context, ftr fdbclient.Transaction, rtr redis.Pipeliner) error

func (*SessionStorage) Version added in v0.3.7

func (i *SessionStorage) Version() uint32

Jump to

Keyboard shortcuts

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