2017-08-16 23:34:53 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2017-08-17 17:46:51 +02:00
|
|
|
"math/rand"
|
|
|
|
"time"
|
2017-09-12 18:04:45 +02:00
|
|
|
|
|
|
|
"github.com/lbryio/lbry.go/jsonrpc"
|
|
|
|
|
|
|
|
"github.com/davecgh/go-spew/spew"
|
|
|
|
log "github.com/sirupsen/logrus"
|
2017-08-16 23:34:53 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2017-08-17 17:46:51 +02:00
|
|
|
rand.Seed(time.Now().UnixNano())
|
2017-09-12 18:04:45 +02:00
|
|
|
log.Println("Starting...")
|
2017-08-17 17:46:51 +02:00
|
|
|
|
2017-09-12 18:04:45 +02:00
|
|
|
conn := jsonrpc.NewClient("")
|
2017-08-16 23:34:53 +02:00
|
|
|
|
2017-09-12 22:38:18 +02:00
|
|
|
response, err := conn.Resolve("one")
|
2017-09-12 18:04:45 +02:00
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
2017-08-16 23:34:53 +02:00
|
|
|
}
|
2017-09-12 18:04:45 +02:00
|
|
|
spew.Dump(response)
|
2017-08-16 23:34:53 +02:00
|
|
|
}
|