migrate from genofire to sum7
This commit is contained in:
parent
e0cdf1a139
commit
beabb411a7
14
README.md
14
README.md
|
@ -1,10 +1,10 @@
|
||||||
# hook2xmpp
|
# hook2xmpp
|
||||||
|
|
||||||
|
|
||||||
[](https://dev.sum7.eu/genofire/hook2xmpp/pipelines)
|
[](https://dev.sum7.eu/genofire/hook2xmpp/pipelines)
|
||||||
[](https://dev.sum7.eu/genofire/hook2xmpp/pipelines)
|
[](https://dev.sum7.eu/genofire/hook2xmpp/pipelines)
|
||||||
[](https://goreportcard.com/report/dev.sum7.eu/genofire/hook2xmpp)
|
[](https://goreportcard.com/report/dev.sum7.eu/genofire/hook2xmpp)
|
||||||
[](https://godoc.org/dev.sum7.eu/genofire/hook2xmpp)
|
[](https://godoc.org/dev.sum7.eu/genofire/hook2xmpp)
|
||||||
|
|
||||||
|
|
||||||
## Get hook2xmpp
|
## Get hook2xmpp
|
||||||
|
@ -13,14 +13,14 @@
|
||||||
|
|
||||||
Latest Build binary from ci here:
|
Latest Build binary from ci here:
|
||||||
|
|
||||||
[Download All](https://dev.sum7.eu/genofire/hook2xmpp/-/jobs/artifacts/master/download/?job=build-my-project) (with config example)
|
[Download All](https://dev.sum7.eu/sum7/hook2xmpp/-/jobs/artifacts/master/download/?job=build-my-project) (with config example)
|
||||||
|
|
||||||
[Download Binary](https://dev.sum7.eu/genofire/hook2xmpp/-/jobs/artifacts/master/raw/bin/hook2xmpp?inline=false&job=build-my-project)
|
[Download Binary](https://dev.sum7.eu/sum7/hook2xmpp/-/jobs/artifacts/master/raw/bin/hook2xmpp?inline=false&job=build-my-project)
|
||||||
|
|
||||||
#### Build
|
#### Build
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get -u dev.sum7.eu/genofire/hook2xmpp
|
go get -u dev.sum7.eu/sum7/hook2xmpp
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configure
|
## Configure
|
||||||
|
|
|
@ -5,11 +5,11 @@ import (
|
||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
libHTTP "dev.sum7.eu/genofire/golang-lib/http"
|
libHTTP "dev.sum7.eu/sum7/golang-lib/http"
|
||||||
"github.com/bdlm/log"
|
"github.com/bdlm/log"
|
||||||
"gosrc.io/xmpp"
|
"gosrc.io/xmpp"
|
||||||
|
|
||||||
"dev.sum7.eu/genofire/hook2xmpp/runtime"
|
"dev.sum7.eu/sum7/hook2xmpp/runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
const hookType = "circleci"
|
const hookType = "circleci"
|
||||||
|
|
|
@ -5,12 +5,12 @@ import (
|
||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
libHTTP "dev.sum7.eu/genofire/golang-lib/http"
|
libHTTP "dev.sum7.eu/sum7/golang-lib/http"
|
||||||
"github.com/bdlm/log"
|
"github.com/bdlm/log"
|
||||||
"github.com/mitchellh/mapstructure"
|
"github.com/mitchellh/mapstructure"
|
||||||
"gosrc.io/xmpp"
|
"gosrc.io/xmpp"
|
||||||
|
|
||||||
"dev.sum7.eu/genofire/hook2xmpp/runtime"
|
"dev.sum7.eu/sum7/hook2xmpp/runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
var eventHeader = map[string]string{
|
var eventHeader = map[string]string{
|
||||||
|
|
|
@ -8,11 +8,11 @@ import (
|
||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
libHTTP "dev.sum7.eu/genofire/golang-lib/http"
|
libHTTP "dev.sum7.eu/sum7/golang-lib/http"
|
||||||
"github.com/bdlm/log"
|
"github.com/bdlm/log"
|
||||||
"gosrc.io/xmpp"
|
"gosrc.io/xmpp"
|
||||||
|
|
||||||
"dev.sum7.eu/genofire/hook2xmpp/runtime"
|
"dev.sum7.eu/sum7/hook2xmpp/runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
var eventHeader = map[string]string{
|
var eventHeader = map[string]string{
|
||||||
|
|
|
@ -4,11 +4,11 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
libHTTP "dev.sum7.eu/genofire/golang-lib/http"
|
libHTTP "dev.sum7.eu/sum7/golang-lib/http"
|
||||||
"github.com/bdlm/log"
|
"github.com/bdlm/log"
|
||||||
"gosrc.io/xmpp"
|
"gosrc.io/xmpp"
|
||||||
|
|
||||||
"dev.sum7.eu/genofire/hook2xmpp/runtime"
|
"dev.sum7.eu/sum7/hook2xmpp/runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
const hookType = "grafana"
|
const hookType = "grafana"
|
||||||
|
|
14
main.go
14
main.go
|
@ -7,16 +7,16 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"dev.sum7.eu/genofire/golang-lib/file"
|
"dev.sum7.eu/sum7/golang-lib/file"
|
||||||
"github.com/bdlm/log"
|
"github.com/bdlm/log"
|
||||||
"gosrc.io/xmpp"
|
"gosrc.io/xmpp"
|
||||||
|
|
||||||
_ "dev.sum7.eu/genofire/hook2xmpp/circleci"
|
_ "dev.sum7.eu/sum7/hook2xmpp/circleci"
|
||||||
_ "dev.sum7.eu/genofire/hook2xmpp/git"
|
_ "dev.sum7.eu/sum7/hook2xmpp/git"
|
||||||
_ "dev.sum7.eu/genofire/hook2xmpp/gitlab"
|
_ "dev.sum7.eu/sum7/hook2xmpp/gitlab"
|
||||||
_ "dev.sum7.eu/genofire/hook2xmpp/grafana"
|
_ "dev.sum7.eu/sum7/hook2xmpp/grafana"
|
||||||
_ "dev.sum7.eu/genofire/hook2xmpp/prometheus"
|
_ "dev.sum7.eu/sum7/hook2xmpp/prometheus"
|
||||||
"dev.sum7.eu/genofire/hook2xmpp/runtime"
|
"dev.sum7.eu/sum7/hook2xmpp/runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
var config = runtime.Config{}
|
var config = runtime.Config{}
|
||||||
|
|
|
@ -6,12 +6,12 @@ import (
|
||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
libHTTP "dev.sum7.eu/genofire/golang-lib/http"
|
libHTTP "dev.sum7.eu/sum7/golang-lib/http"
|
||||||
"github.com/bdlm/log"
|
"github.com/bdlm/log"
|
||||||
"github.com/prometheus/alertmanager/notify/webhook"
|
"github.com/prometheus/alertmanager/notify/webhook"
|
||||||
"gosrc.io/xmpp"
|
"gosrc.io/xmpp"
|
||||||
|
|
||||||
"dev.sum7.eu/genofire/hook2xmpp/runtime"
|
"dev.sum7.eu/sum7/hook2xmpp/runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
const hookType = "prometheus"
|
const hookType = "prometheus"
|
||||||
|
|
Loading…
Reference in New Issue