mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
feat(agentcompat): add SQLite hold scoped attribution
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
This commit is contained in:
1 parent
26e92da33b
commit
0c6eb416a5
39 files changed
+5527
-6
No files matched your search
@@ -0,0 +1,24 @@
|
||||
//go:build agentcompat && linux
|
||||
|
||||
package singleton
|
||||
|
||||
import "context"
|
||||
|
||||
func ArmNextSQLiteHold() (SQLiteHoldReceipt, error) {
|
||||
return sqliteAttributionHoldControl.ArmNextSQLiteHold()
|
||||
}
|
||||
func WaitSQLiteHoldSelected(ctx context.Context, receipt SQLiteHoldReceipt) (SQLiteHoldReceipt, error) {
|
||||
return sqliteAttributionHoldControl.WaitSelected(ctx, receipt)
|
||||
}
|
||||
func WaitSQLiteHoldFinalizing(ctx context.Context, receipt SQLiteHoldReceipt) (SQLiteHoldReceipt, error) {
|
||||
return sqliteAttributionHoldControl.WaitFinalizing(ctx, receipt)
|
||||
}
|
||||
func SnapshotSQLiteHold(receipt SQLiteHoldReceipt) (SQLiteHoldReceipt, error) {
|
||||
return sqliteAttributionHoldControl.Snapshot(receipt)
|
||||
}
|
||||
func ReleaseSQLiteHold(receipt SQLiteHoldReceipt) (SQLiteHoldReceipt, error) {
|
||||
return sqliteAttributionHoldControl.Release(receipt)
|
||||
}
|
||||
func AbortSQLiteHold(receipt SQLiteHoldReceipt) (SQLiteHoldReceipt, error) {
|
||||
return sqliteAttributionHoldControl.Abort(receipt)
|
||||
}
|
||||
Reference in new issue
Block a user