tokens

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tokens

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

func New

func New() *Tokens

func NewFrom

func NewFrom(reader io.Reader) *Tokens

func NewFromFile

func NewFromFile(path string) *Tokens

func (*Tokens) AddUser

func (t *Tokens) AddUser(login string, passwod string) error

func (*Tokens) DeleteUser

func (t *Tokens) DeleteUser(login string)

func (*Tokens) GetPassword

func (t *Tokens) GetPassword(login string) (string, bool)

func (*Tokens) GetToken

func (t *Tokens) GetToken(login string) (string, error)

func (*Tokens) ValidToken

func (t *Tokens) ValidToken(token string) (bool, error)

func (*Tokens) WriteTo

func (t *Tokens) WriteTo(writer io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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