enhanced authBackend to support authReadTx

This commit is contained in:
ahrtr
2022-04-02 06:02:22 +08:00
parent a4c5da844d
commit 7ac995cdde
8 changed files with 127 additions and 66 deletions

View File

@ -36,6 +36,10 @@ func (b *backendMock) CreateAuthBuckets() {
func (b *backendMock) ForceCommit() {
}
func (b *backendMock) ReadTx() AuthReadTx {
return &txMock{be: b}
}
func (b *backendMock) BatchTx() AuthBatchTx {
return &txMock{be: b}
}