Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #29 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Improved readme, Makefile and TravisCI config
  • Loading branch information
andyone authored Jun 9, 2018
2 parents 265340b + ea1c522 commit 3a26040
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 48 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ sudo: false
language: go

go:
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- 1.10.x
- tip

branches:
Expand Down
File renamed without changes.
26 changes: 17 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
########################################################################################
################################################################################

# This Makefile generated by GoMakeGen 0.6.0 using next command:
# This Makefile generated by GoMakeGen 0.8.0 using next command:
# gomakegen --metalinter .

########################################################################################
################################################################################

.PHONY = fmt deps metalinter
.DEFAULT_GOAL := help
.PHONY = fmt deps metalinter help

########################################################################################
################################################################################

deps:
deps: ## Download dependencies
git config --global http.https://pkg.re.followRedirects true
go get -d -v pkg.re/essentialkaos/ek.v9
go get -d -v pkg.re/essentialkaos/librato.v7

fmt:
fmt: ## Format source code with gofmt
find . -name "*.go" -exec gofmt -s -w {} \;

metalinter:
metalinter: ## Install and run gometalinter
test -s $(GOPATH)/bin/gometalinter || (go get -u github.com/alecthomas/gometalinter ; $(GOPATH)/bin/gometalinter --install)
$(GOPATH)/bin/gometalinter --deadline 30s

########################################################################################
help: ## Show this info
@echo -e '\nSupported targets:\n'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-12s\033[0m %s\n", $$1, $$2}'
@echo -e ''

################################################################################
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<p align="center"><a href="#readme"><img src="https://gh.kaos.st/go-librato.svg"/></a></p>

<p align="center"><a href="#installation">Installation</a> • <a href="#examples">Examples</a> • <a href="#license">License</a></p>

<p align="center">
<a href="https://godoc.org/pkg.re/essentialkaos/librato.v7"><img src="https://godoc.org/pkg.re/essentialkaos/librato.v7?status.svg"></a>
<a href="https://travis-ci.org/essentialkaos/librato"><img src="https://travis-ci.org/essentialkaos/librato.svg"></a>
<a href="https://goreportcard.com/report/github.com/essentialkaos/librato"><img src="https://goreportcard.com/badge/github.com/essentialkaos/librato"></a>
<a href="https://codebeat.co/projects/github-com-essentialkaos-librato"><img alt="codebeat badge" src="https://codebeat.co/badges/f82e704d-67a7-4c6f-9e5d-1acf058c937b" /></a>
<a href="https://essentialkaos.com/ekol"><img src="https://gh.kaos.st/ekol.svg"></a>
</p>

Package for working with [Librato Metrics](https://www.librato.com) API from Go code.

### Installation

Before the initial install allows git to use redirects for [pkg.re](https://github.com/essentialkaos/pkgre) service (_reason why you should do this described [here](https://github.com/essentialkaos/pkgre#git-support)_):

```
git config --global http.https://pkg.re.followRedirects true
```

Make sure you have a working Go 1.8+ workspace (_[instructions](https://golang.org/doc/install)_), then

```
go get pkg.re/essentialkaos/librato.v7
```

For update to latest stable release, do:

```
go get -u pkg.re/essentialkaos/librato.v7
```

### Examples

* [Basic Usage](examples/basic_example.go)
* [Metrics Collector](examples/collector_example.go)
* [Async Sending](examples/async_example.go)
* [Annotations](examples/annotations_example.go)

### License

[EKOL](https://essentialkaos.com/ekol)

<p align="center"><a href="https://essentialkaos.com"><img src="https://gh.kaos.st/ekgh.svg"/></a></p>
2 changes: 1 addition & 1 deletion librato.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package librato

// ////////////////////////////////////////////////////////////////////////////////// //
// //
// Copyright (c) 2009-2017 ESSENTIAL KAOS //
// Copyright (c) 2009-2018 ESSENTIAL KAOS //
// Essential Kaos Open Source License <https://essentialkaos.com/ekol> //
// //
// ////////////////////////////////////////////////////////////////////////////////// //
Expand Down
36 changes: 0 additions & 36 deletions readme.md

This file was deleted.

0 comments on commit 3a26040

Please sign in to comment.