state

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Overview

Package state provides the persistent storage layer for the log poller.

Index

Constants

View Source
const (
	ColumnFile = "file"

	// File seek info offset.
	ColumnOffset = "offset"
	// File seek info whence.
	ColumnWhence = "whence"
)
View Source
const TableNameLogFileSeekInfo = "components_query_log_seek_info"

Variables

This section is empty.

Functions

func CreateTableLogFileSeekInfo added in v0.1.6

func CreateTableLogFileSeekInfo(ctx context.Context, db *sql.DB) error

func GetLogFileSeekInfo added in v0.1.6

func GetLogFileSeekInfo(ctx context.Context, db *sql.DB, file string) (int64, int64, error)

Returns "database/sql.ErrNoRows" if no record is found.

func InsertLogFileSeekInfo added in v0.1.6

func InsertLogFileSeekInfo(ctx context.Context, db *sql.DB, file string, offset int64, whence int64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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