user

package
v0.0.0-...-8577a5a Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAllSessions

func DeleteAllSessions(r tx.Request) (interface{}, error)

func DeleteSession

func DeleteSession(r tx.Request) (interface{}, error)

func DeleteUser

func DeleteUser(r tx.Request) (interface{}, error)

func GetCurrentSession

func GetCurrentSession(r tx.Request) (interface{}, error)

func GetSession

func GetSession(r tx.Request) (interface{}, error)

func GetSessions

func GetSessions(r tx.Request) (interface{}, error)

func GetUser

func GetUser(r tx.Request) (interface{}, error)

func GetUsers

func GetUsers(r tx.Request) (interface{}, error)

func Mount

func Mount(m tx.Middlewarer) http.Handler

func PatchMe

func PatchMe(r tx.Request) (interface{}, error)

func PromoteUser

func PromoteUser(r tx.Request) (interface{}, error)

func Signin

func Signin(r tx.Request) (interface{}, error)

func Signout

func Signout(r tx.Request) (interface{}, error)

func Signup

func Signup(r tx.Request) (interface{}, error)

Types

type Authentication

type Authentication struct {
	Username string `schema:"username,required"`
	Password string `schema:"password,required"`
}

type PatchQuery

type PatchQuery struct {
	Password string `schema:"password"`
}

type Promote

type Promote struct {
	Permission smolboard.Permission `schema:"p,required"`
}

type SignupForm

type SignupForm struct {
	Authentication
	Token string `schema:"token,required"`
}

type UsersParams

type UsersParams struct {
	Query string `schema:"q"`
	Count uint   `schema:"c"`
	Page  uint   `schema:"p"`
}

Jump to

Keyboard shortcuts

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