Fix import paths

This commit is contained in:
James Mills 2021-07-13 07:57:54 +10:00
parent b78e2d90e7
commit 129efabcc3
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
10 changed files with 20 additions and 20 deletions

View File

@ -3,9 +3,9 @@
[![Build Status](https://cloud.drone.io/api/badges/prologic/msgbus/status.svg)](https://cloud.drone.io/prologic/msgbus)
[![CodeCov](https://codecov.io/gh/prologic/msgbus/branch/master/graph/badge.svg)](https://codecov.io/gh/prologic/msgbus)
[![Go Report Card](https://goreportcard.com/badge/prologic/msgbus)](https://goreportcard.com/report/prologic/msgbus)
[![GoDoc](https://godoc.org/github.com/prologic/msgbus?status.svg)](https://godoc.org/github.com/prologic/msgbus)
[![GitHub license](https://img.shields.io/github/license/prologic/msgbus.svg)](https://github.com/prologic/msgbus)
[![Sourcegraph](https://sourcegraph.com/github.com/prologic/msgbus/-/badge.svg)](https://sourcegraph.com/github.com/prologic/msgbus?badge)
[![GoDoc](https://godoc.org/git.mills.io/prologic/msgbus?status.svg)](https://godoc.org/git.mills.io/prologic/msgbus)
[![GitHub license](https://img.shields.io/github/license/prologic/msgbus.svg)](https://git.mills.io/prologic/msgbus)
[![Sourcegraph](https://sourcegraph.com/git.mills.io/prologic/msgbus/-/badge.svg)](https://sourcegraph.com/git.mills.io/prologic/msgbus?badge)
A real-time message bus server and library written in Go.
@ -20,7 +20,7 @@ A real-time message bus server and library written in Go.
## Install
```#!bash
$ go install github.com/prologic/msgbus/...
$ go install git.mills.io/prologic/msgbus/...
```
## Use Cases
@ -28,7 +28,7 @@ $ go install github.com/prologic/msgbus/...
* As a simple generic webhook
You can use msgbus as a simple generic webhook. For example in my
[dockerfiles](https://github.com/prologic/dockerfiles) repo I have hooked up
[dockerfiles](https://git.mills.io/prologic/dockerfiles) repo I have hooked up
[Prometheus](https://prometheus.io/)'s [AlertManager](https://prometheus.io/docs/alerting/alertmanager/)
to send alert notifications to an IRC channel using some simple shell scripts.
@ -42,7 +42,7 @@ See: [alert](https://hub.docker.com/r/prologic/alert/)
Install the package into your project:
```#!bash
$ go get github.com/prologic/msgbus
$ go get git.mills.io/prologic/msgbus
```
Use the `MessageBus` type either directly:
@ -53,7 +53,7 @@ package main
import (
"log"
"github.com/prologic/msgbus"
"git.mills.io/prologic/msgbus"
)
func main() {
@ -82,7 +82,7 @@ $ go run examples/hello.go
2017/08/09 03:01:54 Received message: id=%!s(uint64=0) topic=foo payload=Hello World!
```
See the [godoc](https://godoc.org/github.com/prologic/msgbus) for further
See the [godoc](https://godoc.org/git.mills.io/prologic/msgbus) for further
documentation and other examples.
## Usage (tool)
@ -212,8 +212,8 @@ Deletes a queue named by `<topic>`.
## Related Projects
* [je](https://github.com/prologic/je) -- A distributed job execution engine for the execution of batch jobs, workflows, remediations and more.
* [je](https://git.mills.io/prologic/je) -- A distributed job execution engine for the execution of batch jobs, workflows, remediations and more.
## License
msgbus is licensed under the [MIT License](https://github.com/prologic/msgbus/blob/master/LICENSE)
msgbus is licensed under the [MIT License](https://git.mills.io/prologic/msgbus/blob/master/LICENSE)

View File

@ -16,7 +16,7 @@ import (
"github.com/jpillora/backoff"
log "github.com/sirupsen/logrus"
"github.com/prologic/msgbus"
"git.mills.io/prologic/msgbus"
)
const (

View File

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/prologic/msgbus"
"git.mills.io/prologic/msgbus"
)
func TestClientPublish(t *testing.T) {

View File

@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/prologic/msgbus/client"
"git.mills.io/prologic/msgbus/client"
)
// pubCmd represents the pub command

View File

@ -4,7 +4,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/prologic/msgbus/client"
"git.mills.io/prologic/msgbus/client"
)
// pullCmd represents the pub command

View File

@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/prologic/msgbus"
"git.mills.io/prologic/msgbus"
)
var configFile string

View File

@ -12,8 +12,8 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/prologic/msgbus"
"github.com/prologic/msgbus/client"
"git.mills.io/prologic/msgbus"
"git.mills.io/prologic/msgbus/client"
)
// subCmd represents the pub command

View File

@ -9,7 +9,7 @@ import (
log "github.com/sirupsen/logrus"
"github.com/mmcloughlin/professor"
"github.com/prologic/msgbus"
"git.mills.io/prologic/msgbus"
)
func main() {

View File

@ -3,7 +3,7 @@ package main
import (
"log"
"github.com/prologic/msgbus"
"git.mills.io/prologic/msgbus"
)
func main() {

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/prologic/msgbus
module git.mills.io/prologic/msgbus
require (
github.com/BurntSushi/toml v0.3.1 // indirect