Documentation ¶
Overview ¶
Package jobpacket provides allows implementing simple job queue.
Index ¶
- type JobPacket
- func MakeG1MulPacket(outCh chan<- interface{}, g1 *Curve.ECP, x *Curve.BIG) *JobPacket
- func MakeG2MulPacket(outCh chan<- interface{}, g2 *Curve.ECP2, x *Curve.BIG) *JobPacket
- func MakePairingPacket(outCh chan<- interface{}, g1 *Curve.ECP, g2 *Curve.ECP2) *JobPacket
- func New(outCh chan<- interface{}, op func() (interface{}, error)) *JobPacket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobPacket ¶
type JobPacket struct { OutCh chan<- interface{} Op func() (interface{}, error) }
JobPacket encapsulates the data required to perform given action concurrently, i.e. the actual operation and a channel to write the result to.
func MakeG1MulPacket ¶
MakeG1MulPacket creates a G1Mul job packet to be read by jobworkers.
func MakeG2MulPacket ¶
MakeG2MulPacket creates a G2mul job packet to be read by jobworkers.
func MakePairingPacket ¶
MakePairingPacket creates a pairing job packet to be read by jobworkers.
Click to show internal directories.
Click to hide internal directories.