Categorygithub.com/gramework/common
modulepackage
0.0.0-20181108101245-aa52af0e75ab
Repository: https://github.com/gramework/common.git
Documentation: pkg.go.dev

# README

The Common package

This package provides common web-related shortcuts, solutions and algorithms.

Useful links

NameLink/Badge
DocsGoDoc
Our JiraJira
We have #gramework channel in the Gophers Slackhttps://gophers.slack.com
Our Telegram chat@gramework
Our Discord Serverhttps://discord.gg/HkW8DsD

# Packages

No description provided by the author
No description provided by the author

# Functions

CalcMTA calculates Moving Time Average samplesCount should not count the nextSample.
GenerateKey generates a private key using random source rand.
NewTOTP initializes TOTPState for a user.

# Constants

TOTPLengthLong is the strongest length, but it will *NOT* work with Google Authenticator.
TOTPLengthShort is the default TOTP password length.

# Variables

No description provided by the author

# Structs

MTAState holds all required data for Moving Time Average.
TOTPState handles database/sql interface implementation, recovery password generation and validation.