message

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: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FormatBinary    = "binary"
	FormatJson      = "json"
	FormatProtobuf  = "protobuf"
	FormatDelimited = "delimited"
	FormatCustom    = "custom"

	DefaultField = "self"
	MetaKey      = "__meta"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnSetter

type ColumnSetter interface {
	SetColumns([]string)
}

type Compressor

type Compressor interface {
	Compress([]byte) ([]byte, error)
}

Compressor compresses and decompresses bytes

type Converter

type Converter interface {
	Encode(d interface{}) ([]byte, error)
	Decode(b []byte) (interface{}, error)
}

Converter converts bytes & map or []map according to the schema

type ConverterProvider

type ConverterProvider func(schemaFileName string, SchemaMessageName string, delimiter string) (Converter, error)

ConverterProvider The format, schema information are passed in by stream options The columns information is defined in the source side, like file source

type Decompressor

type Decompressor interface {
	Decompress([]byte) ([]byte, error)
}

type SchemaMergeAbleConverter

type SchemaMergeAbleConverter interface {
	MergeSchema(key, datasource string, newSchema map[string]*ast.JsonStreamField, isWildcard bool) error
	DetachSchema(key string) error
}

type SchemaProvider

type SchemaProvider interface {
	GetSchemaJson() string
}

Jump to

Keyboard shortcuts

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