userstore

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileUserStore

type FileUserStore struct {
	FilePath string
}

func (*FileUserStore) Load

func (f *FileUserStore) Load(user *msp.UserData) error

func (*FileUserStore) LoadAll

func (f *FileUserStore) LoadAll(appCode string) []*msp.UserData

func (*FileUserStore) Store

func (f *FileUserStore) Store(user *msp.UserData) error

type UserStore

type UserStore interface {
	Load(user *msp.UserData) error
	LoadAll(appCode string) []*msp.UserData
	Store(user *msp.UserData) error
}

func NewUserStore

func NewUserStore(path string) UserStore

Jump to

Keyboard shortcuts

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