Documentation ¶
Index ¶
- Variables
- func E36() *big.Int
- func Ethers(value int64) *big.Int
- func GetOHLCVChannelID(bt, qt common.Address, unit string, duration int64) string
- func GetOrderBookChannelID(bt, qt common.Address) string
- func GetPairKey(bt, qt common.Address) string
- func GetTickChannelID(bt, qt common.Address, unit string, duration int64) string
- func GetTradeChannelID(bt, qt common.Address) string
- func JSON(x interface{}) string
- func MaxIntMap(m map[string]int) (string, int)
- func NewColoredLogger() *logging.Logger
- func NewErrorLogger() *logging.Logger
- func NewFileLogger(module string, logFile string) *logging.Logger
- func NewLogger(module string, logFile string) *logging.Logger
- func NewMainLogger() *logging.Logger
- func NewStandardOutputLogger() *logging.Logger
- func PrintError(msg string, err error)
- func PrintJSON(x interface{})
- func Retry(retries int, fn func() error) error
- func ToDecimal(value *big.Int) float64
- func UintToPaddedString(num int64) string
- func Use(...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var APILogger = NewLogger("api", "./logs/api.log")
View Source
var EngineLogger = NewLogger("engine", "./logs/engine.log")
View Source
var ErrorLogger = NewErrorLogger()
View Source
var Logger = NewLogger("main", "./logs/main.log")
View Source
var MainLogger = NewMainLogger()
View Source
var OperatorMessagesLogger = NewFileLogger("operator", "./logs/operator.log")
View Source
var RabbitLogger = NewLogger("rabbitmq", "./logs/rabbit.log")
View Source
var StdoutLogger = NewStandardOutputLogger()
View Source
var TerminalLogger = NewColoredLogger()
View Source
var WebsocketMessagesLogger = NewFileLogger("websocket", "./logs/websocket.log")
Functions ¶
func GetOHLCVChannelID ¶
func GetOrderBookChannelID ¶
func GetPairKey ¶
GetPairKey return the pair key identifier corresponding to two
func GetTickChannelID ¶
GetTickChannelID is used to get the channel id for OHLCV data streaming it takes pairname, duration and units of data streaming
func GetTradeChannelID ¶
func NewColoredLogger ¶
func NewErrorLogger ¶
func NewFileLogger ¶
NewFileLogger creates a logging utility that outputs to the file passed as argument but but does not output to stdout.
func NewMainLogger ¶
func NewStandardOutputLogger ¶
func PrintError ¶
func UintToPaddedString ¶
UintToPaddedString converts an int to string of length 19 by padding with 0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.