internal

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidParam is an internal error used in case an input parameter was invalid.
	ErrInvalidParam = errors.New("invalid parameter")

	// ErrMutuallyExclusiveConfigs is an internal error used in case both a batch client config and storage client config
	// are defined in a single StreamerConfig. As this is an ambigious situation we've chosen to fail on it instead.
	ErrMutuallyExclusiveConfigs = errors.New("you cannot define both a storage Client and a batch client at once")

	// ErrAutoDetectSchemaNotSupported is an internal error used in case a batch client config was defined with a data format
	// other than Json or CSV, yet no bigquery Schema defined. This makes auto-detection impossible according to our knowledge,
	// and thus we fail early.
	ErrAutoDetectSchemaNotSupported = errors.New("BQ batch client: autoDetect is only supported for JSON and CSV format")

	// ErrProtobufOrSChemaRequired is an error used in case a Storage client config was created with no protobuf descriptor
	// or bigquery schema defined, making it impossible for the internal storage client to know how to encode the data.
	ErrProtobufOrSChemaRequired = errors.New("StorageClientConfig invalid: either a Protobuf descriptor or BigQuery schema is required")
)

Functions

This section is empty.

Types

type Logger

type Logger struct{}

Logger is the builtin implementation of the Logger interface, and logs error messages to the STDERR, but ignores debug messages.

func (Logger) Debug

func (stdl Logger) Debug(args ...interface{})

Debug implements Logger::Debug

func (Logger) Debugf

func (stdl Logger) Debugf(template string, args ...interface{})

Debugf implements Logger::Debugf

func (Logger) Error

func (stdl Logger) Error(args ...interface{})

Error implements Logger::Error

func (Logger) Errorf

func (stdl Logger) Errorf(template string, args ...interface{})

Errorf implements Logger::Errorf

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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