api

package
v0.0.0-...-dc824b7 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Store probestore.ProbeStorage
}

Server is the main API server object.

func NewServer

func NewServer(store probestore.ProbeStorage) Server

NewServer creates a new API server.

func (Server) CreateProbe

(POST /probes)

func (Server) DeleteProbe

(DELETE /probes/{probe_id})

func (Server) GetProbeById

(GET /probes/{probe_id})

func (Server) ListProbes

(GET /probes)

func (Server) MonitorProbes

func (s Server) MonitorProbes(ctx context.Context)

func (Server) UpdateProbe

(PATCH /probes/{probe_id})

Jump to

Keyboard shortcuts

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