Documentation ¶
Overview ¶
Package generator implements all supported generators
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶ added in v0.1.0
func Generate(k KeyGenerator, ch chan KeyGenerator)
Generate generates a key of the specified type
Types ¶
type KeyGenerator ¶ added in v0.1.0
type KeyGenerator interface { Generate(k chan KeyGenerator) String() string }
type Mod7CD ¶
Mod7CD is an 10-digit mod7 CD key
func (Mod7CD) Generate ¶
func (c Mod7CD) Generate(k chan KeyGenerator)
Generate generates a 10-digit mod7 CD key.
type Mod7ElevenCD ¶
Mod7ElevenCD is an 11-digit mod7 CD key
func (Mod7ElevenCD) Generate ¶
func (c Mod7ElevenCD) Generate(k chan KeyGenerator)
Generate generates an 11-digit mod7 CD key.
func (Mod7ElevenCD) String ¶ added in v0.1.0
func (c Mod7ElevenCD) String() string
Click to show internal directories.
Click to hide internal directories.