Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tarantool/go-iproto
IPROTO constants for Go language
https://github.com/tarantool/go-iproto
go iproto tarantool
Last synced: about 2 months ago
JSON representation
IPROTO constants for Go language
- Host: GitHub
- URL: https://github.com/tarantool/go-iproto
- Owner: tarantool
- License: other
- Created: 2023-04-10T10:52:57.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-27T18:39:02.000Z (about 1 year ago)
- Last Synced: 2023-12-28T18:01:29.266Z (about 1 year ago)
- Topics: go, iproto, tarantool
- Language: Shell
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![Go Reference][godoc-badge]][godoc-url]
[![Actions Status][actions-badge]][actions-url]
[![Telegram][telegram-badge]][telegram-url]
[![Telegram Russian][telegram-badge]][telegramru-url]# iproto
## Import
```go
import "github.com/tarantool/go-iproto"
```## Overview
Package `iproto` contains IPROTO constants.
The code generated from Tarantool code. Code generation is only supported for
an actual commit/release. We do not have a goal to support all versions of
Tarantool with a code generator.## Example
```go
package mainimport (
"fmt""github.com/tarantool/go-iproto"
)func main() {
fmt.Printf("%s=%d\n", iproto.ER_READONLY, iproto.ER_READONLY)
fmt.Printf("%s=%d\n", iproto.IPROTO_FEATURE_WATCHERS, iproto.IPROTO_FEATURE_WATCHERS)
fmt.Printf("%s=%d\n", iproto.IPROTO_FLAG_COMMIT, iproto.IPROTO_FLAG_COMMIT)
fmt.Printf("%s=%d\n", iproto.IPROTO_SYNC, iproto.IPROTO_SYNC)
fmt.Printf("%s=%d\n", iproto.IPROTO_SELECT, iproto.IPROTO_SELECT)
}
```## Development
You need to install `git` and `go1.13+` first. After that, you need to install
additional dependencies into `$GOBIN`:```bash
make deps
```You can generate the code with commands:
```bash
TT_TAG=master make
TT_TAG=3.0.0 make
TT_TAG=master TT_REPO=https://github.com/my/tarantool.git make
```You need to specify a target branch/tag with the environment variable `TT_TAG`
and you could to specify a repository with the `TT_REPO`.Makefile has additional targets that can be useful:
```bash
make format
TT_TAG=master make generate
make test
```A good starting point is [generate.go](./generate.go).
[actions-badge]: https://github.com/tarantool/go-iproto/actions/workflows/test.yml/badge.svg
[actions-url]: https://github.com/tarantool/go-iproto/actions/workflows/test.yml
[godoc-badge]: https://pkg.go.dev/badge/github.com/tarantool/go-iproto.svg
[godoc-url]: https://pkg.go.dev/github.com/tarantool/go-iproto
[telegram-badge]: https://img.shields.io/badge/Telegram-join%20chat-blue.svg
[telegram-url]: http://telegram.me/tarantool
[telegramru-url]: http://telegram.me/tarantoolru