Documentation
¶
Index ¶
- type ActiveBoundary
- type BlockState
- type FileState
- type FileStateStore
- func (s *FileStateStore) Close()
- func (s *FileStateStore) GetState() (Saveable, error)
- func (s *FileStateStore) NewBoundary(boundary *bstream.Range)
- func (s *FileStateStore) ReadCursor(ctx context.Context) (cursor *sink.Cursor, err error)
- func (s *FileStateStore) SetCursor(cursor *sink.Cursor)
- func (s *FileStateStore) Start(ctx context.Context)
- func (s *FileStateStore) UploadCursor(saveable Saveable)
- type Saveable
- type Store
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 ¶
func NewFileStateStore ¶
func (*FileStateStore) Close ¶
func (s *FileStateStore) Close()
func (*FileStateStore) GetState ¶
func (s *FileStateStore) GetState() (Saveable, error)
func (*FileStateStore) NewBoundary ¶
func (s *FileStateStore) NewBoundary(boundary *bstream.Range)
func (*FileStateStore) ReadCursor ¶
func (*FileStateStore) SetCursor ¶
func (s *FileStateStore) SetCursor(cursor *sink.Cursor)
func (*FileStateStore) Start ¶
func (s *FileStateStore) Start(ctx context.Context)
func (*FileStateStore) UploadCursor ¶
func (s *FileStateStore) UploadCursor(saveable Saveable)
type Saveable ¶
type Saveable interface {
Save() error
GetUploadeable() writer.Uploadeable
}
Click to show internal directories.
Click to hide internal directories.