handlers

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPostionFile

func GetPostionFile() (string, error)

GetPostionFile is used to get position file path

Types

type PositionHandler

type PositionHandler struct {
	PostionFilePath string
	// contains filtered or unexported fields
}

PositionHandler holds the position of read events from flat file

func NewPostionHandler

func NewPostionHandler(posFileName string) (*PositionHandler, error)

NewPostionHandler create new position handler object

func (*PositionHandler) ReadPositionfromFile

func (position *PositionHandler) ReadPositionfromFile(v interface{}) error

ReadPositionfromFile read position of events from where next read will start

func (*PositionHandler) WritePostiontoFile

func (position *PositionHandler) WritePostiontoFile(v interface{}) (bool, error)

WritePostiontoFile write position of current read events.

Jump to

Keyboard shortcuts

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