Documentation ¶ Index ¶ type Store func NewStore(dsn string) (*Store, error) func (s *Store) Append(topic string, msgs ...[]byte) error func (s *Store) Close() func (s *Store) Commit(clientID string, topic string, idx int) error func (s *Store) FetchNext(clientID string, topic string, limit int) ([]message.Message, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Store ¶ type Store struct { sync.RWMutex // contains filtered or unexported fields } func NewStore ¶ func NewStore(dsn string) (*Store, error) func (*Store) Append ¶ func (s *Store) Append(topic string, msgs ...[]byte) error func (*Store) Close ¶ func (s *Store) Close() func (*Store) Commit ¶ func (s *Store) Commit(clientID string, topic string, idx int) error func (*Store) FetchNext ¶ func (s *Store) FetchNext(clientID string, topic string, limit int) ([]message.Message, error) Source Files ¶ View all Source files store.go Click to show internal directories. Click to hide internal directories.