json

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0, BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEncodable

func NewEncodable(reader io.ReadCloser, limit int64) (libddwaf.Encodable, error)

func NewEncodableFromData

func NewEncodableFromData(data []byte, truncated bool) libddwaf.Encodable

Types

type Encodable

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

func (*Encodable) Encode

func (e *Encodable) Encode(config libddwaf.EncoderConfig, obj *libddwaf.WAFObject, depth int) (map[libddwaf.TruncationReason][]int, error)

func (*Encodable) ToEncoder

func (e *Encodable) ToEncoder(config libddwaf.EncoderConfig) *encoder

Jump to

Keyboard shortcuts

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