initial commit
This commit is contained in:
28
models/models.go
Normal file
28
models/models.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package models
|
||||
|
||||
type KeypadSize struct {
|
||||
AttrsPerKey int
|
||||
NumbOfKeys int
|
||||
}
|
||||
|
||||
func (kp *KeypadSize) TotalAttrs() int {
|
||||
return kp.AttrsPerKey * kp.NumbOfKeys
|
||||
}
|
||||
|
||||
func (kp *KeypadSize) IsDispersable() bool {
|
||||
return kp.AttrsPerKey <= kp.NumbOfKeys
|
||||
}
|
||||
|
||||
type EncipheredNKode struct {
|
||||
Code string
|
||||
Mask string
|
||||
}
|
||||
|
||||
type NKodePolicy struct {
|
||||
MaxNkodeLen int
|
||||
MinNkodeLen int
|
||||
DistinctSets int
|
||||
DistinctAttributes int
|
||||
LockOut int
|
||||
Expiration int // seconds, -1 no expiration
|
||||
}
|
||||
Reference in New Issue
Block a user