Documentation ¶
Index ¶
- func LoadContainer() *infra.Container
- type DB
- func (d *DB) Add(name string, dataList ...app.DatabaseSelectResult)
- func (d *DB) Captures() []*SQLCapture
- func (d *DB) ClearCapture()
- func (d *DB) ClearData()
- func (d *DB) Close()
- func (d *DB) MutateError(err error)
- func (d *DB) MutateResult(lastInsertId int64, lastInsertIdErr error, rowsAffected int64, ...)
- func (d *DB) NewTransaction() app.DatabaseTransaction
- func (d *DB) Select(q string, a []interface{}, err error) ([]app.DatabaseSelectResult, error)
- type LabelRepositoryImpl
- type MutateResult
- type OAuth2Google
- type SQLCapture
- type SQLCaptureStore
- type TenantRepositoryImpl
- type Txn
- type UserRepositoryImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadContainer ¶
Types ¶
type DB ¶
func LoadDatabase ¶
func LoadDatabase() *DB
func (*DB) Captures ¶
func (d *DB) Captures() []*SQLCapture
func (*DB) ClearCapture ¶
func (d *DB) ClearCapture()
func (*DB) MutateError ¶
func (*DB) MutateResult ¶
func (*DB) NewTransaction ¶
func (d *DB) NewTransaction() app.DatabaseTransaction
type LabelRepositoryImpl ¶
type LabelRepositoryImpl struct { domain.LabelRepository DispenseIDFunc func() domain.LabelID Labels map[domain.LabelID]*domain.Label }
func LoadLabelRepoImpl ¶
func LoadLabelRepoImpl(f func() domain.LabelID) *LabelRepositoryImpl
func (*LabelRepositoryImpl) DispenseID ¶
func (r *LabelRepositoryImpl) DispenseID() domain.LabelID
func (*LabelRepositoryImpl) Save ¶
func (r *LabelRepositoryImpl) Save(l *domain.Label)
type MutateResult ¶
type MutateResult struct { app.DatabaseMutateResult // contains filtered or unexported fields }
func (*MutateResult) LastInsertId ¶
func (r *MutateResult) LastInsertId() (int64, error)
func (*MutateResult) RowsAffected ¶
func (r *MutateResult) RowsAffected() (int64, error)
type OAuth2Google ¶
type OAuth2Google struct { app.OAuth2Google // contains filtered or unexported fields }
func LoadOAuth2Google ¶
func LoadOAuth2Google() *OAuth2Google
func (*OAuth2Google) AuthCodeURL ¶
func (o *OAuth2Google) AuthCodeURL(state string) string
func (*OAuth2Google) FillResponse ¶
func (o *OAuth2Google) FillResponse(info app.OAuth2GoogleTokenInfo, err error)
func (*OAuth2Google) GetTokenInfo ¶
func (o *OAuth2Google) GetTokenInfo(code string) (app.OAuth2GoogleTokenInfo, error)
type SQLCapture ¶
type SQLCapture struct { Query string Args []interface{} }
type SQLCaptureStore ¶
type SQLCaptureStore struct {
// contains filtered or unexported fields
}
func (*SQLCaptureStore) Append ¶
func (c *SQLCaptureStore) Append(q string, a []interface{})
func (*SQLCaptureStore) Clear ¶
func (c *SQLCaptureStore) Clear()
func (*SQLCaptureStore) ReadAll ¶
func (c *SQLCaptureStore) ReadAll() []*SQLCapture
type TenantRepositoryImpl ¶
type TenantRepositoryImpl struct { domain.TenantRepository DispenseIDFunc func() domain.TenantID Tenants map[domain.TenantID]*domain.Tenant }
func LoadTenantRepoImpl ¶
func LoadTenantRepoImpl(f func() domain.TenantID) *TenantRepositoryImpl
func (*TenantRepositoryImpl) DispenseID ¶
func (r *TenantRepositoryImpl) DispenseID() domain.TenantID
func (*TenantRepositoryImpl) Save ¶
func (r *TenantRepositoryImpl) Save(t *domain.Tenant)
type Txn ¶
type Txn struct { app.DatabaseTransaction // contains filtered or unexported fields }
type UserRepositoryImpl ¶
type UserRepositoryImpl struct { domain.UserRepository DispenseIDFunc func() domain.UserID Users map[domain.UserID]*domain.User }
UserRepositoryImpl provides mock for UserRepository implementation
func LoadUserRepoImpl ¶
func LoadUserRepoImpl(f func() domain.UserID) *UserRepositoryImpl
LoadUserRepoImpl reutrns UserRepositoryImpl struct
func (*UserRepositoryImpl) DispenseID ¶
func (r *UserRepositoryImpl) DispenseID() domain.UserID
DispenseID is implementation for mock
func (*UserRepositoryImpl) Find ¶
func (r *UserRepositoryImpl) Find(id string) *domain.User
Find is implementation for mock
func (*UserRepositoryImpl) FindByMail ¶
func (r *UserRepositoryImpl) FindByMail(addr string) *domain.User
FindByMail is implementation for mock
func (*UserRepositoryImpl) FindMulti ¶
func (r *UserRepositoryImpl) FindMulti(ids []string) []*domain.User
func (*UserRepositoryImpl) Save ¶
func (r *UserRepositoryImpl) Save(u *domain.User)
Save is implementation for mock
Click to show internal directories.
Click to hide internal directories.