Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rikonor/go-tarantool-client
- Owner: rikonor
- License: mit
- Created: 2017-01-26T04:18:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-10T21:01:22.000Z (over 7 years ago)
- Last Synced: 2024-06-20T14:25:01.594Z (7 months ago)
- Topics: avro, schema, tarantool, validation
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 mainimport (
"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)
}
}
```