Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 569 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 569 Bytes

Go Tarantool Client

This is a simple client to query the online Tarantool avro validation endpoint.

Usage

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)
	}
}