sqlite

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL