Cross-language definitions for standard LBRY types
Find a file
2019-01-22 21:38:10 -03:00
cpp bump build.sh 2019-01-22 21:38:10 -03:00
go bump build.sh 2019-01-22 21:38:10 -03:00
js bump build.sh 2019-01-22 21:38:10 -03:00
proto adds releaseTime 2019-01-22 21:36:02 -03:00
python bump build.sh 2019-01-22 21:38:10 -03:00
.gitignore gitignore 2017-12-15 10:23:37 -05:00
build.sh mkdir 2018-10-01 14:02:06 -04:00
README.md gitignore 2017-12-15 10:23:37 -05:00

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