definitions

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FixtureSets = []*fixtures.FixtureSet{
	{
		Enabled: true,
		Writer:  fixtures.MysqlOrmFixtureWriterFactory(&tableMetadata),
		Fixtures: []interface{}{
			&Item{
				Model: db_repo.Model{
					Id: mdl.Box(uint(2)),
				},
				ChangeHistoryEmbeddable: db_repo.ChangeHistoryEmbeddable{},
				Action:                  "update",
				Name:                    "foo",
			},
			&Item{
				Model: db_repo.Model{
					Id: mdl.Box(uint(3)),
				},
				ChangeHistoryEmbeddable: db_repo.ChangeHistoryEmbeddable{},
				Action:                  "delete",
				Name:                    "foo",
			},
		},
	},
}

Functions

func ModuleFactory

func ModuleFactory(ctx context.Context, config cfg.Config, logger log.Logger) (kernel.Module, error)

func NewHistoryRepository

func NewHistoryRepository(ctx context.Context, config cfg.Config, logger log.Logger) (db_repo.RepositoryReadOnly, error)

func NewRepository

func NewRepository(ctx context.Context, config cfg.Config, logger log.Logger) (db_repo.Repository, error)

Types

type Item

type Item struct {
	db_repo.Model
	db_repo.ChangeHistoryEmbeddable
	Action string
	Name   string
}

type ItemsHistory

type ItemsHistory struct {
	db_repo.ChangeHistoryModel
	Item
}

Jump to

Keyboard shortcuts

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