retry

package
v3.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closable

type Closable interface {
	Close() error
	CloseMessage() string
}

type Countable

type Countable interface {
	Inc() uint64
	Dec() uint64
	Val() uint64
}

type Packet

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

func NewPacket

func NewPacket(view cx.View, batch *cx.Batch) *Packet

type Queueable

type Queueable interface {
	Queue(packet *Packet)
	Retries() <-chan *Packet
}

func NewImMemoryQueueEngine

func NewImMemoryQueueEngine() Queueable

type Retryable

type Retryable interface {
	Retry(packet *Packet)
	Metrics() (uint64, uint64, uint64)
}

func NewRetry

func NewRetry(ctx context.Context, engine Queueable, writer Writeable, logger cx.Logger, isDebug bool) Retryable

type Writeable

type Writeable interface {
	Write(ctx context.Context, view cx.View, batch *cx.Batch) (uint64, error)
}

func NewDefaultWriter

func NewDefaultWriter(conn cx.Clickhouse) Writeable

Jump to

Keyboard shortcuts

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