Documentation ¶
Index ¶
- func RenderTable(name string, duration time.Duration, keys []StartupTag) string
- type Grapher
- func (g *Grapher) Close() error
- func (g *Grapher) Generate() error
- func (g *Grapher) ParseText(jsonData []byte) (StartupResponse, error)
- func (g *Grapher) ParseURL(url string) error
- func (g *Grapher) RenderDOT() (bytes.Buffer, error)
- func (g *Grapher) RenderPNGFile(filepath string) error
- func (g *Grapher) RenderSVGFile(filepath string) error
- type StartupDuration
- type StartupEvent
- type StartupResponse
- type StartupStep
- type StartupTag
- type StartupTimeline
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderTable ¶
func RenderTable(name string, duration time.Duration, keys []StartupTag) string
Types ¶
type Grapher ¶
type Grapher struct {
// contains filtered or unexported fields
}
func (*Grapher) RenderPNGFile ¶
func (*Grapher) RenderSVGFile ¶
type StartupDuration ¶
func (*StartupDuration) UnmarshalJSON ¶
func (sd *StartupDuration) UnmarshalJSON(data []byte) error
This converts a Period Time string in the format "PT...S" into a time.Duration
type StartupEvent ¶
type StartupEvent struct { StartTime string `json:"startTime"` EndTime string `json:"endTime"` Duration StartupDuration `json:"duration"` StartupStep StartupStep `json:"startupStep"` }
type StartupResponse ¶
type StartupResponse struct { SpringBootVersion string `json:"springBootVersion"` Timeline StartupTimeline `json:"timeline"` }
type StartupStep ¶
type StartupStep struct { Name string `json:"name"` ID int `json:"id"` ParentID int `json:"parentID"` Tags []StartupTag `json:"tags"` }
type StartupTag ¶
type StartupTimeline ¶
type StartupTimeline struct { StartTime string `json:"startTime"` Events []StartupEvent `json:"events"` }
Click to show internal directories.
Click to hide internal directories.