http

package
v1.2.40 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("server closed")
View Source
var ErrFailed = errors.New("failed to start server")
View Source
var (
	ErrReadDir = errors.New("error reading directory")
)

FS is the embedded frontend files

Functions

func CreateRouter added in v1.0.13

func CreateRouter(ctx context.Context, config *configPkg.Config, dmrHub *hub.Hub, db *gorm.DB, pubsub pubsub.PubSub, ready *atomic.Bool, ns *netscheduler.NetScheduler, version, commit string) *gin.Engine

func CreateSetupWizardRouter added in v1.0.66

func CreateSetupWizardRouter(config *configPkg.Config, token string, configCompleteChan chan any, version, commit string) *gin.Engine

Types

type Server added in v1.0.14

type Server struct {
	*http.Server
	// contains filtered or unexported fields
}

func MakeServer added in v1.0.14

func MakeServer(ctx context.Context, config *configPkg.Config, dmrHub *hub.Hub, db *gorm.DB, pubsub pubsub.PubSub, ready *atomic.Bool, ns *netscheduler.NetScheduler, version, commit string) Server

func MakeSetupWizardServer added in v1.0.66

func MakeSetupWizardServer(config *configPkg.Config, token string, configCompleteChan chan any, version, commit string) Server

func (*Server) Start added in v1.0.14

func (s *Server) Start() error

func (*Server) Stop added in v1.0.14

func (s *Server) Stop(ctx context.Context)

Directories

Path Synopsis
api
apimodels
SPDX-License-Identifier: AGPL-3.0-or-later DMRHub - Run a DMR network server in a single binary Copyright (C) 2023-2026 Jacob McSwain
SPDX-License-Identifier: AGPL-3.0-or-later DMRHub - Run a DMR network server in a single binary Copyright (C) 2023-2026 Jacob McSwain
controllers/v1/setupwizard
SPDX-License-Identifier: AGPL-3.0-or-later DMRHub - Run a DMR network server in a single binary Copyright (C) 2023-2026 Jacob McSwain
SPDX-License-Identifier: AGPL-3.0-or-later DMRHub - Run a DMR network server in a single binary Copyright (C) 2023-2026 Jacob McSwain

Jump to

Keyboard shortcuts

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