Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( TOKEN = "" XDT = "XDT" S3 = "S3" ELASTICACHE = "ELASTICACHE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
	AWS_ACCESS_KEY string
	AWS_SECRET_KEY string
	AWS_REGION     string
	// contains filtered or unexported fields
}
    func New ¶
New initialises the storage module. This function is used to provide information about which service to use. If s3 is used, "bucket" is the bucket used for storage, and in the case when elasticache is used "bucket" should be the redis URL and port. Note that one must be on an AWS VPC (e.g. using EC2) to access elasticache.
func (Storage) Get ¶
Get retrieves a payload corresponding to the provided key from the storage service. An error will occur if the key is not prescent on the service.
 Click to show internal directories. 
   Click to hide internal directories.