diff --git a/.drone.yml b/.drone.yml index 64e2a92..408c1f8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ workspace: base: /go - path: src/dev.sum7.eu/genofire/logmania + path: src/dev.sum7.eu/sum7/logmania pipeline: build: diff --git a/README.md b/README.md index 83468a1..b970247 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # logmania -[![pipeline status](https://dev.sum7.eu/genofire/logmania/badges/master/pipeline.svg)](https://dev.sum7.eu/genofire/logmania/pipelines) -[![coverage report](https://dev.sum7.eu/genofire/logmania/badges/master/coverage.svg)](https://dev.sum7.eu/genofire/logmania/pipelines) -[![Go Report Card](https://goreportcard.com/badge/dev.sum7.eu/genofire/logmania)](https://goreportcard.com/report/dev.sum7.eu/genofire/logmania) -[![GoDoc](https://godoc.org/dev.sum7.eu/genofire/logmania?status.svg)](https://godoc.org/dev.sum7.eu/genofire/logmania) +[![pipeline status](https://dev.sum7.eu/sum7/logmania/badges/master/pipeline.svg)](https://dev.sum7.eu/genofire/logmania/pipelines) +[![coverage report](https://dev.sum7.eu/sum7/logmania/badges/master/coverage.svg)](https://dev.sum7.eu/genofire/logmania/pipelines) +[![Go Report Card](https://goreportcard.com/badge/dev.sum7.eu/sum7/logmania)](https://goreportcard.com/report/dev.sum7.eu/genofire/logmania) +[![GoDoc](https://godoc.org/dev.sum7.eu/sum7/logmania?status.svg)](https://godoc.org/dev.sum7.eu/genofire/logmania) This is a little logging server. @@ -32,14 +32,14 @@ configuration live possible by bot (on input e.g. xmpp) Latest Build binary from ci here: -[Download All](https://dev.sum7.eu/genofire/logmania/-/jobs/artifacts/master/download/?job=build-my-project) (with config example) +[Download All](https://dev.sum7.eu/sum7/logmania/-/jobs/artifacts/master/download/?job=build-my-project) (with config example) -[Download Binary](https://dev.sum7.eu/genofire/logmania/-/jobs/artifacts/master/raw/bin/logmania?inline=false&job=build-my-project) +[Download Binary](https://dev.sum7.eu/sum7/logmania/-/jobs/artifacts/master/raw/bin/logmania?inline=false&job=build-my-project) #### Build ```bash -go get -u dev.sum7.eu/genofire/logmania +go get -u dev.sum7.eu/sum7/logmania ``` ## Configure @@ -49,4 +49,4 @@ see `config_example.toml` ## Related Projects -- [hook2xmpp](https://dev.sum7.eu/genofire/hook2xmpp) for e.g. grafana, alertmanager(prometheus), gitlab, git, circleci +- [hook2xmpp](https://dev.sum7.eu/sum7/hook2xmpp) for e.g. grafana, alertmanager(prometheus), gitlab, git, circleci diff --git a/bot/filter.go b/bot/filter.go index a84f27f..10b0d65 100644 --- a/bot/filter.go +++ b/bot/filter.go @@ -3,7 +3,7 @@ package bot import ( "fmt" - "dev.sum7.eu/genofire/logmania/database" + "dev.sum7.eu/sum7/logmania/database" ) func NewFilter(db *database.DB) *Command { diff --git a/bot/hostname.go b/bot/hostname.go index 76e9a1f..4d5d6b4 100644 --- a/bot/hostname.go +++ b/bot/hostname.go @@ -3,7 +3,7 @@ package bot import ( "fmt" - "dev.sum7.eu/genofire/logmania/database" + "dev.sum7.eu/sum7/logmania/database" timeago "github.com/ararog/timeago" ) diff --git a/bot/main.go b/bot/main.go index 6b6c167..63726a5 100644 --- a/bot/main.go +++ b/bot/main.go @@ -3,7 +3,7 @@ package bot import ( "github.com/mattn/go-shellwords" - "dev.sum7.eu/genofire/logmania/database" + "dev.sum7.eu/sum7/logmania/database" ) type Bot struct { diff --git a/bot/priority.go b/bot/priority.go index 91473af..716a45a 100644 --- a/bot/priority.go +++ b/bot/priority.go @@ -6,7 +6,7 @@ import ( "github.com/bdlm/log" logstd "github.com/bdlm/std/logger" - "dev.sum7.eu/genofire/logmania/database" + "dev.sum7.eu/sum7/logmania/database" ) func NewPriority(db *database.DB) *Command { diff --git a/bot/replace.go b/bot/replace.go index 717bfed..1ff87e1 100644 --- a/bot/replace.go +++ b/bot/replace.go @@ -3,7 +3,7 @@ package bot import ( "fmt" - "dev.sum7.eu/genofire/logmania/database" + "dev.sum7.eu/sum7/logmania/database" ) func NewReplace(db *database.DB) *Command { diff --git a/bot/send.go b/bot/send.go index 0638b13..1e6fac9 100644 --- a/bot/send.go +++ b/bot/send.go @@ -3,7 +3,7 @@ package bot import ( "fmt" - "dev.sum7.eu/genofire/logmania/database" + "dev.sum7.eu/sum7/logmania/database" ) func NewSend(db *database.DB) *Command { diff --git a/cmd/server.go b/cmd/server.go index c772fb7..49b4bf7 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -11,13 +11,13 @@ import ( "dev.sum7.eu/genofire/golang-lib/file" "dev.sum7.eu/genofire/golang-lib/worker" - "dev.sum7.eu/genofire/logmania/bot" - "dev.sum7.eu/genofire/logmania/database" - "dev.sum7.eu/genofire/logmania/input" - allInput "dev.sum7.eu/genofire/logmania/input/all" - "dev.sum7.eu/genofire/logmania/lib" - "dev.sum7.eu/genofire/logmania/output" - allOutput "dev.sum7.eu/genofire/logmania/output/all" + "dev.sum7.eu/sum7/logmania/bot" + "dev.sum7.eu/sum7/logmania/database" + "dev.sum7.eu/sum7/logmania/input" + allInput "dev.sum7.eu/sum7/logmania/input/all" + "dev.sum7.eu/sum7/logmania/lib" + "dev.sum7.eu/sum7/logmania/output" + allOutput "dev.sum7.eu/sum7/logmania/output/all" ) var ( diff --git a/input/all/internal.go b/input/all/internal.go index 943c1ab..30037b3 100644 --- a/input/all/internal.go +++ b/input/all/internal.go @@ -3,7 +3,7 @@ package all import ( "github.com/bdlm/log" - "dev.sum7.eu/genofire/logmania/input" + "dev.sum7.eu/sum7/logmania/input" ) type Input struct { diff --git a/input/all/main.go b/input/all/main.go index f70769e..8b02226 100644 --- a/input/all/main.go +++ b/input/all/main.go @@ -1,6 +1,6 @@ package all import ( - _ "dev.sum7.eu/genofire/logmania/input/journald_json" - _ "dev.sum7.eu/genofire/logmania/input/syslog" + _ "dev.sum7.eu/sum7/logmania/input/journald_json" + _ "dev.sum7.eu/sum7/logmania/input/syslog" ) diff --git a/input/journald_json/main.go b/input/journald_json/main.go index 78067b0..531d363 100644 --- a/input/journald_json/main.go +++ b/input/journald_json/main.go @@ -6,7 +6,7 @@ import ( "github.com/bdlm/log" "github.com/mitchellh/mapstructure" - "dev.sum7.eu/genofire/logmania/input" + "dev.sum7.eu/sum7/logmania/input" ) const inputType = "journald_json" diff --git a/input/syslog/internal.go b/input/syslog/internal.go index 65ac315..b77c148 100644 --- a/input/syslog/internal.go +++ b/input/syslog/internal.go @@ -4,7 +4,7 @@ import ( "github.com/bdlm/log" logstd "github.com/bdlm/std/logger" - libSyslog "dev.sum7.eu/genofire/logmania/lib/syslog" + libSyslog "dev.sum7.eu/sum7/logmania/lib/syslog" ) var SyslogPriorityMap = map[int]logstd.Level{ diff --git a/input/syslog/main.go b/input/syslog/main.go index 5fbb952..240b6a8 100644 --- a/input/syslog/main.go +++ b/input/syslog/main.go @@ -6,7 +6,7 @@ import ( "github.com/bdlm/log" "github.com/mitchellh/mapstructure" - "dev.sum7.eu/genofire/logmania/input" + "dev.sum7.eu/sum7/logmania/input" ) const inputType = "syslog" diff --git a/lib/config.go b/lib/config.go index b65cf6c..c4d39b7 100644 --- a/lib/config.go +++ b/lib/config.go @@ -1,7 +1,7 @@ package lib // Struct of the configuration -// e.g. under dev.sum7.eu/genofire/logmania/logmania_example.conf +// e.g. under dev.sum7.eu/sum7/logmania/logmania_example.conf type Config struct { Debug bool `toml:"debug"` DB string `toml:"database"` diff --git a/main.go b/main.go index e2bb6c9..4ef8486 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,6 @@ package main -import "dev.sum7.eu/genofire/logmania/cmd" +import "dev.sum7.eu/sum7/logmania/cmd" func main() { cmd.Execute() diff --git a/output/all/internal.go b/output/all/internal.go index e19b389..b0eae64 100644 --- a/output/all/internal.go +++ b/output/all/internal.go @@ -4,9 +4,9 @@ import ( "github.com/bdlm/log" "time" - "dev.sum7.eu/genofire/logmania/bot" - "dev.sum7.eu/genofire/logmania/database" - "dev.sum7.eu/genofire/logmania/output" + "dev.sum7.eu/sum7/logmania/bot" + "dev.sum7.eu/sum7/logmania/database" + "dev.sum7.eu/sum7/logmania/output" ) var logger = log.WithField("notify", "all") diff --git a/output/all/main.go b/output/all/main.go index 0aceaa3..8c56347 100644 --- a/output/all/main.go +++ b/output/all/main.go @@ -1,6 +1,6 @@ package all import ( - _ "dev.sum7.eu/genofire/logmania/output/file" - _ "dev.sum7.eu/genofire/logmania/output/xmpp" + _ "dev.sum7.eu/sum7/logmania/output/file" + _ "dev.sum7.eu/sum7/logmania/output/xmpp" ) diff --git a/output/file/main.go b/output/file/main.go index e0c0f3f..2ab7cc9 100644 --- a/output/file/main.go +++ b/output/file/main.go @@ -8,9 +8,9 @@ import ( "github.com/bdlm/log" "github.com/mitchellh/mapstructure" - "dev.sum7.eu/genofire/logmania/bot" - "dev.sum7.eu/genofire/logmania/database" - "dev.sum7.eu/genofire/logmania/output" + "dev.sum7.eu/sum7/logmania/bot" + "dev.sum7.eu/sum7/logmania/database" + "dev.sum7.eu/sum7/logmania/output" ) const ( diff --git a/output/main.go b/output/main.go index 02dbea2..cb7586a 100644 --- a/output/main.go +++ b/output/main.go @@ -3,8 +3,8 @@ package output import ( "github.com/bdlm/log" - "dev.sum7.eu/genofire/logmania/bot" - "dev.sum7.eu/genofire/logmania/database" + "dev.sum7.eu/sum7/logmania/bot" + "dev.sum7.eu/sum7/logmania/database" ) var Register = make(map[string]Init) diff --git a/output/xmpp/main.go b/output/xmpp/main.go index 8503440..ae3f216 100644 --- a/output/xmpp/main.go +++ b/output/xmpp/main.go @@ -8,9 +8,9 @@ import ( "gosrc.io/xmpp" "gosrc.io/xmpp/stanza" - "dev.sum7.eu/genofire/logmania/bot" - "dev.sum7.eu/genofire/logmania/database" - "dev.sum7.eu/genofire/logmania/output" + "dev.sum7.eu/sum7/logmania/bot" + "dev.sum7.eu/sum7/logmania/database" + "dev.sum7.eu/sum7/logmania/output" ) const ( diff --git a/output/xmpp/send.go b/output/xmpp/send.go index 17a673c..7927176 100644 --- a/output/xmpp/send.go +++ b/output/xmpp/send.go @@ -7,7 +7,7 @@ import ( "gosrc.io/xmpp" "gosrc.io/xmpp/stanza" - "dev.sum7.eu/genofire/logmania/database" + "dev.sum7.eu/sum7/logmania/database" ) func (out *Output) Join(to string) {