Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EncoderModulus = uint64(65537) MaxN = uint64(9999999) Base32EncoderID, _ = strconv.ParseUint(`{{.Encoders.Base32EncoderID}}`, 10, 64) Base58EncoderID, _ = strconv.ParseUint(`.Encoders.Base58EncoderID}}`, 10, 64) Base64EncoderID, _ = strconv.ParseUint(`{{.Encoders.Base64EncoderID}}`, 10, 64) EnglishEncoderID, _ = strconv.ParseUint(`{{.Encoders.EnglishEncoderID}}`, 10, 64) GzipEncoderID, _ = strconv.ParseUint(`{{.Encoders.GzipEncoderID}}`, 10, 64) HexEncoderID, _ = strconv.ParseUint(`{{.Encoders.HexEncoderID}}`, 10, 64) PNGEncoderID, _ = strconv.ParseUint(`{{.Encoders.PNGEncoderID}}`, 10, 64) )
View Source
var ( Base64 = Base64Encoder{} Base58 = Base58Encoder{} Base32 = Base32Encoder{} Hex = HexEncoder{} English = EnglishEncoder{} Gzip = GzipEncoder{} PNG = PNGEncoder{} // {{if .Config.Debug}} Nop = NoEncoder{} )
View Source
var EncoderMap = map[uint64]Encoder{}
EncoderMap - Maps EncoderIDs to Encoders
View Source
var NativeEncoderMap = map[uint64]Encoder{ Base64EncoderID: Base64, HexEncoderID: Hex, EnglishEncoderID: English, GzipEncoderID: Gzip, PNGEncoderID: PNG, 0: NoEncoder{}, }
EncoderMap - Maps EncoderIDs to Encoders
Functions ¶
Types ¶
type Base32Encoder ¶
type Base32Encoder struct{}
Base32Encoder Encoder
type Base58Encoder ¶
type Base58Encoder struct{}
Base58 Encoder
type Base64Encoder ¶
type Base64Encoder struct{}
Base64Encoder Encoder
type Encoder ¶
Encoder - Can lossless-ly encode arbitrary binary data
func EncoderFromNonce ¶
EncoderFromNonce - Convert a nonce into an encoder
func RandomEncoder ¶
RandomEncoder - Get a random nonce identifier and a matching encoder
type EnglishEncoder ¶
type EnglishEncoder struct{}
English Encoder - An ASCIIEncoder for binary to english text
type GzipEncoder ¶
type GzipEncoder struct{}
Gzip - Gzip compression encoder
type HexEncoder ¶
type HexEncoder struct{}
Hex Encoder
type NoEncoder ¶
type NoEncoder struct{}
NoEncoder - A NOP encoder
type PNGEncoder ¶
type PNGEncoder struct{}
PNGEncoder - PNG image object
Source Files ¶
Click to show internal directories.
Click to hide internal directories.