Documentation
¶
Overview ¶
Example ¶
package main
import (
"net/http"
"github.com/didi/sharingan"
)
func main() {
doneChan := make(chan bool)
go func(delegatedID int64) {
sharingan.SetDelegatedFromGoRoutineID(delegatedID)
defer sharingan.SetDelegatedFromGoRoutineID(0)
http.Get("http://127.0.0.1:8888")
doneChan <- true
}(sharingan.GetCurrentGoRoutineID())
<-doneChan
}
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentGoRoutineID ¶
func GetCurrentGoRoutineID() int64
GetCurrentGoRoutineID get current goroutineID incase SetDelegatedFromGoRoutineID
func SetDelegatedFromGoRoutineID ¶
func SetDelegatedFromGoRoutineID(gID int64)
SetDelegatedFromGoRoutineID should be used when this goroutine is doing work for another goroutine
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
recorder
command
|
|
|
replayer
command
Replayer demo for how to import package "github.com/didi/sharingan/replayer"
|
Replayer demo for how to import package "github.com/didi/sharingan/replayer" |
|
recorder-agent
module
|
|
|
replayer-agent
module
|
Click to show internal directories.
Click to hide internal directories.






