mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-09-19 09:40:12 +00:00
25 lines
932 B
Go
25 lines
932 B
Go
//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)
|
|
}
|