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 Activity

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

func (*Activity) Migrate

func (m *Activity) Migrate() error

Create mongo collection

type Log

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

func (*Log) Migrate

func (m *Log) Migrate() error

Create mongo collection

type Migrator

type Migrator interface {
	Migrate() error
}
type Search struct {
	Database *mongo.Database
	Model    *model.Search
}

func (*Search) Migrate

func (m *Search) Migrate() error

Create mongo collection

Jump to

Keyboard shortcuts

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