fetch_ml/internal/queue/native_queue_stub.go
Jeremie Fraeys a93b6715fd
feat: add native library bridge and queue integration
- 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
2026-02-16 20:38:30 -05:00

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")
}