Versions in this module Expand all Collapse all v1 v1.0.1 Mar 6, 2024 Changes in this version + const Anything + func AnythingOfType(t string) mock.AnythingOfTypeArgument + func Transaction() (tx *storage.Transaction, rollback func()) + type Container struct + func (c *Container) GetCrudConfigs() []gocruddy.CrudConfig + func (c *Container) GetCrudRepo() gocruddy.CrudRepository + func (c *Container) GetDatabase() gocruddy.Database + func (c *Container) GetLogger() logging.Logger + type CrudConfig struct + func (cc *CrudConfig) CreateDeleteFilter(ctx *fiber.Ctx) gocruddy.DatabaseFilter + func (cc *CrudConfig) CreateGetFilter(ctx *fiber.Ctx) gocruddy.DatabaseFilter + func (cc *CrudConfig) CreateUpdateFilter(ctx *fiber.Ctx) gocruddy.DatabaseFilter + func (cc *CrudConfig) GetBasePath() string + func (cc *CrudConfig) GetEntityEntry() interface{} + func (cc *CrudConfig) MapPostEntry(entry interface{}, ctx *fiber.Ctx, tx *storage.Transaction) (mapped gocruddy.Entry, err error) + func (cc *CrudConfig) MapPutEntry(entry interface{}, ctx *fiber.Ctx, tx *storage.Transaction) (mapped gocruddy.Entry, err error) + func (cc *CrudConfig) SerializeList(entries []interface{}, ctx *fiber.Ctx, tx *storage.Transaction) (serialized interface{}, err error) + func (cc *CrudConfig) UseContainer(c gocruddy.Container) + type CrudRepo struct + func (r *CrudRepo) GetAllEntries(tx *storage.Transaction, filter gocruddy.DatabaseFilter, t interface{}) (entries []interface{}, err error) + func (r *CrudRepo) GetByID(tx *storage.Transaction, id uint, filter gocruddy.DatabaseFilter, ...) (entry interface{}, err error) + type Database struct + func (db *Database) Begin() (tx *storage.Transaction, err error) + func (db *Database) Gorm() *gorm.DB + func (db *Database) UseTransaction(fn storage.HandlerFunc) error + type Entity struct + func (e *Entity) GetID() uint + type GormLogger struct + func (l *GormLogger) Error(ctx context.Context, s string, args ...interface{}) + func (l *GormLogger) Info(ctx context.Context, s string, args ...interface{}) + func (l *GormLogger) LogMode(level logger.LogLevel) logger.Interface + func (l *GormLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error) + func (l *GormLogger) Warn(ctx context.Context, s string, args ...interface{}) + type Log struct + func (l *Log) CreateGormLogger() logger.Interface + func (l *Log) Debug(s string, args ...interface{}) + func (l *Log) ErrDebug(err error) + func (l *Log) ErrError(err error) + func (l *Log) ErrFatal(err error) + func (l *Log) ErrInfo(err error) + func (l *Log) ErrWarn(err error) + func (l *Log) Error(s string, args ...interface{}) + func (l *Log) Fatal(s string, args ...interface{}) + func (l *Log) GetLevel() logging.Level + func (l *Log) Info(s string, args ...interface{}) + func (l *Log) Warn(s string, args ...interface{}) + func (l *Log) Write(p []byte) (n int, err error) + type Repo struct + func (r *Repo) Delete(tx *storage.Transaction, entry interface{}) (err error) + func (r *Repo) Insert(tx *storage.Transaction, entry interface{}) (err error) + func (r *Repo) Remove(tx *storage.Transaction, entry interface{}) (err error) + func (r *Repo) Update(tx *storage.Transaction, entry interface{}) (err error) v1.0.0 Sep 21, 2021