migrations

package
v0.0.0-...-0406d23 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrate

func AutoMigrate() error

Types

type Card

type Card struct {
	Database *mongo.Database
	Model    *model.Card
}

func (*Card) Migrate

func (m *Card) Migrate() error

Create mongo collection

type Migrator

type Migrator interface {
	Migrate() error
}

type Transaction

type Transaction struct {
	Database *mongo.Database
	Model    *model.Transaction
}

func (*Transaction) Migrate

func (m *Transaction) Migrate() error

Create mongo collection

type Wallet

type Wallet struct {
	Database *mongo.Database
	Model    *model.Wallet
}

func (*Wallet) Migrate

func (m *Wallet) Migrate() error

Create mongo collection

Jump to

Keyboard shortcuts

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