Skip to content

MediaMath/sr

Repository files navigation

sr · CircleCI Status GitHub license PRs Welcome

sr - simple library and CLI wrapper around confluent schema registry api

$ export SCHEMA_REGISTRY_URL=http://example.com
$ sr ls
["foo"]
$ sr add bar ~/Desktop/mt_event.json
{id:"998"}
$ sr ls
["foo", "bar"]
$ sr ls bar
[1]
$ sr ls bar 1
...schema that was added and version and name...
func main() {
   id, err := sr.Register(http.DefaultClient, "http://example.com", sr.Subject("foo"), sr.Schema(`{"type":"long"}`))
}