account

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 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 Access

type Access interface {
	Error() error
	ChangeSecret(id, current, next string)
	CreateAccount(id, secret string)
	GetAccount(id string) *Account
	GetAccounts() []Account
	VerifyAccount(id, secret string) bool
}

func NewFileAccess

func NewFileAccess(path string) Access

type Account

type Account struct {
	Id   string `json:"id"`
	Hash []byte `json:"hash"`
}

Jump to

Keyboard shortcuts

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