Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveBoundary ¶
type BlockState ¶
type FileState ¶
type FileState struct {
Cursor string `yaml:"cursor" json:"cursor"`
Block BlockState `yaml:"block" json:"block"`
ActiveBoundary ActiveBoundary `yaml:"active_boundary" json:"active_boundary"`
// StartedAt is the time this process was launching initially without accounting to any restart, once set, this
// value, it's never re-written (unless the file does not exist anymore).
StartedAt time.Time `yaml:"started_at,omitempty" json:"started_at,omitempty"`
// RestartedAt is the time this process was last launched meaning it's reset each time the process start. This value
// in contrast to `StartedAt` change over time each time the process is restarted.
RestartedAt time.Time `yaml:"restarted_at,omitempty" json:"restarted_at,omitempty"`
}
type FileStateStore ¶
type FileStateStore struct {
// contains filtered or unexported fields
}
func NewFileStateStore ¶
func NewFileStateStore(outputPath string) (*FileStateStore, error)
func (*FileStateStore) GetState ¶
func (s *FileStateStore) GetState() (Saveable, error)
func (*FileStateStore) NewBoundary ¶
func (s *FileStateStore) NewBoundary(boundary *bstream.Range)
func (*FileStateStore) ReadCursor ¶
func (s *FileStateStore) ReadCursor() (cursor *sink.Cursor, err error)
func (*FileStateStore) SetCursor ¶
func (s *FileStateStore) SetCursor(cursor *sink.Cursor)
Click to show internal directories.
Click to hide internal directories.