store

package
v0.0.0-...-8dc6894 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storer

type Storer interface {
	ListUsers() (*Users, error)
	GetUserByID(id string) (*User, error)
	GetUserByRole(role string) (*User, error)
}

type User

type User struct {
	// UUID
	UserID string `json:"id"`
	Role   string `json:"role"`
	Email  string `json:"email"`
	Hash   string `json:"hash"`
	Salt   string `json:"salt"`
}

func NewUser

func NewUser(id, role, email, hash, salt string) *User

type Users

type Users struct {
	Users []User `json:"users"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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