8252dad07d
-add trending_score to search results protobuf -remove unused trending fields from search results protobuf -update build script to use grpc_tools for python |
||
---|---|---|
.. | ||
cpp | ||
go | ||
js | ||
proto | ||
python | ||
build.sh | ||
README.md |
Using LBRY types in your code
Go
package main
import pb "github.com/lbryio/types/go"
import "fmt"
func main() {
title := "Coherence"
metadata := pb.Metadata{Title:&title}
fmt.Printf("Let's watch %s on LBRY!\n", metadata.GetTitle())
}
Python
todo
Javascript
todo
Compiling types
You only need to do this if you're modifying the types themselves.
- Download the protoc binary and put it in your path. Make sure you get the one starting with
protoc
, notprotobuf
. ./build.sh