Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 15th, 2018 74 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. package rezpower
  2.  
  3. import (
  4.     "switch/storage"
  5. )
  6.  
  7. func getSurrogateIdForVendorRateId(rateId string) (string, error) {
  8.     hashId := NewHashWithData()
  9.     id , err := hashId.GenerateHash()
  10.     if err != nil {
  11.         return "", err
  12.     }
  13.  
  14.     go func() {
  15.         _ = storage.S.SaveSurrogateId(id, rateId)
  16.     }()
  17.  
  18.     return id, nil
  19. }
  20.  
  21. func getVendorRateIdBySurrogateId(surrogateId string) (string, error) {
  22.     id, err :=  storage.S.RestoreSurrogateId(surrogateId)
  23.  
  24.     if err != nil {
  25.         return "", err
  26.     }
  27.  
  28.     return id, nil
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top