mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
Change project name to "thalos" (working name).
This commit is contained in:
parent
f174863a17
commit
a23661e088
14 changed files with 26 additions and 25 deletions
2
Makefile
2
Makefile
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
GO=go
|
||||
PROGRAM=build/eosio-ship-trace-reader
|
||||
PROGRAM=build/thalos-server
|
||||
|
||||
.PHONY: $(PROGRAM) test
|
||||
|
||||
|
|
|
|||
|
|
@ -4,11 +4,12 @@ import (
|
|||
"encoding/hex"
|
||||
"encoding/json"
|
||||
|
||||
"thalos/abi"
|
||||
"thalos/transport"
|
||||
"thalos/transport/message"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"eosio-ship-trace-reader/abi"
|
||||
"eosio-ship-trace-reader/transport"
|
||||
"eosio-ship-trace-reader/transport/message"
|
||||
"github.com/eoscanada/eos-go/ship"
|
||||
shipclient "github.com/eosswedenorg-go/antelope-ship-client"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -11,11 +11,11 @@ import (
|
|||
"github.com/go-redis/redis/v8"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"eosio-ship-trace-reader/abi"
|
||||
"eosio-ship-trace-reader/app"
|
||||
"eosio-ship-trace-reader/config"
|
||||
"eosio-ship-trace-reader/transport/redis_common"
|
||||
"eosio-ship-trace-reader/transport/redis_pubsub"
|
||||
"thalos/abi"
|
||||
"thalos/app"
|
||||
"thalos/config"
|
||||
"thalos/transport/redis_common"
|
||||
"thalos/transport/redis_pubsub"
|
||||
|
||||
"github.com/nikoksr/notify"
|
||||
"github.com/nikoksr/notify/service/telegram"
|
||||
|
|
|
|||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
|||
module eosio-ship-trace-reader
|
||||
module thalos
|
||||
|
||||
go 1.18
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ INSTALL_DIR=$1
|
|||
echo "Installing application in: $INSTALL_DIR"
|
||||
|
||||
mkdir -p "$INSTALL_DIR"/{bin,logs}
|
||||
install -m 750 -t "${INSTALL_DIR}/bin" build/eosio-ship-trace-reader
|
||||
install -m 750 -t "${INSTALL_DIR}/bin" build/thalos-server
|
||||
|
||||
if [ ! -f "${INSTALL_DIR}/config.json" ]; then
|
||||
install -T -m 600 config.example.json "${INSTALL_DIR}/config.json"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
BIN=bin/eosio-ship-trace-reader
|
||||
BIN=bin/thalos-server
|
||||
|
||||
DIR=$(dirname $(realpath $0))
|
||||
cd "$DIR"
|
||||
|
|
@ -7,6 +7,6 @@ cd "$DIR"
|
|||
date
|
||||
./stop.sh
|
||||
timestamp=`date +%s`
|
||||
$BIN -p ./eosio-ship-trace-reader.pid 2> logs/$timestamp.log &
|
||||
$BIN -p ./thalos.pid 2> logs/$timestamp.log &
|
||||
rm -f out.log
|
||||
ln -s logs/$timestamp.log out.log
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
PIDFILE="$(pwd)/eosio-ship-trace-reader.pid"
|
||||
PIDFILE="$(pwd)/thalos.pid"
|
||||
|
||||
if [ -f "$PIDFILE" ]; then
|
||||
pid=$(cat "$PIDFILE")
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package redis_common
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"eosio-ship-trace-reader/transport"
|
||||
"thalos/transport"
|
||||
)
|
||||
|
||||
// Key consists of a namespace and a channel.
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package redis_common
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"eosio-ship-trace-reader/transport"
|
||||
"thalos/transport"
|
||||
)
|
||||
|
||||
func TestKey_String(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package redis_common
|
|||
import (
|
||||
"strings"
|
||||
|
||||
"eosio-ship-trace-reader/transport"
|
||||
"thalos/transport"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ package redis_pubsub
|
|||
import (
|
||||
"context"
|
||||
|
||||
"eosio-ship-trace-reader/transport"
|
||||
. "eosio-ship-trace-reader/transport/redis_common"
|
||||
"thalos/transport"
|
||||
. "thalos/transport/redis_common"
|
||||
|
||||
"github.com/go-redis/redis/v8"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ package redis_pubsub
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"eosio-ship-trace-reader/transport"
|
||||
. "eosio-ship-trace-reader/transport/redis_common"
|
||||
"thalos/transport"
|
||||
. "thalos/transport/redis_common"
|
||||
|
||||
"github.com/go-redis/redismock/v8"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"eosio-ship-trace-reader/transport"
|
||||
. "eosio-ship-trace-reader/transport/redis_common"
|
||||
"thalos/transport"
|
||||
. "thalos/transport/redis_common"
|
||||
|
||||
"github.com/go-redis/redis/v8"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"eosio-ship-trace-reader/transport"
|
||||
. "eosio-ship-trace-reader/transport/redis_common"
|
||||
"thalos/transport"
|
||||
. "thalos/transport/redis_common"
|
||||
|
||||
"github.com/alicebob/miniredis/v2"
|
||||
"github.com/go-redis/redis/v8"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue