Documentation ¶
Index ¶
- Constants
- Variables
- type App
- type Router
- func (r *Router) URLTo(route string) (*url.URL, error)
- func (r *Router) URLToTrace(id appdash.ID) (*url.URL, error)
- func (r *Router) URLToTraceProfile(trace appdash.ID) (*url.URL, error)
- func (r *Router) URLToTraceSpan(trace, span appdash.ID) (*url.URL, error)
- func (r *Router) URLToTraceSpanProfile(trace, span appdash.ID) (*url.URL, error)
- type TemplateCommon
Constants ¶
View Source
const ( RootRoute = "traceapp.root" // route name for root TraceRoute = "traceapp.trace" // route name for a single trace page TraceSpanRoute = "traceapp.trace.span" // route name for a single trace sub-span page TraceProfileRoute = "traceapp.trace.profile" // route name for a JSON trace profile TraceSpanProfileRoute = "traceapp.trace.span.profile" // route name for a JSON trace sub-span profile TracesRoute = "traceapp.traces" // route name for traces page )
Traceapp's route names.
Variables ¶
View Source
var ( // ReloadTemplates is whether to reload html/template templates // before each request. It is useful during development. ReloadTemplates = true )
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { *Router Store appdash.Store Queryer appdash.Queryer // contains filtered or unexported fields }
App is an HTTP application handler that also exposes methods for constructing URL routes.
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router is a URL router for traceapp applications. It should be created via the NewRouter function.
func (*Router) URLToTrace ¶
URLToTrace constructs a URL to a given trace by ID.
func (*Router) URLToTraceProfile ¶
URLToTraceProfile constructs a URL to a trace's JSON profile.
func (*Router) URLToTraceSpan ¶
URLToTraceSpan constructs a URL to a sub-span in a trace.
Click to show internal directories.
Click to hide internal directories.