Skip to content

Instantly share code, notes, and snippets.

View qneyrat's full-sized avatar

Quentin Neyrat qneyrat

View GitHub Profile
@qneyrat
qneyrat / main.go
Created May 15, 2018 14:37
json rpc 2.0
package main
import (
"log"
"encoding/json"
"errors"
"net/http"
)
const JSONRPCVersion = "2.0"
@qneyrat
qneyrat / prototool-example.md
Last active April 24, 2018 12:35
Prototool example

install with Go

> $ go get -u github.com/uber/prototool/cmd/prototool

gen command

Simple config file to generate grpc service

@qneyrat
qneyrat / docker-compose.yml
Created December 11, 2017 20:40
monitoring-container ressources
version: '3'
services:
app:
build:
context: .
dockerfile: ./Dockerfile
depends_on:
- db
environment:
@qneyrat
qneyrat / client.go
Last active September 11, 2017 21:59
Blog Eleven Labs : Présentation de Protobuf
package main
import (
"bufio"
"bytes"
fmt "fmt"
"log"
"net/http"
proto "github.com/golang/protobuf/proto"
@qneyrat
qneyrat / test.go
Created January 11, 2017 10:25
Centrifugo test
package main
import (
"bufio"
"encoding/json"
"github.com/centrifugal/centrifuge-go"
"github.com/centrifugal/centrifugo/libcentrifugo/auth"
"github.com/ivpusic/grpool"
"log"
"math/rand"