api

package
v0.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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 service.Host) *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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL