matrixjobs

package
v0.0.0-...-16966e3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InviteAllMembersArgs

type InviteAllMembersArgs struct {
	Room   id.RoomID
	Reason string
}

func (InviteAllMembersArgs) Kind

type InviteAllMembersWorker

type InviteAllMembersWorker struct {
	river.WorkerDefaults[InviteAllMembersArgs]
}

func (*InviteAllMembersWorker) Work

type InviteUserArgs

type InviteUserArgs struct {
	User   id.UserID
	Room   id.RoomID
	Reason string
}

func (InviteUserArgs) Kind

func (InviteUserArgs) Kind() string

type InviteUserToSpaceArgs

type InviteUserToSpaceArgs struct {
	User db.User
}

func (InviteUserToSpaceArgs) Kind

type InviteUserToSpaceWorker

type InviteUserToSpaceWorker struct {
	river.WorkerDefaults[InviteUserToSpaceArgs]
}

func (*InviteUserToSpaceWorker) Work

type InviteUserWorker

type InviteUserWorker struct {
	river.WorkerDefaults[InviteUserArgs]
}

func (*InviteUserWorker) Work

type JoinRoomArgs

type JoinRoomArgs struct {
	Room id.RoomID
}

func (JoinRoomArgs) Kind

func (JoinRoomArgs) Kind() string

type JoinRoomWorker

type JoinRoomWorker struct {
	river.WorkerDefaults[JoinRoomArgs]
}

func (*JoinRoomWorker) Work

type KickLobbyLurkersArgs

type KickLobbyLurkersArgs struct {
	Room   id.RoomID
	Reason string
}

func (KickLobbyLurkersArgs) Kind

type KickLobbyLurkersWorker

type KickLobbyLurkersWorker struct {
	river.WorkerDefaults[KickLobbyLurkersArgs]
}

func (*KickLobbyLurkersWorker) Work

type KickUserArgs

type KickUserArgs struct {
	User   id.UserID
	Room   id.RoomID
	Reason string
}

func (KickUserArgs) Kind

func (KickUserArgs) Kind() string

type KickUserWorker

type KickUserWorker struct {
	river.WorkerDefaults[KickUserArgs]
}

func (KickUserWorker) Work

type ProcessTrustReactionArgs

type ProcessTrustReactionArgs struct {
	Room          id.RoomID
	EventID       id.EventID
	ReactorUserID id.UserID
	Reaction      string
}

ProcessTrustReactionArgs represents a job to process a member reaction in the lobby room.

When someone reacts to a message with 👾, we should check: - The reaction is in the lobby room - The reactor has sufficient power level (>= default + 2) - The original message sender has power level default.

If all conditions are met, the target user gets promoted to default + 1, which prevents them from being kicked by the lobby lurker cleaner.

func (ProcessTrustReactionArgs) Kind

type ProcessTrustReactionWorker

type ProcessTrustReactionWorker struct {
	river.WorkerDefaults[ProcessTrustReactionArgs]
}

func (*ProcessTrustReactionWorker) Work

type PromoteUserPowerLevelArgs

type PromoteUserPowerLevelArgs struct {
	User     id.UserID
	Room     id.RoomID
	NewLevel int
	Reason   string
}

PromoteUserPowerLevelArgs represents a job to promote a user's power level in a Matrix room.

func (PromoteUserPowerLevelArgs) Kind

type PromoteUserPowerLevelWorker

type PromoteUserPowerLevelWorker struct {
	river.WorkerDefaults[PromoteUserPowerLevelArgs]
}

func (*PromoteUserPowerLevelWorker) Work

type ScanNewUserArgs

type ScanNewUserArgs struct {
	User          id.UserID
	KickFromLobby bool
}

func (ScanNewUserArgs) Kind

func (ScanNewUserArgs) Kind() string

type ScanNewUserWorker

type ScanNewUserWorker struct {
	river.WorkerDefaults[ScanNewUserArgs]
}

func (*ScanNewUserWorker) Work

Jump to

Keyboard shortcuts

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