api

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

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 ServerAddress

func ServerAddress() *net.TCPAddr

ServerAddress retruns the server address.

func StartServer

func StartServer(configService *remoteconfig.Service) 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.
Package check implements the api endpoints for the `/check` prefix.
Package check implements the api endpoints for the `/check` prefix.

Jump to

Keyboard shortcuts

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