account

package
v0.0.0-...-a44c3a2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID    string
	Token string
}

User defines a user within the identity server.

func New

func New(id string) *User

New creates a new User object.

func (*User) GenerateToken

func (u *User) GenerateToken() error

GenerateToken creates a new (access) Token for a User.

func (User) Key

func (u User) Key() string

Key implements the Keyer interface so that a User can be stored.

Jump to

Keyboard shortcuts

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