users

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Minimal

type Minimal struct {
	ID         string `json:"id,omitempty" example:"9bf3e317-77a0-4643-be11-5eacd4c630ce"` // UUID
	Name       string `json:"name,omitempty" example:"Fabio Kälin"`                        // Username
	Email      string `json:"email,omitempty" example:"fabio.kaelin@fabkli.ch"`            // Email
	Privileges int    `json:"privileges,omitempty" example:"13"`                           // Privileges

} // @name UserMinimal

Minimal is a struct for a user with minimal information

func GetUserFromContext

func GetUserFromContext(c *gin.Context) (Minimal, ferror.FError)

GetUserFromContext returns the current user from the context

Jump to

Keyboard shortcuts

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