Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { DB *sql.DB Writer sqlutil.Writer TopicsTable tables.NaffkaTopics // contains filtered or unexported fields }
Database represents a database implementation, either Postgres or SQLite.
func (*Database) CreateCache ¶
func (p *Database) CreateCache()
func (*Database) FetchMessages ¶
func (p *Database) FetchMessages(topic string, startOffset, endOffset int64) (messages []types.Message, err error)
FetchMessages implements Database.
func (*Database) MaxOffsets ¶
MaxOffsets implements Database.
Click to show internal directories.
Click to hide internal directories.