Documentation ¶
Index ¶
- Constants
- func AnythingOfType(t string) mock.AnythingOfTypeArgument
- func Transaction() (tx *storage.Transaction, rollback func())
- type Container
- type CrudConfig
- 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
- type Database
- type Entity
- type GormLogger
- 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
- 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
- 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)
Constants ¶
View Source
const Anything = mock.Anything
Variables ¶
This section is empty.
Functions ¶
func AnythingOfType ¶
func AnythingOfType(t string) mock.AnythingOfTypeArgument
func Transaction ¶
func Transaction() (tx *storage.Transaction, rollback func())
Types ¶
type Container ¶
func (*Container) GetCrudConfigs ¶
func (c *Container) GetCrudConfigs() []gocruddy.CrudConfig
func (*Container) GetCrudRepo ¶
func (c *Container) GetCrudRepo() gocruddy.CrudRepository
func (*Container) GetDatabase ¶
type CrudConfig ¶
func (*CrudConfig) CreateDeleteFilter ¶
func (cc *CrudConfig) CreateDeleteFilter(ctx *fiber.Ctx) gocruddy.DatabaseFilter
func (*CrudConfig) CreateGetFilter ¶
func (cc *CrudConfig) CreateGetFilter(ctx *fiber.Ctx) gocruddy.DatabaseFilter
func (*CrudConfig) CreateUpdateFilter ¶
func (cc *CrudConfig) CreateUpdateFilter(ctx *fiber.Ctx) gocruddy.DatabaseFilter
func (*CrudConfig) GetBasePath ¶
func (cc *CrudConfig) GetBasePath() string
func (*CrudConfig) GetEntityEntry ¶
func (cc *CrudConfig) GetEntityEntry() interface{}
func (*CrudConfig) MapPostEntry ¶
func (cc *CrudConfig) MapPostEntry(entry interface{}, ctx *fiber.Ctx, tx *storage.Transaction) (mapped gocruddy.Entry, err error)
func (*CrudConfig) MapPutEntry ¶
func (cc *CrudConfig) MapPutEntry(entry interface{}, ctx *fiber.Ctx, tx *storage.Transaction) (mapped gocruddy.Entry, err error)
func (*CrudConfig) SerializeList ¶
func (cc *CrudConfig) SerializeList(entries []interface{}, ctx *fiber.Ctx, tx *storage.Transaction) (serialized interface{}, err error)
func (*CrudConfig) UseContainer ¶
func (cc *CrudConfig) UseContainer(c gocruddy.Container)
type CrudRepo ¶
type CrudRepo struct {
Repo
}
func (*CrudRepo) GetAllEntries ¶
func (r *CrudRepo) GetAllEntries(tx *storage.Transaction, filter gocruddy.DatabaseFilter, t interface{}) (entries []interface{}, err error)
func (*CrudRepo) GetByID ¶
func (r *CrudRepo) GetByID(tx *storage.Transaction, id uint, filter gocruddy.DatabaseFilter, t interface{}) (entry interface{}, err error)
type Database ¶
func (*Database) UseTransaction ¶
func (db *Database) UseTransaction(fn storage.HandlerFunc) error
type GormLogger ¶
GormLogger gorm logger
func (*GormLogger) Error ¶
func (l *GormLogger) Error(ctx context.Context, s string, args ...interface{})
func (*GormLogger) Info ¶
func (l *GormLogger) Info(ctx context.Context, s string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.