protobuf

package
v0.0.0-rc12 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParserProto

func NewParserProto(inWrapped interface{}, _ bool, logger log.Logger, metrics *stats.SourceStats) (parsers.Parser, error)

Types

type ParserConfigProtoCommon

type ParserConfigProtoCommon struct {
	DescFile         []byte
	DescResourceName string
	MessageName      string

	IncludeColumns []protoparser.ColParams
	PrimaryKeys    []string
	PackageType    protoparser.MessagePackageType

	NullKeysAllowed bool
}

func (*ParserConfigProtoCommon) IsAppendOnly

func (c *ParserConfigProtoCommon) IsAppendOnly() bool

func (*ParserConfigProtoCommon) IsNewParserConfig

func (c *ParserConfigProtoCommon) IsNewParserConfig()

func (*ParserConfigProtoCommon) ToProtoParserConfig

func (c *ParserConfigProtoCommon) ToProtoParserConfig(logger log.Logger) (*protoparser.ProtoParserConfig, error)

func (*ParserConfigProtoCommon) Validate

func (c *ParserConfigProtoCommon) Validate() error

type ParserConfigProtoLb

type ParserConfigProtoLb struct {
	DescFile         []byte
	DescResourceName string
	MessageName      string

	IncludeColumns []protoparser.ColParams
	PrimaryKeys    []string
	PackageType    protoparser.MessagePackageType

	NullKeysAllowed  bool
	AddSystemColumns bool
	SkipDedupKeys    bool
	AddSyntheticKeys bool
}

func (*ParserConfigProtoLb) IsAppendOnly

func (c *ParserConfigProtoLb) IsAppendOnly() bool

func (*ParserConfigProtoLb) IsNewParserConfig

func (c *ParserConfigProtoLb) IsNewParserConfig()

func (*ParserConfigProtoLb) ToProtoParserConfig

func (c *ParserConfigProtoLb) ToProtoParserConfig(logger log.Logger) (*protoparser.ProtoParserConfig, error)

func (*ParserConfigProtoLb) Validate

func (c *ParserConfigProtoLb) Validate() error

type ProtoConfigurable

type ProtoConfigurable interface {
	ToProtoParserConfig(log.Logger) (*protoparser.ProtoParserConfig, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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