feat(wasm-plugin): add tests and docs for hmac-auth-apisix (#2842)

This commit is contained in:
韩贤涛
2025-09-01 14:07:57 +08:00
committed by GitHub
parent fff5903007
commit 7e74eeb333
9 changed files with 1769 additions and 46 deletions

View File

@@ -4,7 +4,6 @@ import (
"fmt"
"strings"
"github.com/higress-group/wasm-go/pkg/log"
"github.com/higress-group/wasm-go/pkg/wrapper"
"github.com/tidwall/gjson"
)
@@ -26,7 +25,7 @@ type RedisConfig struct {
KeyPrefix string
}
func ParseConfig(json gjson.Result, config *ReplayProtectionConfig, log log.Log) error {
func ParseConfig(json gjson.Result, config *ReplayProtectionConfig) error {
// Parse Redis configuration
redisConfig := json.Get("redis")
if !redisConfig.Exists() {