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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrate

func AutoMigrate() error

Types

type Api

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

func (*Api) Migrate

func (m *Api) Migrate() error

type Client

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

func (*Client) Migrate

func (m *Client) Migrate() error

Create mongo collection

type Connection

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

func (*Connection) Migrate

func (m *Connection) Migrate() error

type Credential

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

func (*Credential) Migrate

func (m *Credential) Migrate() error

type Integration

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

func (*Integration) Migrate

func (m *Integration) Migrate() error

type Key

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

func (*Key) Migrate

func (m *Key) Migrate() error

Create mongo collection

type Member

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

func (*Member) Migrate

func (m *Member) Migrate() error

type Migrator

type Migrator interface {
	Migrate() error
}

type Permission

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

func (*Permission) Migrate

func (m *Permission) Migrate() error

type Role

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

func (*Role) Migrate

func (m *Role) Migrate() error

type Token

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

func (*Token) Migrate

func (m *Token) Migrate() error

type User

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

func (*User) Migrate

func (m *User) Migrate() error

type Workspace

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

func (*Workspace) Migrate

func (m *Workspace) Migrate() error

Jump to

Keyboard shortcuts

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