Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type FeedRequester ¶
type FeedStore ¶
type FeedStore interface { // GetPosition retrieve the last position from the db GetPosition(table string) uint64 // SetPosition save the new feed position in the db SetPosition(table string, last uint64) error // Save the feed in the db Save(last interface{}) error }
FeedStore is the db interface
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
func (*MemoryStore) Get ¶
func (s *MemoryStore) Get() interface{}
func (*MemoryStore) GetPosition ¶
func (s *MemoryStore) GetPosition(t string) uint64
func (*MemoryStore) Save ¶
func (s *MemoryStore) Save(i interface{}) error
func (*MemoryStore) SetPosition ¶
func (s *MemoryStore) SetPosition(t string, after uint64) error
type PesterRequester ¶
type PesterRequester struct{}
func NewPesterRequester ¶
func NewPesterRequester() *PesterRequester
Click to show internal directories.
Click to hide internal directories.