backend

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateUser(id string, user *UserData) error
	UpdateUser(id string, update func(user *UserData) error) error
	DeleteUser(id string) error
}

Client is the interface for all backends clients

type UserData

type UserData struct {
	PasswordHash string           `json:"password"`
	ExtraClaims  auth.ExtraClaims `json:"claims"`
}

UserData is a simple user struct with paswordhash and claims

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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