Cross-language definitions for standard LBRY types
Branch: master
Clone or download
Latest commit 594241d Oct 1, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cpp Add C++ protobuf generated code Oct 1, 2018
go add go, js, python Dec 14, 2017
js add go, js, python Dec 14, 2017
proto add go, js, python Dec 14, 2017
python add go, js, python Dec 14, 2017
.gitignore gitignore Dec 15, 2017
README.md gitignore Dec 15, 2017
build.sh

README.md

LBRY Types

Cross-language definitions for standard LBRY types.

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

License

MIT