Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildSSAInput ¶
type BuildSSAInput struct { FuncName string `json:"funcname"` GcFlags string `json:"gcflags"` Code string `json:"code"` }
BuildSSAInput ...
type BuildSSAOutput ¶
BuildSSAOutput ...
type PingOutput ¶
PingOutput is used for service health
type Router ¶
Router is a router engine.
func (*Router) SetupAPI ¶
func (r *Router) SetupAPI()
SetupAPI serves the API endpoints of the gossa service.
func (*Router) SetupApp ¶
func (r *Router) SetupApp()
SetupApp serves the static website of Go SSA Playground.
func (*Router) SetupProfile ¶
func (r *Router) SetupProfile()
SetupProfile the standard HandlerFuncs from the net/http/pprof package with the provided gin.Engine. prefixOptions is a optional. If not prefixOptions, the default path prefix is used, otherwise first prefixOptions will be path prefix.
Basic Usage:
- use the pprof tool to look at the heap profile: go tool pprof localhost:8080/midgard/api/v1/debug/pprof/heap
- look at a 30-second CPU profile: go tool pprof localhost:8080/midgard/api/v1/debug/pprof/profile
- look at the goroutine blocking profile, after calling runtime.SetBlockProfileRate: go tool pprof localhost:8080/midgard/api/v1/debug/pprof/block
- collect a 5-second execution trace: go tool pprof localhost:8080/midgard/api/v1/debug/pprof/trace?seconds=5
Click to show internal directories.
Click to hide internal directories.