legacy

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 7 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

Overview

Package legacy is a listener hello serves itself, outside the SDK's public port: the service announces it with a declarative route (svc.API(api.HTTP(...))) so its API appears in the catalog.

Index

Constants

View Source
const Prefix = "/legacy/"

Prefix is what the legacy listener serves.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Listen address. Keep its port stable across restarts and replicas:
	// declarative routes are part of the immutable per-version manifest.
	Listen string `json:"listen" schemapb:"default=:8083"`
}

Config of the listener.

type Server

type Server struct {
	deps.Component
	// contains filtered or unexported fields
}

Server is a component owning its own listener, open from New so that the route can name its port before Run.

func New

func New(parent deps.Scope, cfg *Config) (*Server, error)

New listens on cfg.Listen and serves from the start of the tree to its stop.

func (*Server) Port

func (s *Server) Port() uint16

Port is the port the listener got.

Jump to

Keyboard shortcuts

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