replay_attack_defender

package
v0.22.13 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "replay_attack_defender"
)

Variables

This section is empty.

Functions

func Create

func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	NonceHeader       string         `json:"nonce_header" label:"API调用者生成的唯一UUID存放的请求头" default:"X-Ca-Nonce"`
	TimestampHeader   string         `json:"timestamp_header" label:"10位时间戳存放的请求头" default:"X-Ca-Timestamp"`
	SignHeader        string         `json:"sign_header" label:"防重放签名存放的请求头" default:"X-Ca-Signature"`
	ReplayAttackToken string         `json:"replay_attack_token" label:"重放攻击防御令牌" default:"apinto"`
	TTL               int            `json:"ttl" label:"过期时间,单位:s" default:"600"`
	Cache             eosc.RequireId `json:"cache" skill:"github.com/eolinker/apinto/resources.resources.ICache" required:"false" label:"缓存位置"`
}

Jump to

Keyboard shortcuts

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