admin

package
v1.29.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Resolved      *config.ResolvedAdmin
	ConfigPath    string
	ReloadManager *config.Manager
	ServerStarted time.Time
	ServerVersion string
	Domain        string
	HTTPPort      int
	TCPPort       int
	Secure        bool
	Ctx           *types.Context
}

Options configures the admin HTTP server.

type Server

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

Server runs the admin HTTP API and UI.

func New

func New(opts Options) (*Server, error)

New creates an admin server instance.

func (*Server) Resolved added in v1.29.3

func (s *Server) Resolved() *config.ResolvedAdmin

Resolved returns the active admin listen settings.

func (*Server) SetReloadManager

func (s *Server) SetReloadManager(m *config.Manager)

SetReloadManager updates reload manager after server wiring.

func (*Server) Start

func (s *Server) Start() error

Start listens and serves admin HTTP in the background.

func (*Server) Stop

func (s *Server) Stop() error

Stop shuts down the admin HTTP server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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