server

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsCollector

type MetricsCollector struct {
	// contains filtered or unexported fields
}

func NewMetricsCollector

func NewMetricsCollector() *MetricsCollector

func (*MetricsCollector) Observe

func (m *MetricsCollector) Observe(event telemetry.Event)

type Runtime

type Runtime struct {
	Snap  *config.Snapshot
	Auth  *policy.Auth
	Proxy *proxy.Proxy
}

type Server

type Server struct {

	// Status page (/status) metadata: injected build info + process start.
	Version   string
	StartedAt time.Time
	// contains filtered or unexported fields
}

func New

func New(snapshot *config.Snapshot, p *proxy.Proxy) *Server

func NewRuntimeServer

func NewRuntimeServer(snapshot *config.Snapshot, state *resilience.State) *Server

func (*Server) Adopt

func (s *Server) Adopt(snapshot *config.Snapshot)

func (*Server) AdoptVersion

func (s *Server) AdoptVersion(snapshot *config.Snapshot, version int64)

func (*Server) Routes

func (s *Server) Routes() http.Handler

func (*Server) Runtime

func (s *Server) Runtime() *Runtime

func (*Server) RuntimeOrNil

func (s *Server) RuntimeOrNil() *Runtime

func (*Server) SetConfigVersion

func (s *Server) SetConfigVersion(version int64)

func (*Server) SetTelemetry

func (s *Server) SetTelemetry(recorder telemetry.Recorder)

Jump to

Keyboard shortcuts

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