server

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package server provides HTTP server functionality for LocalGo

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
}

Server manages the HTTP/S server lifecycle.

func NewServer

func NewServer(cfg *config.Config, logger *zap.SugaredLogger) *Server

NewServer creates a new Server instance.

func (*Server) GetSendService added in v0.2.0

func (s *Server) GetSendService() *services.SendService

GetSendService returns the SendService instance.

func (*Server) Shutdown

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

Shutdown gracefully shuts down the server.

func (*Server) Start

func (s *Server) Start(ctx context.Context, readyChan chan<- struct{}) error

Start runs the HTTP/S server.

Directories

Path Synopsis
Package handlers contains HTTP handlers for the LocalGo server
Package handlers contains HTTP handlers for the LocalGo server

Jump to

Keyboard shortcuts

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