Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAlgo = "sha1"
View Source
const DefaultCounter = 0
View Source
const DefaultDigits = 6
View Source
const DefaultPeriod = 30
View Source
const DefaultType = "totp"
Variables ¶
View Source
var ZAuthJson string = filepath.Join(ZAuthJsonDir, "zauth.json")
View Source
var ZAuthJsonDir string = filepath.Join(homeDir(), ".zauth")
Functions ¶
This section is empty.
Types ¶
type ZAuth ¶
type ZAuth struct { Secret string `json:"secret"` Label string `json:"label"` Issuer string `json:"issuer"` Digits int `json:"digits"` Algorithm string `json:"algorithm"` Counter int64 `json:"counter"` Period int64 `json:"period"` Type string `json:"type"` Misc map[string]interface{} `json:"misc"` // to store all other nodes (that are not part of ZAuth at time of import) }
Click to show internal directories.
Click to hide internal directories.