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