Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LevelInfo is something notable infomation. LevelInfo int = iota // LevelWarn is warning. LevelWarn // LevelError is unexpected runtime error. LevelError // LevelFatal is an abend error. LevelFatal // LevelTextInfo is the text for info. LevelTextInfo = "info" // LevelTextWarn is the text for warn. LevelTextWarn = "warn" // LevelTextError is the text for error. LevelTextError = "error" // LevelTextFatal is the text for fatal. LevelTextFatal = "fatal" // LabelBalance is a label for balance. LabelBalance = "[Balance]" // LabelBalanceHistory is a label for balance history. LabelBalanceHistory = "[Balance History]" // LabelChat is a label for chat. LabelChat = "[Chat]" // LabelChildOrder is a label for child order. LabelChildOrder = "[ChildOrder]" // LabelCollateral is a label for collateral. LabelCollateral = "[Collateral]" // LabelExecution is a label for execution. LabelExecution = "[Execution]" // LabelPosition is a label for position. LabelPosition = "[Position]" // LabelTicker is a label for Ticker. LabelTicker = "[Ticker]" // LabelTradingCommission is a label for trading commission. LabelTradingCommission = "[Trading Commission]" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessLogEntry ¶
type AccessLogEntry struct { Level string `json:"level"` Time time.Time `json:"time"` // UTC Method string `json:"method"` URL string `json:"url"` Body string `json:"body"` }
An AccessLogEntry represents an entry for access log.
type Entry ¶
type Entry struct { Level string `json:"level"` Time time.Time `json:"time"` // UTC Message string `json:"message"` }
An Entry represents an entry for basic log.
Click to show internal directories.
Click to hide internal directories.