daemon

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler processes incoming requests from clients.

func NewHandler

func NewHandler(cfg *config.Config, c *cache.Cache, cl *allowlist.Classifier, s *metrics.Stats) *Handler

func (*Handler) Handle

func (h *Handler) Handle(req *protocol.Request) *protocol.Response

Handle processes a single client request and returns a response.

type Server

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

Server is the ghxd daemon.

func NewServer

func NewServer(cfg *config.Config, version string) *Server

NewServer creates a new daemon server.

func (*Server) Run

func (s *Server) Run() error

Run starts the daemon and blocks until shutdown.

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown gracefully stops the daemon.

Jump to

Keyboard shortcuts

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