1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-27 10:53:42 +02:00

Change project name to "thalos" (working name).

This commit is contained in:
Henrik Hautakoski 2023-03-29 15:28:40 +02:00
parent f174863a17
commit a23661e088
14 changed files with 26 additions and 25 deletions

View file

@ -1,6 +1,6 @@
GO=go GO=go
PROGRAM=build/eosio-ship-trace-reader PROGRAM=build/thalos-server
.PHONY: $(PROGRAM) test .PHONY: $(PROGRAM) test

View file

@ -4,11 +4,12 @@ import (
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"thalos/abi"
"thalos/transport"
"thalos/transport/message"
log "github.com/sirupsen/logrus" 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" "github.com/eoscanada/eos-go/ship"
shipclient "github.com/eosswedenorg-go/antelope-ship-client" shipclient "github.com/eosswedenorg-go/antelope-ship-client"
) )

View file

@ -11,11 +11,11 @@ import (
"github.com/go-redis/redis/v8" "github.com/go-redis/redis/v8"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"eosio-ship-trace-reader/abi" "thalos/abi"
"eosio-ship-trace-reader/app" "thalos/app"
"eosio-ship-trace-reader/config" "thalos/config"
"eosio-ship-trace-reader/transport/redis_common" "thalos/transport/redis_common"
"eosio-ship-trace-reader/transport/redis_pubsub" "thalos/transport/redis_pubsub"
"github.com/nikoksr/notify" "github.com/nikoksr/notify"
"github.com/nikoksr/notify/service/telegram" "github.com/nikoksr/notify/service/telegram"

2
go.mod
View file

@ -1,4 +1,4 @@
module eosio-ship-trace-reader module thalos
go 1.18 go 1.18

View file

@ -10,7 +10,7 @@ INSTALL_DIR=$1
echo "Installing application in: $INSTALL_DIR" echo "Installing application in: $INSTALL_DIR"
mkdir -p "$INSTALL_DIR"/{bin,logs} 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 if [ ! -f "${INSTALL_DIR}/config.json" ]; then
install -T -m 600 config.example.json "${INSTALL_DIR}/config.json" install -T -m 600 config.example.json "${INSTALL_DIR}/config.json"

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
BIN=bin/eosio-ship-trace-reader BIN=bin/thalos-server
DIR=$(dirname $(realpath $0)) DIR=$(dirname $(realpath $0))
cd "$DIR" cd "$DIR"
@ -7,6 +7,6 @@ cd "$DIR"
date date
./stop.sh ./stop.sh
timestamp=`date +%s` 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 rm -f out.log
ln -s logs/$timestamp.log out.log ln -s logs/$timestamp.log out.log

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
PIDFILE="$(pwd)/eosio-ship-trace-reader.pid" PIDFILE="$(pwd)/thalos.pid"
if [ -f "$PIDFILE" ]; then if [ -f "$PIDFILE" ]; then
pid=$(cat "$PIDFILE") pid=$(cat "$PIDFILE")

View file

@ -3,7 +3,7 @@ package redis_common
import ( import (
"fmt" "fmt"
"eosio-ship-trace-reader/transport" "thalos/transport"
) )
// Key consists of a namespace and a channel. // Key consists of a namespace and a channel.

View file

@ -3,7 +3,7 @@ package redis_common
import ( import (
"testing" "testing"
"eosio-ship-trace-reader/transport" "thalos/transport"
) )
func TestKey_String(t *testing.T) { func TestKey_String(t *testing.T) {

View file

@ -3,7 +3,7 @@ package redis_common
import ( import (
"strings" "strings"
"eosio-ship-trace-reader/transport" "thalos/transport"
) )
const ( const (

View file

@ -3,8 +3,8 @@ package redis_pubsub
import ( import (
"context" "context"
"eosio-ship-trace-reader/transport" "thalos/transport"
. "eosio-ship-trace-reader/transport/redis_common" . "thalos/transport/redis_common"
"github.com/go-redis/redis/v8" "github.com/go-redis/redis/v8"
) )

View file

@ -3,8 +3,8 @@ package redis_pubsub
import ( import (
"testing" "testing"
"eosio-ship-trace-reader/transport" "thalos/transport"
. "eosio-ship-trace-reader/transport/redis_common" . "thalos/transport/redis_common"
"github.com/go-redis/redismock/v8" "github.com/go-redis/redismock/v8"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"

View file

@ -5,8 +5,8 @@ import (
"sync" "sync"
"time" "time"
"eosio-ship-trace-reader/transport" "thalos/transport"
. "eosio-ship-trace-reader/transport/redis_common" . "thalos/transport/redis_common"
"github.com/go-redis/redis/v8" "github.com/go-redis/redis/v8"
) )

View file

@ -4,8 +4,8 @@ import (
"testing" "testing"
"time" "time"
"eosio-ship-trace-reader/transport" "thalos/transport"
. "eosio-ship-trace-reader/transport/redis_common" . "thalos/transport/redis_common"
"github.com/alicebob/miniredis/v2" "github.com/alicebob/miniredis/v2"
"github.com/go-redis/redis/v8" "github.com/go-redis/redis/v8"