Skip to content

Commit

Permalink
[优化] 规则链HTTP节点
Browse files Browse the repository at this point in the history
  • Loading branch information
PandaX-Go authored and PandaX-Go committed Aug 14, 2024
1 parent 0ee53e1 commit 1467b34
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/rule_engine/nodes/external_restapi_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ import (

type externalRestapiNode struct {
bareNode
RestEndpointUrlPattern string `json:"restEndpointUrlPattern" yaml:"restEndpointUrlPattern"`
RequestMethod string `json:"requestMethod" yaml:"requestMethod"`
Headers map[string]string `json:"headers" yaml:"headers"`
RestEndpointUrlPattern string `json:"restEndpointUrlPattern" yaml:"restEndpointUrlPattern"`
RequestMethod string `json:"requestMethod" yaml:"requestMethod"`
Headers map[string]string `json:"headers" yaml:"headers"`
ReadTimeoutMs int64 `json:"readTimeoutMs" yaml:"readTimeoutMs"` //读取超时
MaxParallelRequestsCount int64 `json:"maxParallelRequestsCount" yaml:"readTimeoutMs"`
UseRedisQueueForMsgPersistence bool `json:"useRedisQueueForMsgPersistence"` //消息持久化
MaxQueueSize int64 `json:"maxQueueSize"` //队列大小
}

type externalRestapiNodeFactory struct{}
Expand Down

0 comments on commit 1467b34

Please sign in to comment.