Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AckFn ¶
AckFn is a function provided to a scanner that it should call once the derived io.ReadCloser is fully consumed.
type Creator ¶
type Creator interface { Create(rdr io.ReadCloser, aFn AckFn, details SourceDetails) (Scanner, error) Close(context.Context) error }
Creator is an interface implemented by all scanners, which allows components to construct a scanner from an unbounded io.ReadCloser.
type Scanner ¶
type Scanner interface { Next(context.Context) (message.Batch, AckFn, error) Close(context.Context) error }
Scanner is an interface implemented by all scanner implementations once a creator has instantiated it on a byte stream.
type SourceDetails ¶
type SourceDetails struct {
Name string
}
SourceDetails contains exclusively optional information which could be used by codec implementations in order to determine the underlying data format.
Click to show internal directories.
Click to hide internal directories.