writer

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.1.8

type Config struct {
	Batch           int
	ClickhouseURI   string
	Period          time.Duration
	QueueNameFailed string
	Redis           redisConfig
}

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer hold object

func NewWriter added in v0.1.8

func NewWriter(cnf *Config, log *zap.SugaredLogger, rdr *reader.Reader) (*Writer, error)

func (*Writer) AmiError added in v0.1.7

func (w *Writer) AmiError(err error)

func (Writer) IsAccessible

func (w Writer) IsAccessible() bool

IsAccessible checks Clickhouse status

func (*Writer) Start

func (w *Writer) Start()

Start writer

func (*Writer) Stop added in v0.1.8

func (w *Writer) Stop()

Jump to

Keyboard shortcuts

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