Documentation ¶
Index ¶
- func ToString(v LogLevel) string
- type AltLogger
- func (s *AltLogger) Debug(args ...interface{})
- func (s *AltLogger) Debugf(format string, args ...interface{})
- func (s *AltLogger) Error(args ...interface{})
- func (s *AltLogger) Errorf(format string, args ...interface{})
- func (s *AltLogger) Fatal(args ...interface{})
- func (s *AltLogger) Fatalf(format string, args ...interface{})
- func (s *AltLogger) Info(args ...interface{})
- func (s *AltLogger) Infof(format string, args ...interface{})
- func (s *AltLogger) Loop()
- func (s *AltLogger) ReadLogs(level LogLevel, max int) []JSONLog
- func (s *AltLogger) SetCapacity(v int64)
- func (s *AltLogger) SetTimeout(v int64)
- func (s *AltLogger) Size() int
- func (s *AltLogger) ToJSON() ([]byte, error)
- func (s *AltLogger) Trace(args ...interface{})
- func (s *AltLogger) Tracef(format string, args ...interface{})
- func (s *AltLogger) Warn(args ...interface{})
- func (s *AltLogger) Warnf(format string, args ...interface{})
- type Group
- type JSONLog
- type Log
- type LogLevel
- type Result
- type Trial
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AltLogger ¶
type AltLogger struct {
// contains filtered or unexported fields
}
AltLogger alt logger
type JSONLog ¶
type JSONLog struct { // Date Date int64 `json:"date"` // Level level Level string `json:"level"` // Message log Message string `json:"message"` }
JSONLog log
type Result ¶
type Result struct { Firstname string `json:"first"` Lastname string `json:"last"` Club string `json:"club"` Lap int `json:"lap"` Bib int `json:"bib"` // couloir Lane int `json:"lane"` // dossard Result string `json:"result"` // time in s Status int `json:"status"` // status 0: unranked 1: normal 2: DNS 3: DNF 4:DQ Rank int `json:"rank"` }
Result (Bib xor Lane is used)
type Trial ¶
type Trial struct { UID string `json:"uid"` Name string `json:"name"` Round int64 `json:"round"` Group Group `json:"group"` Date time.Time `json:"date"` // real date DateE time.Time `json:"dateE"` // expected date Length int64 `json:"length"` // length Wind string `json:"wind"` Temperature string `json:"temperature"` Status int64 `json:"status"` Modtime time.Time Results *[]Result `json:"results,omitempty"` }
Trial trial
Click to show internal directories.
Click to hide internal directories.