waf_bfe_sdk

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2025 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultDetectURL = "http://127.0.0.1:8899/detect"
View Source
const DefaultHCURL = "http://127.0.0.1:8899/hccheck"
View Source
const DefaultTimeOut time.Duration = 10 * time.Second

Variables

This section is empty.

Functions

func HealthCheck

func HealthCheck(conn net.Conn) error

func NewWafServerWithPoolSize

func NewWafServerWithPoolSize(socketFactory func() (net.Conn, error), poolSize int) bwi.WafServer

Types

type HCResponseBody

type HCResponseBody struct {
	HcFlag int    `json:"result_flag"`
	Msg    string `json:"msg"`
}

type MockWafResult

type MockWafResult struct {
	// contains filtered or unexported fields
}

func (*MockWafResult) GetEventId

func (r *MockWafResult) GetEventId() string

func (*MockWafResult) GetResultFlag

func (r *MockWafResult) GetResultFlag() int

type MockWafServerAgent

type MockWafServerAgent struct {
	// contains filtered or unexported fields
}

func (*MockWafServerAgent) Close

func (c *MockWafServerAgent) Close()

func (*MockWafServerAgent) DetectRequest

func (c *MockWafServerAgent) DetectRequest(req *http.Request, logId string) (bwi.WafResult, error)

func (*MockWafServerAgent) UpdateSockFactory

func (c *MockWafServerAgent) UpdateSockFactory(socketFactory func() (net.Conn, error))

type ResponseBody

type ResponseBody struct {
	EventID    string `json:"event_id"`
	ResultFlag int    `json:"result_flag"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL