Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rikonor/go-tarantool-client

Go client for Tarantool Avro validation
https://github.com/rikonor/go-tarantool-client

avro schema tarantool validation

Last synced: about 2 months ago
JSON representation

Go client for Tarantool Avro validation

Awesome Lists containing this project

README

        

Go Tarantool Client
---

This is a simple client to query the online [Tarantool](http://sh6.tarantool.org/) avro validation endpoint.

#### Usage

```go
package main

import (
"log"

tarantool "github.com/rikonor/go-tarantool-client"
)

func main() {
schema := `{
"type": "record",
"name": "User",
"fields": [
{"name": "username", "type": "array"},
{"name": "phone", "type": "long"},
{"name": "age", "type": "int"}
]
}`

if err := tarantool.Validate(schema); err != nil {
log.Fatalf("Schema did not pass validation: %s", err)
}
}
```