writer

package
v0.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, factory WriterFactory)

Types

type Writer

type Writer interface {
	Write(data string) error
	Close() error
}

func New

func New(typ, schema, topic, sourceID string, cfg WriterConfig) (Writer, error)

type WriterConfig

type WriterConfig interface {
	IsMeteringWriter()
	Type() string
}

type WriterFactory

type WriterFactory func(schema, topic, sourceID string, cfg WriterConfig) (Writer, error)

Jump to

Keyboard shortcuts

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