types/v2
2019-04-15 14:48:12 -04:00
..
cpp built libraries 2019-03-31 09:01:39 -04:00
go built libraries with matching versions. Fixed compile error in go. 2019-04-04 20:57:24 -04:00
js built libraries 2019-03-31 09:01:39 -04:00
proto initial import of support proto 2019-04-15 14:48:12 -04:00
python built libraries 2019-03-31 09:01:39 -04:00
build.sh new proto3 definitions 2019-02-27 12:03:57 -05:00
README.md new proto3 definitions 2019-02-27 12:03:57 -05:00

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, not protobuf.
  • ./build.sh