processor

package
v0.0.0-...-9b27197 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	cluster.CommonMonitor
}

func NewMonitor

func NewMonitor(ctx context.Context, cfg config.Config, log log.Logger) (*Monitor, error)

func (*Monitor) Dispose

func (w *Monitor) Dispose(ctx context.Context) error

func (*Monitor) GetFirstIncompleteVersion

func (w *Monitor) GetFirstIncompleteVersion(ctx context.Context) (int, error)

func (*Monitor) GetIncompleteRecordsByVersion

func (w *Monitor) GetIncompleteRecordsByVersion(ctx context.Context, version int) ([]*record.Record, error)

func (*Monitor) GetLastVersion

func (w *Monitor) GetLastVersion(ctx context.Context) (int, error)

func (*Monitor) GetRecordsByVersion

func (w *Monitor) GetRecordsByVersion(ctx context.Context, version int) ([]*record.Record, error)

func (*Monitor) MergeRecords

func (w *Monitor) MergeRecords(ctx context.Context, recs []*record.Record) error

func (*Monitor) UpdateRecord

func (w *Monitor) UpdateRecord(ctx context.Context, rec *record.Record) error

Directories

Path Synopsis
pg

Jump to

Keyboard shortcuts

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