user

package
v0.0.0-...-712b8ec Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: AGPL-3.0-or-later

SPDX-License-Identifier: AGPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware() gin.HandlerFunc

func Init

func Init(router *gin.Engine, db *sql.DB) (err error)

Types

type User

type User struct {
	UserID      int64  `json:"userID"`
	Username    string `json:"username"`
	AliasName   string `json:"aliasName"`
	Permissions string `json:"permissions"`
}

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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