Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Reference Actions Status Telegram Telegram Russian

iproto

Import

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

package main

import (
	"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:

make deps

You can generate the code with commands:

TT_TAG=master make
TT_TAG=3.3.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:

make format
TT_TAG=master make generate
make test

A good starting point is generate.go.

About

IPROTO constants for Go language

Topics

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Used by

Contributors

Languages