Documentation
¶
Index ¶
Constants ¶
View Source
const CreateUserJobKind = "invites.CreateUser"
Variables ¶
View Source
var ErrNoAvatar = errors.New("user has no avatar")
ErrNoAvatar is returned when a user has no avatar set.
Functions ¶
func ProxiedUserAvatar ¶
ProxiedUserAvatar starts the download of the user's avatar using the current "canonical" way, and if there's none, then it does anything at all. This ensures that whatever authentication is needed is done by the server itself and the image is proxied back.
Of course, we don't have a canonical way yet, so this just grabs your Matrix avatar by abusing matrix.devhack.net.
Errors returned here are also logged, so it's acceptable to ignore them.
Types ¶
type CreateUserArgs ¶
func (CreateUserArgs) Kind ¶
func (CreateUserArgs) Kind() string
type CreateUserOutput ¶
type CreateUserWorker ¶
type CreateUserWorker struct { river.WorkerDefaults[CreateUserArgs] }
func (*CreateUserWorker) Work ¶
func (u *CreateUserWorker) Work(ctx context.Context, job *river.Job[CreateUserArgs]) error
type PurgeExpiredCodesArgs ¶
type PurgeExpiredCodesArgs struct{}
func (PurgeExpiredCodesArgs) Kind ¶
func (PurgeExpiredCodesArgs) Kind() string
type PurgeExpiredCodesWorker ¶
type PurgeExpiredCodesWorker struct { river.WorkerDefaults[PurgeExpiredCodesArgs] }
func (*PurgeExpiredCodesWorker) Work ¶
func (u *PurgeExpiredCodesWorker) Work(ctx context.Context, job *river.Job[PurgeExpiredCodesArgs]) error
Click to show internal directories.
Click to hide internal directories.