Documentation
¶
Index ¶
- func GoRoutineID() int64
- func LogBmark(text string)
- func LogClear(text string)
- func LogEnder(text string)
- func LogEndok(text string)
- func LogMsg(function, text, msgType string)
- func LogStart(text string, bookmark, clear bool)
- func SetLogFile(logUrl string)
- func SetLogStream(out io.Writer)
- type LockWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoRoutineID ¶
func GoRoutineID() int64
func LogEnder ¶
func LogEnder(text string)
Shortcut to log some text with the event-end (error) type
func LogEndok ¶
func LogEndok(text string)
Shortcut to log some text with the event-end (success) type
func SetLogStream ¶
Types ¶
type LockWrapper ¶
A class which adds lock block / acquire / release events to the event stream.
Regular code:
foo = sync.Lock() foo.Lock() foo.Unlock()
Annotated code:
foo = ctx.LockWrapper{sync.Lock(), "<uuid>", "My Lock"}
foo.Lock()
foo.Unlock()
func (*LockWrapper) Lock ¶
func (self *LockWrapper) Lock()
func (*LockWrapper) Unlock ¶
func (self *LockWrapper) Unlock()
Click to show internal directories.
Click to hide internal directories.