server

package
v0.0.0-...-2f0a4f1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FamedAdminRoutes

func FamedAdminRoutes(g *echo.Group, famedHandler famed.HTTPHandler, githubHandler github.HTTPHandler)

func FamedRoutes

func FamedRoutes(g *echo.Group, handler famed.HTTPHandler)

FamedRoutes defines endpoints exposed to serve famed api endpoints.

func HealthRoutes

func HealthRoutes(g *echo.Group, handler health.HTTPHandler)

HealthRoutes defines endpoints exposed to serve uses cases of infrastructure and customer support.

func ScanRoutes

func ScanRoutes(g *echo.Group, handler scan.HTTPHandler)

ScanRoutes defines endpoints exposed to allow for scan requests.

func StaticRoutes

func StaticRoutes(g *echo.Group, handler static.HTTPHandler)

StaticRoutes defines endpoints exposed to serve static files.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents the HTTP server single instance.

func NewServer

func NewServer(devToolKit *devtoolkit.DevToolkit) (*Server, error)

NewServer instantiates and sets up a new server using the echo web framework.

func (*Server) Start

func (s *Server) Start() error

Start starts a new go routine that allows to gracefully shut down the server.

Jump to

Keyboard shortcuts

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