Skip to content

blinkinglight/professor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

professor - golang secure pprof

Sometimes you need to expose things to internet, so some basic protection to debug/pprof would be useful.

import "runtime" 

func main() {
	professor.SetToken("tokenstring") // default: securitytoken
	// or basic auth
	// professor.SetBasicAuth("user", "pass")
	professor.Launch(":1234")

	runtime.Goexit()
}
curl http://localhost:1234/debug/pprof/goroutine?debug=1&token=tokenstring

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%