Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListAlgorithms ¶
func ListAlgorithms() []string
func RegisterAlgorithm ¶
func RegisterAlgorithm(name string, factory func() SumNumberAlgorithm)
Types ¶
type SumNumberAlgorithm ¶
type SumNumberAlgorithm interface { Sum256Number(data []byte) int64 Sum256NumberCmp(data []byte, work int64) bool }
func NewAlgorithmInstance ¶
func NewAlgorithmInstance(name string) SumNumberAlgorithm
Click to show internal directories.
Click to hide internal directories.