gomcp/internal/domain/engines/ffi_shield_stub.go

19 lines
547 B
Go

// Copyright 2026 Syntrex Lab. All rights reserved.
// Use of this source code is governed by an Apache-2.0 license
// that can be found in the LICENSE file.
//go:build !shield_native
package engines
import "errors"
// NativeShield is a dummy to make compilation pass when tag is missing.
type NativeShield struct {
StubShield
}
// NewNativeShield returns an error when built without shield_native tag.
func NewNativeShield() (*NativeShield, error) {
return nil, errors.New("shield_native build tag not provided; native engine disabled")
}