Documentation ¶
Index ¶
- type Entity
- type MotionNoSQLRepository
- func (m MotionNoSQLRepository[T]) DeleteById(i interface{}) error
- func (m MotionNoSQLRepository[T]) ExistByField(s string, i interface{}) bool
- func (m MotionNoSQLRepository[T]) FindAll(limit, page int) ([]T, error)
- func (m MotionNoSQLRepository[T]) FindByField(s string, i interface{}) (T, error)
- func (m MotionNoSQLRepository[T]) FindById(i interface{}) (T, error)
- func (m MotionNoSQLRepository[T]) Save(t T) (T, error)
- type MotionRepository
- type MotionSQLRepository
- func NewCompanyRepository(conn *gorm.DB) *MotionSQLRepository[sqlDomain.Company]
- func NewProfileRepository(conn *gorm.DB) *MotionSQLRepository[sqlDomain.Profile]
- func NewRoleRepository(conn *gorm.DB) *MotionSQLRepository[sqlDomain.Role]
- func NewSessionRepository(conn *gorm.DB) *MotionSQLRepository[sqlDomain.Session]
- func NewUserRepository(conn *gorm.DB) *MotionSQLRepository[sqlDomain.MotionUser]
- func (m MotionSQLRepository[T]) DeleteById(s interface{}) error
- func (m MotionSQLRepository[T]) ExistByField(field string, fieldvalue interface{}) bool
- func (m MotionSQLRepository[T]) FindAll(limit, page int) ([]T, error)
- func (m MotionSQLRepository[T]) FindByField(field string, fieldvalue interface{}) (T, error)
- func (m MotionSQLRepository[T]) FindById(s interface{}) (T, error)
- func (m MotionSQLRepository[T]) FindWithPreloads(preloads string, s interface{}) (T, error)
- func (m MotionSQLRepository[T]) Save(structValue T) (T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MotionNoSQLRepository ¶
type MotionNoSQLRepository[T Entity] struct { // contains filtered or unexported fields }
func NewPortfolioRepository ¶
func NewPortfolioRepository(ctx context.Context, mongoConnection *mongo.Client) *MotionNoSQLRepository[nosqlDomain.Portfolio]
func (MotionNoSQLRepository[T]) DeleteById ¶
func (m MotionNoSQLRepository[T]) DeleteById(i interface{}) error
func (MotionNoSQLRepository[T]) ExistByField ¶
func (m MotionNoSQLRepository[T]) ExistByField(s string, i interface{}) bool
func (MotionNoSQLRepository[T]) FindAll ¶
func (m MotionNoSQLRepository[T]) FindAll(limit, page int) ([]T, error)
func (MotionNoSQLRepository[T]) FindByField ¶
func (m MotionNoSQLRepository[T]) FindByField(s string, i interface{}) (T, error)
func (MotionNoSQLRepository[T]) FindById ¶
func (m MotionNoSQLRepository[T]) FindById(i interface{}) (T, error)
func (MotionNoSQLRepository[T]) Save ¶
func (m MotionNoSQLRepository[T]) Save(t T) (T, error)
type MotionRepository ¶
type MotionSQLRepository ¶
type MotionSQLRepository[T Entity] struct { // contains filtered or unexported fields }
func NewCompanyRepository ¶
func NewCompanyRepository(conn *gorm.DB) *MotionSQLRepository[sqlDomain.Company]
func NewProfileRepository ¶
func NewProfileRepository(conn *gorm.DB) *MotionSQLRepository[sqlDomain.Profile]
func NewRoleRepository ¶
func NewRoleRepository(conn *gorm.DB) *MotionSQLRepository[sqlDomain.Role]
func NewSessionRepository ¶
func NewSessionRepository(conn *gorm.DB) *MotionSQLRepository[sqlDomain.Session]
func NewUserRepository ¶
func NewUserRepository(conn *gorm.DB) *MotionSQLRepository[sqlDomain.MotionUser]
func (MotionSQLRepository[T]) DeleteById ¶
func (m MotionSQLRepository[T]) DeleteById(s interface{}) error
func (MotionSQLRepository[T]) ExistByField ¶
func (m MotionSQLRepository[T]) ExistByField(field string, fieldvalue interface{}) bool
func (MotionSQLRepository[T]) FindAll ¶
func (m MotionSQLRepository[T]) FindAll(limit, page int) ([]T, error)
func (MotionSQLRepository[T]) FindByField ¶
func (m MotionSQLRepository[T]) FindByField(field string, fieldvalue interface{}) (T, error)
func (MotionSQLRepository[T]) FindById ¶
func (m MotionSQLRepository[T]) FindById(s interface{}) (T, error)
func (MotionSQLRepository[T]) FindWithPreloads ¶
func (m MotionSQLRepository[T]) FindWithPreloads(preloads string, s interface{}) (T, error)
func (MotionSQLRepository[T]) Save ¶
func (m MotionSQLRepository[T]) Save(structValue T) (T, error)
Click to show internal directories.
Click to hide internal directories.