Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputePrimes ¶
ComputePrimes computes primes concurrently until KeyboardInterrupt
func GetUnMarshalledPrime ¶
GetUnMarshalledPrime produces a computation from a JSON string
func RunDistributedComputation ¶
func RunDistributedComputation(c Computation) bool
RunDistributedComputation calculates the modulus of a given Computation
Types ¶
type Computation ¶
type Computation struct { Prime primes.Prime Divisor *big.Int IsValid bool TimeTaken time.Duration ComputationId *big.Int Hash uuid.UUID }
func GetComputationsToPerform ¶
func GetComputationsToPerform(prime primes.Prime) []Computation
GetComputationsToPerform passes all computations needed to be performed to a channel
Click to show internal directories.
Click to hide internal directories.