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 File

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

func (*File) Migrate

func (m *File) Migrate() error

Create mongo collection

type Image

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

func (*Image) Migrate

func (m *Image) Migrate() error

Create mongo collection

type Migrator

type Migrator interface {
	Migrate() error
}

type Post

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

func (*Post) Migrate

func (m *Post) Migrate() error

Create mongo collection

type Term

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

func (*Term) Migrate

func (m *Term) Migrate() error

Create mongo collection

Jump to

Keyboard shortcuts

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