Documentation
¶
Index ¶
Constants ¶
View Source
const ( ClientName = "spa" ProductName = "Secure password assistant" )
Variables ¶
View Source
var ( ClientVersion = "0.0.0" ClientOS = "unknown" )
Functions ¶
func NewUsageError ¶
func NewUsageErrorf ¶
Types ¶
type Configuration ¶
type Configuration struct { BaseDir string // Server ServerConfig Domain string User string Secret SecretDigest Salt SaltDigest Pin int Pwd PwdConfig Question QuestionConfig Count int }
type QuestionConfig ¶
type QuestionConfig struct {
Question string `json:"-"`
}
type SaltDigest ¶
type SecretDigest ¶
type ServerConfig ¶
type ServerConfig struct {
Port int
}
type UsageError ¶
type UsageError struct {
// contains filtered or unexported fields
}
UsageError represents incorrect usage.
0 -- success 1 -- general failure - any standard golang error 2 -- usage error defined here
func (*UsageError) Error ¶
func (r *UsageError) Error() string
Click to show internal directories.
Click to hide internal directories.