httpsrv

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

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

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
	AuthConfig    ginjwt.AuthConfig
	SecretsKeeper *secrets.Keeper
	EventStream   events.Stream
}

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