infrastructure

package
v0.0.0-...-89ecaf8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideDatabaseConnection

func ProvideDatabaseConnection(injector *do.Injector) error

func ProvideRepositories

func ProvideRepositories(injector *do.Injector)

func ProvideServices

func ProvideServices(injector *do.Injector) error

Types

type GoogleUUIDGenerator

type GoogleUUIDGenerator struct{}

func NewGoogleUUIDGenerator

func NewGoogleUUIDGenerator() *GoogleUUIDGenerator

func (GoogleUUIDGenerator) Generate

func (ug GoogleUUIDGenerator) Generate() string

type GormDatabase

type GormDatabase struct {
	// contains filtered or unexported fields
}

func NewGormDB

func NewGormDB(db *gorm.DB) *GormDatabase

func (*GormDatabase) Create

func (g *GormDatabase) Create(value interface{}) repositories.Database

func (*GormDatabase) Delete

func (g *GormDatabase) Delete(value interface{}) repositories.Database

func (*GormDatabase) Error

func (g *GormDatabase) Error() error

func (*GormDatabase) Find

func (g *GormDatabase) Find(dest interface{}, conds ...interface{}) repositories.Database

func (*GormDatabase) First

func (g *GormDatabase) First(dest interface{}, conds ...interface{}) repositories.Database

func (*GormDatabase) Limit

func (g *GormDatabase) Limit(limit int) repositories.Database

func (*GormDatabase) Offset

func (g *GormDatabase) Offset(offset int) repositories.Database

func (*GormDatabase) Order

func (g *GormDatabase) Order(value interface{}) repositories.Database

func (*GormDatabase) Preload

func (g *GormDatabase) Preload(query string, args ...interface{}) repositories.Database

func (*GormDatabase) Save

func (g *GormDatabase) Save(value interface{}) repositories.Database

func (*GormDatabase) Shutdown

func (gdb *GormDatabase) Shutdown() error

func (*GormDatabase) Table

func (g *GormDatabase) Table(name string, args ...interface{}) repositories.Database

func (*GormDatabase) Where

func (g *GormDatabase) Where(query interface{}, args ...interface{}) repositories.Database

type TimeProvider

type TimeProvider struct{}

func NewTimeProvider

func NewTimeProvider() (provider *TimeProvider, err error)

func (TimeProvider) Now

func (tp TimeProvider) Now() time.Time

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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