api

package
v1.4.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package api implements the HTTP API used for the Grafana Alloy 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 AlloyAPI

type AlloyAPI struct {
	CallbackManager livedebugging.CallbackManager
	// contains filtered or unexported fields
}

AlloyAPI is a wrapper around the component API.

func NewAlloyAPI

func NewAlloyAPI(alloy, remotecfg service.Host, CallbackManager livedebugging.CallbackManager) *AlloyAPI

NewAlloyAPI instantiates a new Alloy API.

func (*AlloyAPI) RegisterRoutes

func (a *AlloyAPI) 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