19 lines
429 B
Go
19 lines
429 B
Go
//go:build !unix
|
|
|
|
package instanceguard
|
|
|
|
import "fmt"
|
|
|
|
// Acquire 在非 unix 平台拒绝 SQLite 活动服务。PostgreSQL 档不调用本函数。
|
|
func Acquire(string) (*Lease, error) {
|
|
return nil, ErrUnsupported
|
|
}
|
|
|
|
func (l *Lease) writeRecord(uint64, uint64, string, string) error {
|
|
return ErrUnsupported
|
|
}
|
|
|
|
func (l *Lease) currentDB() (uint64, uint64, bool, error) {
|
|
return 0, 0, false, fmt.Errorf("%w", ErrUnsupported)
|
|
}
|