http

package
v1.0.59 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: AGPL-3.0 Imports: 23 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(db *gorm.DB, redisClient *redis.Client, 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(db *gorm.DB, redisClient *redis.Client, 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()

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 Jacob McSwain
SPDX-License-Identifier: AGPL-3.0-or-later DMRHub - Run a DMR network server in a single binary Copyright (C) 2023 Jacob McSwain

Jump to

Keyboard shortcuts

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