memstore

package
v0.0.0-...-923a007 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Store ...

func New

func New(users map[string]entity.UserOpts) (*Store, error)

New reads user data (login, ID, pass-hash) from given yaml-file

func (*Store) ReadUser

func (s *Store) ReadUser(login string) (*entity.UserOpts, error)

ReadUser extracts a user by login

Jump to

Keyboard shortcuts

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