moderatorservice

package
v0.2.36 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanAccessModeration

func CanAccessModeration(userID uint64) bool

func CanModerateAnyCategory

func CanModerateAnyCategory(userID uint64, categoryIDs []uint64) bool

func Invalidate

func Invalidate()

func IsAdmin

func IsAdmin(userID uint64) bool

func IsModerator

func IsModerator(userID uint64) bool

func ScopeForUser

func ScopeForUser(userID uint64) (bool, []uint64)

Types

type Grant

type Grant struct {
	UserID    uint64
	ScopeType string
	ScopeID   uint64
}

type Snapshot

type Snapshot struct {
	Grants    []Grant
	ExpiresAt time.Time
}

Jump to

Keyboard shortcuts

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