json

package
v1.14.0-dev.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConverter

func GetConverter() (message.Converter, error)

Types

type Converter

type Converter struct{}

func (*Converter) Decode

func (c *Converter) Decode(b []byte) (m interface{}, err error)

func (*Converter) Encode

func (c *Converter) Encode(d interface{}) (b []byte, err error)

type FastJsonConverter

type FastJsonConverter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewFastJsonConverter

func NewFastJsonConverter(ruleID, streamName string, schema map[string]*ast.JsonStreamField, isWildcard, isSchemaLess bool) *FastJsonConverter

func (*FastJsonConverter) Decode

func (c *FastJsonConverter) Decode(b []byte) (m interface{}, err error)

func (*FastJsonConverter) DetachSchema

func (c *FastJsonConverter) DetachSchema(ruleID string) error

func (*FastJsonConverter) Encode

func (c *FastJsonConverter) Encode(d interface{}) (b []byte, err error)

func (*FastJsonConverter) MergeSchema

func (c *FastJsonConverter) MergeSchema(ruleID, dataSource string, newSchema map[string]*ast.JsonStreamField, isWildcard bool) error

Jump to

Keyboard shortcuts

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