chore: init log package (#606)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
29
queue/nsq/README.md
Normal file
29
queue/nsq/README.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# NSQ
|
||||
|
||||
A realtime distributed messaging platform
|
||||
|
||||
## Setup
|
||||
|
||||
start the NSQ lookupd
|
||||
|
||||
```sh
|
||||
nsqlookupd
|
||||
```
|
||||
|
||||
start the NSQ server
|
||||
|
||||
```sh
|
||||
nsqd --lookupd-tcp-address=localhost:4160
|
||||
```
|
||||
|
||||
start the NSQ admin dashboard
|
||||
|
||||
```sh
|
||||
nsqadmin --lookupd-http-address localhost:4161
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
```sh
|
||||
go test -v ./...
|
||||
```
|
||||
@@ -1,7 +1,6 @@
|
||||
package nsq
|
||||
|
||||
import (
|
||||
"log"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -21,15 +20,6 @@ func (m mockMessage) Bytes() []byte {
|
||||
}
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
if err := logx.InitLog(
|
||||
"debug",
|
||||
"stdout",
|
||||
"debug",
|
||||
"stdout",
|
||||
); err != nil {
|
||||
log.Fatalf("Can't load log module, error: %v", err)
|
||||
}
|
||||
|
||||
m.Run()
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package simple
|
||||
|
||||
import (
|
||||
"log"
|
||||
"runtime"
|
||||
"testing"
|
||||
"time"
|
||||
@@ -22,15 +21,6 @@ func (m mockMessage) Bytes() []byte {
|
||||
}
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
if err := logx.InitLog(
|
||||
"debug",
|
||||
"stdout",
|
||||
"debug",
|
||||
"stdout",
|
||||
); err != nil {
|
||||
log.Fatalf("Can't load log module, error: %v", err)
|
||||
}
|
||||
|
||||
m.Run()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user