user

package
v0.0.0-...-95a8d3a Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Info

func Info() string

Returns info about the application data storage

func Init

func Init(secret string) (string, error)

func IsInit

func IsInit() bool

Wrapper function for auth.IsInit

func Reset

func Reset(secret string) error

func ResetSecret

func ResetSecret(secret, newSecret string) error

Types

type User

type User struct {
	App         string `json:"app"`
	UserId      string `json:"userid"`
	Email       string `json:"email"`
	Password    string `json:"password"`
	Description string `json:"description"`
	ModifiedAt  string `json:"modifiedAt"`
}

func Add

func Add(user User, secret string) ([]User, error)

func Delete

func Delete(user User, secret string, force bool) ([]User, error)

func Get

func Get(user User, secret string) ([]User, error)

Returns user data matching to user

func (User) Print

func (u User) Print() string

func (User) PrintLong

func (u User) PrintLong() string

Jump to

Keyboard shortcuts

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