store

package
v0.0.0-...-b2e696f Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB(database *sqlx.DB)

func IsNSFWEnabled

func IsNSFWEnabled(jid string) bool

func MigrateAFKIdentities

func MigrateAFKIdentities(ctx context.Context) error

func SetAFK

func SetAFK(ctx context.Context, jid string, reason string, aliases ...string) error

func ToggleNSFW

func ToggleNSFW(jid string) (bool, error)

Types

type AFKState

type AFKState struct {
	JID    string    `db:"jid"`
	Reason string    `db:"reason"`
	Time   time.Time `db:"created_at"`
}

func ClearAFK

func ClearAFK(ctx context.Context, jids ...string) (AFKState, bool, error)

func GetAFK

func GetAFK(ctx context.Context, jids ...string) (AFKState, bool, error)

Jump to

Keyboard shortcuts

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