Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
miaolz123 committed Dec 26, 2016
1 parent 5cca6c3 commit 5fa4933
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 96 deletions.
30 changes: 15 additions & 15 deletions api/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,6 @@ type Order struct {
StockType string
}

// Ticker struct
type Ticker struct {
Bids []OrderBook
Buy float64
Mid float64
Sell float64
Asks []OrderBook
}

// OrderBook struct
type OrderBook struct {
Price float64
Amount float64
}

// Record struct
type Record struct {
Time int64
Expand All @@ -64,6 +49,21 @@ type Record struct {
Volume float64
}

// OrderBook struct
type OrderBook struct {
Price float64
Amount float64
}

// Ticker struct
type Ticker struct {
Bids []OrderBook
Buy float64
Mid float64
Sell float64
Asks []OrderBook
}

func base64Encode(data string) string {
return base64.StdEncoding.EncodeToString([]byte(data))
}
Expand Down
10 changes: 3 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ for i in 0 1 2 3 4 5; do
cp -r web/dist cache/samaritan_${osarchs[${i}]}/web/dist
cp config.ini cache/samaritan_${osarchs[${i}]}/custom/config.ini
cp config.ini cache/samaritan_${osarchs[${i}]}/custom/config.default.ini
if [ ${i} -lt 2 ]
then
mv cache/${files[${i}]} cache/samaritan_${osarchs[${i}]}/samaritan.exe
else
mv cache/${files[${i}]} cache/samaritan_${osarchs[${i}]}/samaritan
fi
cd cache
if [ ${i} -lt 3 ]
if [ ${i} -lt 2 ]
then
mv ${files[${i}]} samaritan_${osarchs[${i}]}/samaritan.exe
zip -r samaritan_${osarchs[${i}]}.zip samaritan_${osarchs[${i}]}
else
mv ${files[${i}]} samaritan_${osarchs[${i}]}/samaritan
tar -zcvf samaritan_${osarchs[${i}]}.tar.gz samaritan_${osarchs[${i}]}
fi
rm -rf samaritan_${osarchs[${i}]}
Expand Down
Loading

0 comments on commit 5fa4933

Please sign in to comment.