Giter Site home page Giter Site logo

openrtb-txtx's Introduction

openrtb-txtx

"protobuf text format" <=> json converter for Google OpenRTB + AdX Ext

Install

make install

Usage

openrtb-txtx [--in ...] [--out ...] [message name]

  --in string json or text
  --out string json or text or dump
  
  message name: default is "BidRequest"

Examples

json to "protobuf text format" (message type is BidRequest (default))

$ cat req.json | openrtb-txtx req

id:  "xxxxxxxxxxxxxxxxxxxxxx"
imp:  {
  id:  "1"
  banner:  {
    w: 300
    h: 250
    format:  {
      w: 300
      h: 250
    }

"protobuf text format" to json

$ cat req.bin | protoc -I pb/ --decode_raw | openrtb-txtx

{
  "id": "xxxxxxxxxxxxxxxxxxxxxx",
  "imp": [
    {
      "id": "1",
      "banner": {
        "w": 300,
        "h": 250,
        "format": [
          {
            "w": 300,
            "h": 250
          },

openrtb-txtx's People

Contributors

tomill avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

openrtb-txtx's Issues

google.golang.org/protobuf

切り替える

main.go:10:2: SA1019: package github.com/golang/protobuf/jsonpb is deprecated: Use the "google.golang.org/protobuf/encoding/protojson" package instead.  (staticcheck)
	"github.com/golang/protobuf/jsonpb"
	^
main.go:11:2: SA1019: package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead.  (staticcheck)
	"github.com/golang/protobuf/proto"
	^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.