Documentation
¶
Index ¶
- type Follower
- func (f *Follower) GetShards(stream string) ([]string, error)
- func (f *Follower) ReadRecords(dst chan<- *Record, stream, shard, iterType string, rest time.Duration) <-chan *ReaderResult
- func (f *Follower) Tail(dst chan<- *Record, stream, iterType string, rest time.Duration) (<-chan *ReaderResult, error)
- type ReaderResult
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Follower ¶
type Follower struct {
// contains filtered or unexported fields
}
func NewFollower ¶
func NewFollowerWithAPI ¶
func NewFollowerWithAPI(api kinesisiface.KinesisAPI) *Follower
func (*Follower) ReadRecords ¶
type ReaderResult ¶
ReaderResult indicates the outcome of shard reading procedure. Shard reading may end gracefully when a closed shard's last batch of records was read. In that case, Err will be set to io.EOF.
func (*ReaderResult) String ¶
func (rr *ReaderResult) String() string
String causes ReaderResult to satisfy fmt.Stringer interface.
Click to show internal directories.
Click to hide internal directories.