Documentation ¶
Index ¶
- type Filter
- type GormRepository
- func (r *GormRepository) All(v interface{}) error
- func (r *GormRepository) Bind(v interface{}, id string) error
- func (r *GormRepository) Create(v interface{}) error
- func (r *GormRepository) Delete(v interface{}, id string) error
- func (r *GormRepository) FindBy(v interface{}, filters ...Filter) error
- func (r *GormRepository) Model(model string)
- func (r *GormRepository) Transaction(f Transaction) error
- func (r *GormRepository) Update(v interface{}) error
- type MongoRepository
- func (r *MongoRepository) All(v interface{}) error
- func (r *MongoRepository) Bind(v interface{}, id string) error
- func (r *MongoRepository) Create(v interface{}) error
- func (r *MongoRepository) Delete(v interface{}, id string) error
- func (r *MongoRepository) FindBy(v interface{}, filters ...Filter) error
- func (r *MongoRepository) Model(model string)
- func (r *MongoRepository) Transaction(f Transaction) error
- func (r *MongoRepository) Update(v interface{}) error
- type Repository
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormRepository ¶
func (*GormRepository) All ¶
func (r *GormRepository) All(v interface{}) error
func (*GormRepository) Bind ¶
func (r *GormRepository) Bind(v interface{}, id string) error
func (*GormRepository) Create ¶
func (r *GormRepository) Create(v interface{}) error
func (*GormRepository) Delete ¶
func (r *GormRepository) Delete(v interface{}, id string) error
func (*GormRepository) FindBy ¶
func (r *GormRepository) FindBy(v interface{}, filters ...Filter) error
func (*GormRepository) Model ¶
func (r *GormRepository) Model(model string)
func (*GormRepository) Transaction ¶
func (r *GormRepository) Transaction(f Transaction) error
func (*GormRepository) Update ¶
func (r *GormRepository) Update(v interface{}) error
type MongoRepository ¶
type MongoRepository struct {
// contains filtered or unexported fields
}
func (*MongoRepository) All ¶
func (r *MongoRepository) All(v interface{}) error
func (*MongoRepository) Bind ¶
func (r *MongoRepository) Bind(v interface{}, id string) error
func (*MongoRepository) Create ¶
func (r *MongoRepository) Create(v interface{}) error
func (*MongoRepository) Delete ¶
func (r *MongoRepository) Delete(v interface{}, id string) error
func (*MongoRepository) FindBy ¶
func (r *MongoRepository) FindBy(v interface{}, filters ...Filter) error
func (*MongoRepository) Model ¶
func (r *MongoRepository) Model(model string)
func (*MongoRepository) Transaction ¶
func (r *MongoRepository) Transaction(f Transaction) error
func (*MongoRepository) Update ¶
func (r *MongoRepository) Update(v interface{}) error
type Repository ¶
type Transaction ¶
type Transaction func(Repository) error
Click to show internal directories.
Click to hide internal directories.