api

package
v0.0.0-...-fc2018e Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 34 Imported by: 2

Documentation

Overview

Package api implements the agent IPC api. Using HTTP calls, it's possible to communicate with the agent, sending commands and receiving infos.

Package api implements the agent IPC api. Using HTTP calls, it's possible to communicate with the agent, sending commands and receiving infos.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModifyAPIRouter added in v0.9.0

func ModifyAPIRouter(f func(*mux.Router))

ModifyAPIRouter allows to pass in a function to modify router used in server

func StartServer

func StartServer(ctx context.Context, w workloadmeta.Component, taggerComp tagger.Component, ac autodiscovery.Component, senderManager sender.DiagnoseSenderManager, collector optional.Option[collector.Component], statusComponent status.Component, secretResolver secrets.Component, settings settings.Component, cfg config.Component) error

StartServer creates the router and starts the HTTP server

func StopServer

func StopServer()

StopServer closes the connection and the server stops listening to new commands.

Types

This section is empty.

Directories

Path Synopsis
Package agent implements the api endpoints for the `/agent` prefix.
Package agent implements the api endpoints for the `/agent` prefix.
v1
Package v1 implements the v1 of the API that exposes methods to manage and get information about the cluster checks and the endpoint checks dispatched by the cluster-agent.
Package v1 implements the v1 of the API that exposes methods to manage and get information about the cluster checks and the endpoint checks dispatched by the cluster-agent.
languagedetection
Package languagedetection implements the language detection API handler.
Package languagedetection implements the language detection API handler.

Jump to

Keyboard shortcuts

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