store

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const StorageKey = "twoFactor_storage"

Variables

This section is empty.

Functions

func Read

func Read(ctx app.Context, s *Storage) (parameters []*otpm.Payload_OtpParameters)

func Write

func Write(ctx app.Context, storage *Storage) (parameters []*otpm.Payload_OtpParameters)

Types

type Storage

type Storage struct {
	Payloads  []*otpm.Payload               `json:"payloads,omitempty"`
	OtpParams []*otpm.Payload_OtpParameters `json:"parameters,omitempty"`
}

func (*Storage) AddTotp added in v1.0.1

func (s *Storage) AddTotp(text string) error

func (*Storage) Delete added in v1.0.7

func (s *Storage) Delete(ctx app.Context, start int, end int)

func (*Storage) Paste added in v1.0.1

func (s *Storage) Paste(evt *clipboard.PasteData) error

func (*Storage) Switch added in v1.0.7

func (s *Storage) Switch(ctx app.Context, start int, end int)

Jump to

Keyboard shortcuts

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