- Add native_queue.go with CGO bindings for queue operations - Add native_queue_stub.go for non-CGO builds - Add hash_selector to choose between Go and native implementations - Add native_bridge_libs.go for CGO builds with native_libs tag - Add native_bridge_nocgo.go stub for non-CGO builds - Update queue errors and task handling for native integration - Update worker config and runloop for native library support
17 lines
454 B
Go
17 lines
454 B
Go
//go:build !native_libs
|
|
// +build !native_libs
|
|
|
|
package queue
|
|
|
|
import "errors"
|
|
|
|
// UseNativeQueue is always false without native_libs build tag.
|
|
var UseNativeQueue = false
|
|
|
|
// NativeQueue is not available without native_libs build tag.
|
|
type NativeQueue struct{}
|
|
|
|
// NewNativeQueue returns an error without native_libs build tag.
|
|
func NewNativeQueue(root string) (Backend, error) {
|
|
return nil, errors.New("native queue requires native_libs build tag")
|
|
}
|