Documentation
¶
Overview ¶
Package api implements the HTTP API used for the Grafana Agent Flow UI.
The API is internal only; it is not stable and shouldn't be relied on externally.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlowAPI ¶
type FlowAPI struct {
// contains filtered or unexported fields
}
FlowAPI is a wrapper around the component API.
func NewFlowAPI ¶
func NewFlowAPI(flow component.Provider, cluster cluster.Cluster) *FlowAPI
NewFlowAPI instantiates a new Flow API.
func (*FlowAPI) RegisterRoutes ¶
func (f *FlowAPI) RegisterRoutes(urlPrefix string, r *mux.Router)
RegisterRoutes registers all the API's routes.
Click to show internal directories.
Click to hide internal directories.