Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v1.3.98 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package api pkg/deployment/rf/api/api.go c2-net-routing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	http.Handler

	DmsgServers []string
	// contains filtered or unexported fields
}

API represents the api of the route-finder service.

func New

func New(s store.Store, logger logrus.FieldLogger, enableMetrics bool, dmsgAddr string) *API

New creates a new api

func (*API) StartGraphCache

func (a *API) StartGraphCache(ctx context.Context)

StartGraphCache keeps one shared full-network graph warm in the background so route requests no longer each build a per-source graph by walking the store. Bound to ctx (the server lifecycle); until the first build lands, requests fall back to the per-source build. Call once at server start.

type HealthCheckResponse

type HealthCheckResponse = httputil.HealthCheckResponse

HealthCheckResponse is the /health body every service shares.

Jump to

Keyboard shortcuts

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