metadb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaDB

type MetaDB struct {
	*dbutil.Database
}

func New

func New(db *dbutil.Database, log zerolog.Logger) *MetaDB

func (*MetaDB) GetThreadByKey

func (db *MetaDB) GetThreadByKey(ctx context.Context, threadKey int64) (parentKey int64, messageID string, err error)

func (*MetaDB) GetThreadByMessage

func (db *MetaDB) GetThreadByMessage(ctx context.Context, messageID string) (threadKey int64, err error)

func (*MetaDB) PutThread

func (db *MetaDB) PutThread(ctx context.Context, parentKey, threadKey int64, messageID string) error

Jump to

Keyboard shortcuts

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