Documentation
¶
Index ¶
- Variables
- type AddUserIndexesMigration
- type CreateUsersCollectionMigration
- func (m *CreateUsersCollectionMigration) Description() string
- func (m *CreateUsersCollectionMigration) Down(ctx context.Context, db *mongo.Database) error
- func (m *CreateUsersCollectionMigration) Up(ctx context.Context, db *mongo.Database) error
- func (m *CreateUsersCollectionMigration) Version() string
- type Migration20251207_190640CreateProductCollection
- func (m *Migration20251207_190640CreateProductCollection) Description() string
- func (m *Migration20251207_190640CreateProductCollection) Down(ctx context.Context, db *mongo.Database) error
- func (m *Migration20251207_190640CreateProductCollection) Up(ctx context.Context, db *mongo.Database) error
- func (m *Migration20251207_190640CreateProductCollection) Version() string
- type Migration20251207_192545TestDemoAgl
- func (m *Migration20251207_192545TestDemoAgl) Description() string
- func (m *Migration20251207_192545TestDemoAgl) Down(ctx context.Context, db *mongo.Database) error
- func (m *Migration20251207_192545TestDemoAgl) Up(ctx context.Context, db *mongo.Database) error
- func (m *Migration20251207_192545TestDemoAgl) Version() string
- type Migration_20251231_192427_add_user_indexes
- func (m *Migration_20251231_192427_add_user_indexes) Description() string
- func (m *Migration_20251231_192427_add_user_indexes) Down(ctx context.Context, db *mongo.Database) error
- func (m *Migration_20251231_192427_add_user_indexes) Up(ctx context.Context, db *mongo.Database) error
- func (m *Migration_20251231_192427_add_user_indexes) Version() string
- type Migration_20260208_030133_example1
- func (m *Migration_20260208_030133_example1) Description() string
- func (m *Migration_20260208_030133_example1) Down(ctx context.Context, db *mongo.Database) error
- func (m *Migration_20260208_030133_example1) Up(ctx context.Context, db *mongo.Database) error
- func (m *Migration_20260208_030133_example1) Version() string
- type Migration_20260208_032830_drew
- func (m *Migration_20260208_032830_drew) Description() string
- func (m *Migration_20260208_032830_drew) Down(ctx context.Context, db *mongo.Database) error
- func (m *Migration_20260208_032830_drew) Up(ctx context.Context, db *mongo.Database) error
- func (m *Migration_20260208_032830_drew) Version() string
Constants ¶
This section is empty.
Variables ¶
var (
ErrCreateIndexesFailed = errors.New("create indexes failed")
)
var (
ErrDropIndexFailed = errors.New("drop index failed")
)
Functions ¶
This section is empty.
Types ¶
type AddUserIndexesMigration ¶
type AddUserIndexesMigration struct{}
AddUserIndexesMigration adds indexes to the users collection
func (*AddUserIndexesMigration) Description ¶
func (m *AddUserIndexesMigration) Description() string
Description returns a human-readable description of what this migration does
func (*AddUserIndexesMigration) Version ¶
func (m *AddUserIndexesMigration) Version() string
Version returns the unique version identifier for this migration
type CreateUsersCollectionMigration ¶
type CreateUsersCollectionMigration struct{}
CreateUsersCollectionMigration creates the users collection
func (*CreateUsersCollectionMigration) Description ¶
func (m *CreateUsersCollectionMigration) Description() string
Description returns a human-readable description of what this migration does
func (*CreateUsersCollectionMigration) Version ¶
func (m *CreateUsersCollectionMigration) Version() string
Version returns the unique version identifier for this migration
type Migration20251207_190640CreateProductCollection ¶
type Migration20251207_190640CreateProductCollection struct{}
Migration20251207_190640CreateProductCollection create-product-collection
func (*Migration20251207_190640CreateProductCollection) Description ¶
func (m *Migration20251207_190640CreateProductCollection) Description() string
Description returns a human-readable description of what this migration does
func (*Migration20251207_190640CreateProductCollection) Down ¶
func (m *Migration20251207_190640CreateProductCollection) Down( ctx context.Context, db *mongo.Database, ) error
Down rolls back the migration
func (*Migration20251207_190640CreateProductCollection) Up ¶
func (m *Migration20251207_190640CreateProductCollection) Up( ctx context.Context, db *mongo.Database, ) error
Up executes the migration
func (*Migration20251207_190640CreateProductCollection) Version ¶
func (m *Migration20251207_190640CreateProductCollection) Version() string
Version returns the unique version identifier for this migration
type Migration20251207_192545TestDemoAgl ¶
type Migration20251207_192545TestDemoAgl struct{}
Migration20251207_192545TestDemoAgl test-demo-agl
func (*Migration20251207_192545TestDemoAgl) Description ¶
func (m *Migration20251207_192545TestDemoAgl) Description() string
Description returns a human-readable description of what this migration does
func (*Migration20251207_192545TestDemoAgl) Down ¶
func (m *Migration20251207_192545TestDemoAgl) Down( ctx context.Context, db *mongo.Database, ) error
Down rolls back the migration
func (*Migration20251207_192545TestDemoAgl) Version ¶
func (m *Migration20251207_192545TestDemoAgl) Version() string
Version returns the unique version identifier for this migration
type Migration_20251231_192427_add_user_indexes ¶
type Migration_20251231_192427_add_user_indexes struct{}
Migration_20251231_192427_add_user_indexes add_user_indexes
func (*Migration_20251231_192427_add_user_indexes) Description ¶
func (m *Migration_20251231_192427_add_user_indexes) Description() string
Description returns a human-readable description of what this migration does
func (*Migration_20251231_192427_add_user_indexes) Down ¶
func (m *Migration_20251231_192427_add_user_indexes) Down(ctx context.Context, db *mongo.Database) error
Down rolls back the migration
func (*Migration_20251231_192427_add_user_indexes) Up ¶
func (m *Migration_20251231_192427_add_user_indexes) Up(ctx context.Context, db *mongo.Database) error
Up executes the migration
func (*Migration_20251231_192427_add_user_indexes) Version ¶
func (m *Migration_20251231_192427_add_user_indexes) Version() string
Version returns the unique version identifier for this migration
type Migration_20260208_030133_example1 ¶
type Migration_20260208_030133_example1 struct{}
func (*Migration_20260208_030133_example1) Description ¶
func (m *Migration_20260208_030133_example1) Description() string
func (*Migration_20260208_030133_example1) Version ¶
func (m *Migration_20260208_030133_example1) Version() string
type Migration_20260208_032830_drew ¶
type Migration_20260208_032830_drew struct{}
func (*Migration_20260208_032830_drew) Description ¶
func (m *Migration_20260208_032830_drew) Description() string
func (*Migration_20260208_032830_drew) Version ¶
func (m *Migration_20260208_032830_drew) Version() string