httpsrv

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package httpsrv provides the HTTP server to handle all requests for the fleetdb.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Logger        *zap.Logger
	Listen        string
	Debug         bool
	DB            *sqlx.DB
	OIDCEnabled   bool
	AuthConfigs   []ginjwt.AuthConfig
	SecretsKeeper *secrets.Keeper
}

Server implements the HTTP Server

func (*Server) NewServer

func (s *Server) NewServer() *http.Server

NewServer returns a configured server

func (*Server) Run

func (s *Server) Run() error

Run will start the server listening on the specified address

Jump to

Keyboard shortcuts

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