invites

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package invites is the invitations to sign up, which an admin hands out in the invitation mode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(db bun.IDB) http.HandlerFunc

Create makes an invitation for 7 days: its token, for the sign-up, is shown once. @Summary Create an invitation @Tags invites @Produce json @Success 201 {object} createinvite.Result @Failure 401 {object} respond.Failure @Failure 403 {object} respond.Failure @Failure 404 {object} respond.Failure @Router /api/invites [post]

func Delete

func Delete(db bun.IDB) http.HandlerFunc

Delete revokes an invitation. @Summary Revoke an invitation @Tags invites @Param id path string true "Invitation id" @Success 204 @Failure 401 {object} respond.Failure @Failure 403 {object} respond.Failure @Failure 404 {object} respond.Failure @Router /api/invites/{id} [delete]

func List

func List(db bun.IDB) http.HandlerFunc

List gives the invitations still usable, of every admin, newest first. @Summary List the invitations @Tags invites @Produce json @Success 200 {array} domain.Invite @Failure 401 {object} respond.Failure @Failure 403 {object} respond.Failure @Failure 404 {object} respond.Failure @Router /api/invites [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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