api

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, svc *app.Service) error

func ServeWithTelemetry

func ServeWithTelemetry(ctx context.Context, svc *app.Service, telemetry Telemetry) error

Types

type HTTPObservation

type HTTPObservation struct {
	Route    string
	Method   string
	Status   int
	Duration time.Duration
}

type Telemetry

type Telemetry interface {
	ObserveHTTP(context.Context, HTTPObservation)
}

Jump to

Keyboard shortcuts

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