Documentation ¶
Index ¶
- Constants
- Variables
- func InitSchema() error
- type Account
- type ChartData
- type Store
- func (db *Store) DecodeValue(data []byte, out interface{})
- func (db *Store) EncodeKey(data interface{}) []byte
- func (db *Store) EncodeValue(data interface{}) []byte
- func (db *Store) ForEachPeriod(currencyPair string, callback func(chartData *ChartData)) error
- func (db *Store) Write(bucketName string, key interface{}, value interface{}) error
Constants ¶
View Source
const DATABASE_NAME = "sftbot.db"
Variables ¶
View Source
var BUCKET_NAMES = []string{
"accounts",
"transactions",
}
View Source
var CURRENCIES = []string{
"BTC",
"ETH",
"LTC",
"XRP",
"STEEM",
"ZEC",
"BTS",
"ETC",
"SC",
"DASH",
"GNT",
"DGB",
"FCT",
"XMR",
"MAID",
}
Functions ¶
func InitSchema ¶
func InitSchema() error
Types ¶
type Store ¶
func (*Store) DecodeValue ¶
func (*Store) EncodeValue ¶
func (*Store) ForEachPeriod ¶
Click to show internal directories.
Click to hide internal directories.