well-goknown/lnd/lnd.go

19 lines
365 B
Go
Raw Normal View History

2023-02-03 04:56:15 +00:00
package lnd
import (
2023-02-05 03:39:01 +00:00
"time"
"github.com/davecgh/go-spew/spew"
)
2023-02-03 04:56:15 +00:00
2023-02-05 03:39:01 +00:00
func Request(rKey string, request []byte, exp time.Duration) (string, error) {
//redis, err := redis.New("localhost:6379", "", redis.LndDb)
//if err != nil {
// return "", 0, errors.New("Failed to connect to redis")
//}
spew.Dump(rKey)
2023-02-05 03:39:01 +00:00
spew.Dump(exp)
spew.Dump(request)
2023-02-05 03:24:30 +00:00
return "x", nil
2023-02-03 04:56:15 +00:00
}