Documentation ¶
Index ¶
- func NewBlockStore(db *sql.DB, lock *sync.Mutex) repo.BlockStore
- func NewCafeClientMessageStore(db *sql.DB, lock *sync.Mutex) repo.CafeClientMessageStore
- func NewCafeClientNonceStore(db *sql.DB, lock *sync.Mutex) repo.CafeClientNonceStore
- func NewCafeClientStore(db *sql.DB, lock *sync.Mutex) repo.CafeClientStore
- func NewCafeClientThreadStore(db *sql.DB, lock *sync.Mutex) repo.CafeClientThreadStore
- func NewCafeMessageStore(db *sql.DB, lock *sync.Mutex) repo.CafeMessageStore
- func NewCafeRequestStore(db *sql.DB, lock *sync.Mutex) repo.CafeRequestStore
- func NewCafeSessionStore(db *sql.DB, lock *sync.Mutex) repo.CafeSessionStore
- func NewConfigStore(db *sql.DB, lock *sync.Mutex, path string) repo.ConfigStore
- func NewContactStore(db *sql.DB, lock *sync.Mutex) repo.ContactStore
- func NewFileStore(db *sql.DB, lock *sync.Mutex) repo.FileStore
- func NewNotificationStore(db *sql.DB, lock *sync.Mutex) repo.NotificationStore
- func NewProfileStore(db *sql.DB, lock *sync.Mutex) repo.ProfileStore
- func NewThreadInviteStore(db *sql.DB, lock *sync.Mutex) repo.ThreadInviteStore
- func NewThreadMessageStore(db *sql.DB, lock *sync.Mutex) repo.ThreadMessageStore
- func NewThreadPeerStore(db *sql.DB, lock *sync.Mutex) repo.ThreadPeerStore
- func NewThreadStore(db *sql.DB, lock *sync.Mutex) repo.ThreadStore
- type BlockDB
- func (c *BlockDB) Add(block *repo.Block) error
- func (m *BlockDB) BeginTransaction() (*sql.Tx, error)
- func (c *BlockDB) Count(query string) int
- func (c *BlockDB) Delete(id string) error
- func (c *BlockDB) DeleteByThread(threadId string) error
- func (m *BlockDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *BlockDB) Get(id string) *repo.Block
- func (c *BlockDB) List(offset string, limit int, query string) []repo.Block
- func (m *BlockDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *BlockDB) PrepareQuery(query string) (*sql.Stmt, error)
- type CafeClientDB
- func (c *CafeClientDB) Add(client *repo.CafeClient) error
- func (m *CafeClientDB) BeginTransaction() (*sql.Tx, error)
- func (c *CafeClientDB) Count() int
- func (c *CafeClientDB) Delete(id string) error
- func (m *CafeClientDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *CafeClientDB) Get(id string) *repo.CafeClient
- func (c *CafeClientDB) List() []repo.CafeClient
- func (c *CafeClientDB) ListByAddress(address string) []repo.CafeClient
- func (m *CafeClientDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *CafeClientDB) PrepareQuery(query string) (*sql.Stmt, error)
- func (c *CafeClientDB) UpdateLastSeen(id string, date time.Time) error
- type CafeClientMessagesDB
- func (c *CafeClientMessagesDB) AddOrUpdate(message *repo.CafeClientMessage) error
- func (m *CafeClientMessagesDB) BeginTransaction() (*sql.Tx, error)
- func (c *CafeClientMessagesDB) CountByClient(clientId string) int
- func (c *CafeClientMessagesDB) Delete(id string, clientId string) error
- func (c *CafeClientMessagesDB) DeleteByClient(clientId string, limit int) error
- func (m *CafeClientMessagesDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *CafeClientMessagesDB) ListByClient(clientId string, limit int) []repo.CafeClientMessage
- func (m *CafeClientMessagesDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *CafeClientMessagesDB) PrepareQuery(query string) (*sql.Stmt, error)
- type CafeClientNonceDB
- func (c *CafeClientNonceDB) Add(nonce *repo.CafeClientNonce) error
- func (m *CafeClientNonceDB) BeginTransaction() (*sql.Tx, error)
- func (c *CafeClientNonceDB) Delete(value string) error
- func (m *CafeClientNonceDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *CafeClientNonceDB) Get(value string) *repo.CafeClientNonce
- func (m *CafeClientNonceDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *CafeClientNonceDB) PrepareQuery(query string) (*sql.Stmt, error)
- type CafeClientThreadDB
- func (c *CafeClientThreadDB) AddOrUpdate(thrd *repo.CafeClientThread) error
- func (m *CafeClientThreadDB) BeginTransaction() (*sql.Tx, error)
- func (c *CafeClientThreadDB) Delete(id string, clientId string) error
- func (c *CafeClientThreadDB) DeleteByClient(clientId string) error
- func (m *CafeClientThreadDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *CafeClientThreadDB) ListByClient(clientId string) []repo.CafeClientThread
- func (m *CafeClientThreadDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *CafeClientThreadDB) PrepareQuery(query string) (*sql.Stmt, error)
- type CafeMessageDB
- func (c *CafeMessageDB) Add(req *repo.CafeMessage) error
- func (m *CafeMessageDB) BeginTransaction() (*sql.Tx, error)
- func (c *CafeMessageDB) Delete(id string) error
- func (m *CafeMessageDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *CafeMessageDB) List(offset string, limit int) []repo.CafeMessage
- func (m *CafeMessageDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *CafeMessageDB) PrepareQuery(query string) (*sql.Stmt, error)
- type CafeRequestDB
- func (c *CafeRequestDB) Add(req *repo.CafeRequest) error
- func (m *CafeRequestDB) BeginTransaction() (*sql.Tx, error)
- func (c *CafeRequestDB) Delete(id string) error
- func (c *CafeRequestDB) DeleteByCafe(cafeId string) error
- func (m *CafeRequestDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *CafeRequestDB) List(offset string, limit int) []repo.CafeRequest
- func (m *CafeRequestDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *CafeRequestDB) PrepareQuery(query string) (*sql.Stmt, error)
- type CafeSessionDB
- func (c *CafeSessionDB) AddOrUpdate(session *repo.CafeSession) error
- func (m *CafeSessionDB) BeginTransaction() (*sql.Tx, error)
- func (c *CafeSessionDB) Delete(cafeId string) error
- func (m *CafeSessionDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *CafeSessionDB) Get(cafeId string) *repo.CafeSession
- func (c *CafeSessionDB) List() []repo.CafeSession
- func (m *CafeSessionDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *CafeSessionDB) PrepareQuery(query string) (*sql.Stmt, error)
- type ConfigDB
- type ContactDB
- func (c *ContactDB) Add(contact *repo.Contact) error
- func (c *ContactDB) AddOrUpdate(contact *repo.Contact) error
- func (m *ContactDB) BeginTransaction() (*sql.Tx, error)
- func (c *ContactDB) Count() int
- func (c *ContactDB) Delete(id string) error
- func (m *ContactDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *ContactDB) Get(id string) *repo.Contact
- func (c *ContactDB) List() []repo.Contact
- func (c *ContactDB) ListByAddress(address string) []repo.Contact
- func (m *ContactDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *ContactDB) PrepareQuery(query string) (*sql.Stmt, error)
- type FileDB
- func (c *FileDB) Add(file *repo.File) error
- func (c *FileDB) AddTarget(hash string, target string) error
- func (m *FileDB) BeginTransaction() (*sql.Tx, error)
- func (c *FileDB) Count() int
- func (c *FileDB) Delete(hash string) error
- func (m *FileDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *FileDB) Get(hash string) *repo.File
- func (c *FileDB) GetByPrimary(mill string, checksum string) *repo.File
- func (c *FileDB) GetBySource(mill string, source string, opts string) *repo.File
- func (m *FileDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *FileDB) PrepareQuery(query string) (*sql.Stmt, error)
- func (c *FileDB) RemoveTarget(hash string, target string) error
- type NotificationDB
- func (c *NotificationDB) Add(notification *repo.Notification) error
- func (m *NotificationDB) BeginTransaction() (*sql.Tx, error)
- func (c *NotificationDB) CountUnread() int
- func (c *NotificationDB) Delete(id string) error
- func (c *NotificationDB) DeleteByActor(actorId string) error
- func (c *NotificationDB) DeleteByBlock(blockId string) error
- func (c *NotificationDB) DeleteBySubject(subjectId string) error
- func (m *NotificationDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *NotificationDB) Get(id string) *repo.Notification
- func (c *NotificationDB) List(offset string, limit int) []repo.Notification
- func (m *NotificationDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *NotificationDB) PrepareQuery(query string) (*sql.Stmt, error)
- func (c *NotificationDB) Read(id string) error
- func (c *NotificationDB) ReadAll() error
- type ProfileDB
- type SQLiteDatastore
- func (d *SQLiteDatastore) Blocks() repo.BlockStore
- func (d *SQLiteDatastore) CafeClientMessages() repo.CafeClientMessageStore
- func (d *SQLiteDatastore) CafeClientNonces() repo.CafeClientNonceStore
- func (d *SQLiteDatastore) CafeClientThreads() repo.CafeClientThreadStore
- func (d *SQLiteDatastore) CafeClients() repo.CafeClientStore
- func (d *SQLiteDatastore) CafeMessages() repo.CafeMessageStore
- func (d *SQLiteDatastore) CafeRequests() repo.CafeRequestStore
- func (d *SQLiteDatastore) CafeSessions() repo.CafeSessionStore
- func (d *SQLiteDatastore) Close()
- func (d *SQLiteDatastore) Config() repo.ConfigStore
- func (d *SQLiteDatastore) Contacts() repo.ContactStore
- func (d *SQLiteDatastore) Copy(dbPath string, pin string) error
- func (d *SQLiteDatastore) Files() repo.FileStore
- func (d *SQLiteDatastore) InitTables(pin string) error
- func (d *SQLiteDatastore) Notifications() repo.NotificationStore
- func (d *SQLiteDatastore) Ping() error
- func (d *SQLiteDatastore) Profile() repo.ProfileStore
- func (d *SQLiteDatastore) ThreadInvites() repo.ThreadInviteStore
- func (d *SQLiteDatastore) ThreadMessages() repo.ThreadMessageStore
- func (d *SQLiteDatastore) ThreadPeers() repo.ThreadPeerStore
- func (d *SQLiteDatastore) Threads() repo.ThreadStore
- type ThreadDB
- func (c *ThreadDB) Add(thread *repo.Thread) error
- func (m *ThreadDB) BeginTransaction() (*sql.Tx, error)
- func (c *ThreadDB) Count() int
- func (c *ThreadDB) Delete(id string) error
- func (m *ThreadDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *ThreadDB) Get(id string) *repo.Thread
- func (c *ThreadDB) GetByKey(key string) *repo.Thread
- func (c *ThreadDB) List() []repo.Thread
- func (m *ThreadDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *ThreadDB) PrepareQuery(query string) (*sql.Stmt, error)
- func (c *ThreadDB) UpdateHead(id string, head string) error
- type ThreadInviteDB
- func (c *ThreadInviteDB) Add(invite *repo.ThreadInvite) error
- func (m *ThreadInviteDB) BeginTransaction() (*sql.Tx, error)
- func (c *ThreadInviteDB) Delete(id string) error
- func (m *ThreadInviteDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *ThreadInviteDB) Get(id string) *repo.ThreadInvite
- func (c *ThreadInviteDB) List() []repo.ThreadInvite
- func (m *ThreadInviteDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *ThreadInviteDB) PrepareQuery(query string) (*sql.Stmt, error)
- type ThreadMessageDB
- func (c *ThreadMessageDB) Add(msg *repo.ThreadMessage) error
- func (m *ThreadMessageDB) BeginTransaction() (*sql.Tx, error)
- func (c *ThreadMessageDB) Delete(id string) error
- func (m *ThreadMessageDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *ThreadMessageDB) List(offset string, limit int) []repo.ThreadMessage
- func (m *ThreadMessageDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *ThreadMessageDB) PrepareQuery(query string) (*sql.Stmt, error)
- type ThreadPeerDB
- func (c *ThreadPeerDB) Add(peer *repo.ThreadPeer) error
- func (m *ThreadPeerDB) BeginTransaction() (*sql.Tx, error)
- func (c *ThreadPeerDB) Count(distinct bool) int
- func (c *ThreadPeerDB) Delete(id string, threadId string) error
- func (c *ThreadPeerDB) DeleteById(id string) error
- func (c *ThreadPeerDB) DeleteByThread(threadId string) error
- func (m *ThreadPeerDB) ExecuteQuery(query string, args ...interface{}) (sql.Result, error)
- func (c *ThreadPeerDB) List() []repo.ThreadPeer
- func (c *ThreadPeerDB) ListById(id string) []repo.ThreadPeer
- func (c *ThreadPeerDB) ListByThread(threadId string) []repo.ThreadPeer
- func (c *ThreadPeerDB) ListUnwelcomedByThread(threadId string) []repo.ThreadPeer
- func (m *ThreadPeerDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
- func (m *ThreadPeerDB) PrepareQuery(query string) (*sql.Stmt, error)
- func (c *ThreadPeerDB) WelcomeByThread(threadId string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlockStore ¶
func NewCafeClientNonceStore ¶
func NewCafeClientStore ¶
func NewCafeMessageStore ¶
func NewCafeRequestStore ¶
func NewCafeSessionStore ¶
func NewConfigStore ¶
func NewContactStore ¶
func NewNotificationStore ¶
func NewProfileStore ¶
func NewThreadInviteStore ¶
func NewThreadMessageStore ¶
func NewThreadPeerStore ¶
func NewThreadStore ¶
Types ¶
type BlockDB ¶
type BlockDB struct {
// contains filtered or unexported fields
}
func (*BlockDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*BlockDB) DeleteByThread ¶
func (*BlockDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*BlockDB) PrepareAndExecuteQuery ¶
PrepareAndExecuteQuery returns the resulting *sql.Rows for the executed query
type CafeClientDB ¶
type CafeClientDB struct {
// contains filtered or unexported fields
}
func (*CafeClientDB) Add ¶
func (c *CafeClientDB) Add(client *repo.CafeClient) error
func (*CafeClientDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*CafeClientDB) Count ¶
func (c *CafeClientDB) Count() int
func (*CafeClientDB) Delete ¶
func (c *CafeClientDB) Delete(id string) error
func (*CafeClientDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*CafeClientDB) Get ¶
func (c *CafeClientDB) Get(id string) *repo.CafeClient
func (*CafeClientDB) List ¶
func (c *CafeClientDB) List() []repo.CafeClient
func (*CafeClientDB) ListByAddress ¶
func (c *CafeClientDB) ListByAddress(address string) []repo.CafeClient
func (*CafeClientDB) PrepareAndExecuteQuery ¶
PrepareAndExecuteQuery returns the resulting *sql.Rows for the executed query
func (*CafeClientDB) PrepareQuery ¶
PrepareQuery returns a *sql.Stmt to the wrapped DB
func (*CafeClientDB) UpdateLastSeen ¶
func (c *CafeClientDB) UpdateLastSeen(id string, date time.Time) error
type CafeClientMessagesDB ¶
type CafeClientMessagesDB struct {
// contains filtered or unexported fields
}
func (*CafeClientMessagesDB) AddOrUpdate ¶
func (c *CafeClientMessagesDB) AddOrUpdate(message *repo.CafeClientMessage) error
func (*CafeClientMessagesDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*CafeClientMessagesDB) CountByClient ¶
func (c *CafeClientMessagesDB) CountByClient(clientId string) int
func (*CafeClientMessagesDB) Delete ¶
func (c *CafeClientMessagesDB) Delete(id string, clientId string) error
func (*CafeClientMessagesDB) DeleteByClient ¶
func (c *CafeClientMessagesDB) DeleteByClient(clientId string, limit int) error
func (*CafeClientMessagesDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*CafeClientMessagesDB) ListByClient ¶
func (c *CafeClientMessagesDB) ListByClient(clientId string, limit int) []repo.CafeClientMessage
type CafeClientNonceDB ¶
type CafeClientNonceDB struct {
// contains filtered or unexported fields
}
func (*CafeClientNonceDB) Add ¶
func (c *CafeClientNonceDB) Add(nonce *repo.CafeClientNonce) error
func (*CafeClientNonceDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*CafeClientNonceDB) Delete ¶
func (c *CafeClientNonceDB) Delete(value string) error
func (*CafeClientNonceDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*CafeClientNonceDB) Get ¶
func (c *CafeClientNonceDB) Get(value string) *repo.CafeClientNonce
type CafeClientThreadDB ¶
type CafeClientThreadDB struct {
// contains filtered or unexported fields
}
func (*CafeClientThreadDB) AddOrUpdate ¶
func (c *CafeClientThreadDB) AddOrUpdate(thrd *repo.CafeClientThread) error
func (*CafeClientThreadDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*CafeClientThreadDB) Delete ¶
func (c *CafeClientThreadDB) Delete(id string, clientId string) error
func (*CafeClientThreadDB) DeleteByClient ¶
func (c *CafeClientThreadDB) DeleteByClient(clientId string) error
func (*CafeClientThreadDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*CafeClientThreadDB) ListByClient ¶
func (c *CafeClientThreadDB) ListByClient(clientId string) []repo.CafeClientThread
type CafeMessageDB ¶
type CafeMessageDB struct {
// contains filtered or unexported fields
}
func (*CafeMessageDB) Add ¶
func (c *CafeMessageDB) Add(req *repo.CafeMessage) error
func (*CafeMessageDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*CafeMessageDB) Delete ¶
func (c *CafeMessageDB) Delete(id string) error
func (*CafeMessageDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*CafeMessageDB) List ¶
func (c *CafeMessageDB) List(offset string, limit int) []repo.CafeMessage
type CafeRequestDB ¶
type CafeRequestDB struct {
// contains filtered or unexported fields
}
func (*CafeRequestDB) Add ¶
func (c *CafeRequestDB) Add(req *repo.CafeRequest) error
func (*CafeRequestDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*CafeRequestDB) Delete ¶
func (c *CafeRequestDB) Delete(id string) error
func (*CafeRequestDB) DeleteByCafe ¶
func (c *CafeRequestDB) DeleteByCafe(cafeId string) error
func (*CafeRequestDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*CafeRequestDB) List ¶
func (c *CafeRequestDB) List(offset string, limit int) []repo.CafeRequest
type CafeSessionDB ¶
type CafeSessionDB struct {
// contains filtered or unexported fields
}
func (*CafeSessionDB) AddOrUpdate ¶
func (c *CafeSessionDB) AddOrUpdate(session *repo.CafeSession) error
func (*CafeSessionDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*CafeSessionDB) Delete ¶
func (c *CafeSessionDB) Delete(cafeId string) error
func (*CafeSessionDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*CafeSessionDB) Get ¶
func (c *CafeSessionDB) Get(cafeId string) *repo.CafeSession
func (*CafeSessionDB) List ¶
func (c *CafeSessionDB) List() []repo.CafeSession
type ConfigDB ¶
type ConfigDB struct {
// contains filtered or unexported fields
}
func (*ConfigDB) IsEncrypted ¶
type ContactDB ¶
type ContactDB struct {
// contains filtered or unexported fields
}
func (*ContactDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*ContactDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*ContactDB) PrepareAndExecuteQuery ¶
PrepareAndExecuteQuery returns the resulting *sql.Rows for the executed query
type FileDB ¶
type FileDB struct {
// contains filtered or unexported fields
}
func (*FileDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*FileDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*FileDB) GetByPrimary ¶
func (*FileDB) GetBySource ¶
func (*FileDB) PrepareAndExecuteQuery ¶
PrepareAndExecuteQuery returns the resulting *sql.Rows for the executed query
func (*FileDB) PrepareQuery ¶
PrepareQuery returns a *sql.Stmt to the wrapped DB
type NotificationDB ¶
type NotificationDB struct {
// contains filtered or unexported fields
}
func (*NotificationDB) Add ¶
func (c *NotificationDB) Add(notification *repo.Notification) error
func (*NotificationDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*NotificationDB) CountUnread ¶
func (c *NotificationDB) CountUnread() int
func (*NotificationDB) Delete ¶
func (c *NotificationDB) Delete(id string) error
func (*NotificationDB) DeleteByActor ¶
func (c *NotificationDB) DeleteByActor(actorId string) error
func (*NotificationDB) DeleteByBlock ¶
func (c *NotificationDB) DeleteByBlock(blockId string) error
func (*NotificationDB) DeleteBySubject ¶
func (c *NotificationDB) DeleteBySubject(subjectId string) error
func (*NotificationDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*NotificationDB) Get ¶
func (c *NotificationDB) Get(id string) *repo.Notification
func (*NotificationDB) List ¶
func (c *NotificationDB) List(offset string, limit int) []repo.Notification
func (*NotificationDB) PrepareAndExecuteQuery ¶
func (m *NotificationDB) PrepareAndExecuteQuery(query string, args ...interface{}) (*sql.Rows, error)
PrepareAndExecuteQuery returns the resulting *sql.Rows for the executed query
func (*NotificationDB) PrepareQuery ¶
PrepareQuery returns a *sql.Stmt to the wrapped DB
func (*NotificationDB) Read ¶
func (c *NotificationDB) Read(id string) error
func (*NotificationDB) ReadAll ¶
func (c *NotificationDB) ReadAll() error
type ProfileDB ¶
type ProfileDB struct {
// contains filtered or unexported fields
}
func (*ProfileDB) GetUsername ¶
func (*ProfileDB) SetUsername ¶
type SQLiteDatastore ¶
type SQLiteDatastore struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(repoPath, pin string) (*SQLiteDatastore, error)
func (*SQLiteDatastore) Blocks ¶
func (d *SQLiteDatastore) Blocks() repo.BlockStore
func (*SQLiteDatastore) CafeClientMessages ¶
func (d *SQLiteDatastore) CafeClientMessages() repo.CafeClientMessageStore
func (*SQLiteDatastore) CafeClientNonces ¶
func (d *SQLiteDatastore) CafeClientNonces() repo.CafeClientNonceStore
func (*SQLiteDatastore) CafeClientThreads ¶
func (d *SQLiteDatastore) CafeClientThreads() repo.CafeClientThreadStore
func (*SQLiteDatastore) CafeClients ¶
func (d *SQLiteDatastore) CafeClients() repo.CafeClientStore
func (*SQLiteDatastore) CafeMessages ¶
func (d *SQLiteDatastore) CafeMessages() repo.CafeMessageStore
func (*SQLiteDatastore) CafeRequests ¶
func (d *SQLiteDatastore) CafeRequests() repo.CafeRequestStore
func (*SQLiteDatastore) CafeSessions ¶
func (d *SQLiteDatastore) CafeSessions() repo.CafeSessionStore
func (*SQLiteDatastore) Close ¶
func (d *SQLiteDatastore) Close()
func (*SQLiteDatastore) Config ¶
func (d *SQLiteDatastore) Config() repo.ConfigStore
func (*SQLiteDatastore) Contacts ¶
func (d *SQLiteDatastore) Contacts() repo.ContactStore
func (*SQLiteDatastore) Files ¶
func (d *SQLiteDatastore) Files() repo.FileStore
func (*SQLiteDatastore) InitTables ¶
func (d *SQLiteDatastore) InitTables(pin string) error
func (*SQLiteDatastore) Notifications ¶
func (d *SQLiteDatastore) Notifications() repo.NotificationStore
func (*SQLiteDatastore) Ping ¶
func (d *SQLiteDatastore) Ping() error
func (*SQLiteDatastore) Profile ¶
func (d *SQLiteDatastore) Profile() repo.ProfileStore
func (*SQLiteDatastore) ThreadInvites ¶
func (d *SQLiteDatastore) ThreadInvites() repo.ThreadInviteStore
func (*SQLiteDatastore) ThreadMessages ¶
func (d *SQLiteDatastore) ThreadMessages() repo.ThreadMessageStore
func (*SQLiteDatastore) ThreadPeers ¶
func (d *SQLiteDatastore) ThreadPeers() repo.ThreadPeerStore
func (*SQLiteDatastore) Threads ¶
func (d *SQLiteDatastore) Threads() repo.ThreadStore
type ThreadDB ¶
type ThreadDB struct {
// contains filtered or unexported fields
}
func (*ThreadDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*ThreadDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*ThreadDB) PrepareAndExecuteQuery ¶
PrepareAndExecuteQuery returns the resulting *sql.Rows for the executed query
func (*ThreadDB) PrepareQuery ¶
PrepareQuery returns a *sql.Stmt to the wrapped DB
type ThreadInviteDB ¶
type ThreadInviteDB struct {
// contains filtered or unexported fields
}
func (*ThreadInviteDB) Add ¶
func (c *ThreadInviteDB) Add(invite *repo.ThreadInvite) error
func (*ThreadInviteDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*ThreadInviteDB) Delete ¶
func (c *ThreadInviteDB) Delete(id string) error
func (*ThreadInviteDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*ThreadInviteDB) Get ¶
func (c *ThreadInviteDB) Get(id string) *repo.ThreadInvite
func (*ThreadInviteDB) List ¶
func (c *ThreadInviteDB) List() []repo.ThreadInvite
type ThreadMessageDB ¶
type ThreadMessageDB struct {
// contains filtered or unexported fields
}
func (*ThreadMessageDB) Add ¶
func (c *ThreadMessageDB) Add(msg *repo.ThreadMessage) error
func (*ThreadMessageDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*ThreadMessageDB) Delete ¶
func (c *ThreadMessageDB) Delete(id string) error
func (*ThreadMessageDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*ThreadMessageDB) List ¶
func (c *ThreadMessageDB) List(offset string, limit int) []repo.ThreadMessage
type ThreadPeerDB ¶
type ThreadPeerDB struct {
// contains filtered or unexported fields
}
func (*ThreadPeerDB) Add ¶
func (c *ThreadPeerDB) Add(peer *repo.ThreadPeer) error
func (*ThreadPeerDB) BeginTransaction ¶
BeginTransaction returns a *sql.Tx for transactional query support
func (*ThreadPeerDB) Count ¶
func (c *ThreadPeerDB) Count(distinct bool) int
func (*ThreadPeerDB) DeleteById ¶
func (c *ThreadPeerDB) DeleteById(id string) error
func (*ThreadPeerDB) DeleteByThread ¶
func (c *ThreadPeerDB) DeleteByThread(threadId string) error
func (*ThreadPeerDB) ExecuteQuery ¶
ExecuteQuery returns the *sql.Result for the executed query without returning Rows
func (*ThreadPeerDB) List ¶
func (c *ThreadPeerDB) List() []repo.ThreadPeer
func (*ThreadPeerDB) ListById ¶
func (c *ThreadPeerDB) ListById(id string) []repo.ThreadPeer
func (*ThreadPeerDB) ListByThread ¶
func (c *ThreadPeerDB) ListByThread(threadId string) []repo.ThreadPeer
func (*ThreadPeerDB) ListUnwelcomedByThread ¶
func (c *ThreadPeerDB) ListUnwelcomedByThread(threadId string) []repo.ThreadPeer
func (*ThreadPeerDB) PrepareAndExecuteQuery ¶
PrepareAndExecuteQuery returns the resulting *sql.Rows for the executed query
func (*ThreadPeerDB) PrepareQuery ¶
PrepareQuery returns a *sql.Stmt to the wrapped DB
func (*ThreadPeerDB) WelcomeByThread ¶
func (c *ThreadPeerDB) WelcomeByThread(threadId string) error