server

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: GPL-3.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 {
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config, log *slog.Logger, st store.Store, ih *ingest.Handler, ar *api.Router) *Server

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown triggers a graceful shutdown of both listeners.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start binds the listeners and begins serving. It returns once both listeners are accepting connections. Use Wait to block on shutdown.

func (*Server) URL

func (s *Server) URL() string

URL returns the browser-openable URL for the UI.

Jump to

Keyboard shortcuts

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