sqlitestorage

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = module.Module{
	{Constructor: newService},
}

Module storage constructor

Functions

func Defaults

func Defaults(ctx *cli.Context, v *viper.Viper) error

Types

type Service

type Service struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Service) DecryptOTP

func (s *Service) DecryptOTP(publicID, token string) (*common.OTP, error)

DecryptOTP Decrypt OTP using stored private AES for specified public identifier

func (*Service) GetKey

func (s *Service) GetKey(publicId string) (*key, error)

func (*Service) Name

func (s *Service) Name() string

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

func (*Service) Stop

func (s *Service) Stop(ctx context.Context)

func (*Service) StoreKey

func (s *Service) StoreKey(k *key) error

Jump to

Keyboard shortcuts

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