ntdb

package
v0.0.0-...-87488ff Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 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 NTDatabase

type NTDatabase[
	G model.GroupMessageTables,
] sql.Sqlite

func NewNTDatabase

func NewNTDatabase[G model.GroupMessageTables](dbpath string, cachettl time.Duration) (ntdb NTDatabase[G], err error)

func (*NTDatabase[G]) Close

func (ntdb *NTDatabase[G]) Close() error

func (*NTDatabase[G]) GetAllGroupIDs

func (ntdb *NTDatabase[G]) GetAllGroupIDs() (x []int64, err error)

func (*NTDatabase[G]) GetGroupUserInfoByUserID

func (ntdb *NTDatabase[G]) GetGroupUserInfoByUserID(userID string) (*UserInfo, error)

func (*NTDatabase[G]) RangeMessages

func (ntdb *NTDatabase[G]) RangeMessages(gid int64, fn func(*G) error) error

type UserInfo

type UserInfo struct {
	Uin      int64
	UserID   string
	Nickname string
}

Jump to

Keyboard shortcuts

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