MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Encode

Method Encode

internal/waf/info_arg.go:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func (this *InfoArg) Encode() (string, error) {
29 if this.Timestamp <= 0 {
30 this.Timestamp = fasttime.Now().Unix()
31 }
32
33 return utils.SimpleEncryptObject(this)
34}
35
36func (this *InfoArg) URLEncoded() (string, error) {
37 encodedString, err := this.Encode()

Callers 1

URLEncodedMethod · 0.95

Calls 3

NowFunction · 0.92
SimpleEncryptObjectFunction · 0.92
UnixMethod · 0.80

Tested by

no test coverage detected