/kongo

Kong Api Library for Golang

Primary LanguageGoMIT LicenseMIT

Kongo

Build Status Coverage Status GoDoc Go Report Card License

Kong api library for Golang

Installation

Kongo requires Go 1.9 or later.

go get github.com/fabiorphp/kongo

If you want to get an specific version, please use the example below:

go get gopkg.in/fabiorphp/kongo.v0

Usage

package main

import (
    "github.com/fabiorphp/kongo"
)

func main() {
    kongo := kongo.New(nil, "127.0.0.1:8001")
    status, _, _ := kongo.Node.Status()
    ...
}

Documentation

Read the full documentation at https://godoc.org/github.com/fabiorphp/kongo.

Development

Requirements

Makefile

// Clean up
$ make clean

// Creates folders and download dependencies
$ make configure

//Run tests and generates html coverage file
make cover

// Download project dependencies
make depend

// Format all go files
make fmt

//Run linters
make lint

// Run tests
make test

License

This project is released under the MIT licence. See LICENSE for more details.