Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRoute ¶
func NewRoute(dp RouteDataProvider) web.Route
NewRoute returns the page for this folder.
Types ¶
type DP ¶
type DP struct {
// contains filtered or unexported fields
}
DP provides the traces that match the page's query.
type ReactiveState ¶
type ReactiveState struct {
// contains filtered or unexported fields
}
ReactiveState sends new values of the page's live variables to one open page. Its Set methods may be called from any goroutine.
func (*ReactiveState) SetTraces ¶
func (rs *ReactiveState) SetTraces(v Traces)
SetTraces stores v as traces and sends the parts of the page that show it.
type RouteDataProvider ¶
type RouteDataProvider interface {
Data(ctx context.Context, r *web.Request, w web.ResponseWriter, data *RouteData) error
// Subscribe runs while the page is open and must return when ctx is done.
Subscribe(ctx context.Context, r *web.Request, state *ReactiveState) error
}
RouteDataProvider is what this page's DP implements.
Click to show internal directories.
Click to hide internal directories.