types/v2
2022-02-15 16:02:46 -05:00
..
cpp Rebuild type bindings for updates since last build. 2020-10-18 23:24:47 -04:00
go Rebuild type bindings for updates since last build. 2020-10-18 23:24:47 -04:00
js Rebuild type bindings for updates since last build. 2020-10-18 23:24:47 -04:00
json Add wallet.json 2022-02-15 16:02:46 -05:00
proto Edit still oneof 2021-06-02 14:05:05 -03:00
python Rebuild type bindings for updates since last build. 2020-10-18 23:24:47 -04:00
build.sh remove omitemptys from generated golang code 2019-12-28 16:44:37 -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