Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorMalformedStamp is returned by the Parse functions when the stamp // provided that doesn't match the format necessary for parsing. ErrorMalformedStamp = errors.New("aph: provided stamp was malformed") // ErrorSplitAtomic is returned by the Parse functions when the stamp // provided has a fractional value for an atomic type (KB or ms). ErrorSplitAtomic = errors.New("aph: cannot use fractional value with type") )
Functions ¶
func ParseMemory ¶
ParseMemory will take a string in the form of one of XKB, XMB, or XGB where X is a number. It will return the corresponding number of KB that the stamp represents or an error if the string is malformed.
Types ¶
type ResultSet ¶
type ResultSet struct { Time int Threads int Memory int Length int Key string Hash string Characters int Duration time.Duration Salt string }
ResultSet is a collection of information about the generation of a hash, it includes details such as how long generation took and what the overall size of the hash is.
Click to show internal directories.
Click to hide internal directories.