Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParsequeuePusher ¶
type ParsequeuePusher struct { State PusherState // contains filtered or unexported fields }
func NewParsequeuePusher ¶
func NewParsequeuePusher(queue *parsequeue.ParseQueue[Chunk], logger log.Logger, inflightLimit int64) *ParsequeuePusher
type Pusher ¶
type Pusher interface { Push(ctx context.Context, chunk Chunk) error // Ack is used in the parsqueue pusher as a way of keeping the state of files currently being processed clean. // Ack has no effect in the sync pusher, here files are processed from start to finish before new ones are fetched so no state is needed. // Ack is called by the ack method of the parsqueue once a chunk is pushed. // It returns a bool that gives information if a file was fully processed and is done. // It errors out if more then one ack was called on the same chunk of data. Ack(chunk Chunk) (bool, error) }
type PusherState ¶
type SyncPusher ¶
type SyncPusher struct {
// contains filtered or unexported fields
}
func NewSyncPusher ¶
func NewSyncPusher(pusher abstract.Pusher) *SyncPusher
Click to show internal directories.
Click to hide internal directories.