Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseRepository ¶
type BaseRepository struct { Da *DataAccess Events *event.Emitter UseNamespace bool }
func CreateRepository ¶
func CreateRepository(da *DataAccess) BaseRepository
func (*BaseRepository) SetEventEmitter ¶
func (r *BaseRepository) SetEventEmitter(e *event.Emitter)
type DataAccess ¶
func GetConnection ¶
func GetConnection(useTransaction bool) *DataAccess
func (*DataAccess) Commit ¶
func (d *DataAccess) Commit()
func (*DataAccess) GetNamespace ¶
func (d *DataAccess) GetNamespace() string
func (*DataAccess) Rollback ¶
func (d *DataAccess) Rollback()
type NamespaceRepo ¶
type NamespaceRepo struct {
NamespaceId string
}
func (*NamespaceRepo) SetNamespace ¶
func (r *NamespaceRepo) SetNamespace(namespace string)
type Namespacer ¶
type Namespacer interface {
SetNamespace(namespace string)
}
Click to show internal directories.
Click to hide internal directories.