mirror of
https://github.com/versia-pub/versia-go.git
synced 2026-03-13 12:39:15 +01:00
refactor: workers
This commit is contained in:
parent
02ad720439
commit
8fa44e5f72
20 changed files with 764 additions and 465 deletions
|
|
@ -89,6 +89,10 @@ func (i *ManagerImpl) Atomic(ctx context.Context, fn func(ctx context.Context, t
|
|||
return tx.Finish()
|
||||
}
|
||||
|
||||
func (i *ManagerImpl) Ping() error {
|
||||
return i.db.Ping()
|
||||
}
|
||||
|
||||
func (i *ManagerImpl) Users() repository.UserRepository {
|
||||
return i.users
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ type InstanceMetadataRepository interface {
|
|||
|
||||
type Manager interface {
|
||||
Atomic(ctx context.Context, fn func(ctx context.Context, tx Manager) error) error
|
||||
Ping() error
|
||||
|
||||
Users() UserRepository
|
||||
Notes() NoteRepository
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue