Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AF = ArbFacts{Facts: make(map[string][]byte)}
AF is the arbritary facts map
Functions ¶
func ClearExpiredArbKeys ¶
func ClearExpiredArbKeys()
ClearExpiredArbKeys removes all the expired arb keys
func CreateArbKey ¶
CreateArbKey creates a new arbritary key
func DecodeArbKey ¶
DecodeArbKey decodes the arbitrary key
func EncodePayload ¶
EncodePayload encodes the arbitrary payload using gob
func RunClearExpiredArbKeys ¶
func RunClearExpiredArbKeys()
RunClearExpiredArbKeys sets the 'ArbFacts' map
Types ¶
type ArbData ¶
type ArbData struct { ArbKey string `json:"arb_key"` // The encrypted arbritary data as key SecretKey string `json:"secret_key"` // The secret key to decrypt the arbritary data IV []byte `json:"iv"` // The initialization vector to decrypt the arbritary data ExpiresIn int64 `json:"expires_in"` // Unix timestamp, auto-set to 30 minutes }
ArbData is the arbritary data model to be stored in the memory
func DecodePayload ¶
DecodePayload extracts the arbitrary payload
Click to show internal directories.
Click to hide internal directories.