server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server wraps the echo http server as API Server.

func New

func New(conf *config.Server, logger *zerolog.Logger, promMiddlewareConfig echoprometheus.MiddlewareConfig) *Server

New creates a new wrapped server.

func (*Server) RegisterAPI

func (s *Server) RegisterAPI(apiImplementation apiServerDefinition.ServerInterface)

RegisterAPI registers api spec and api implementation to the echo server.

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown gracefully stops the api server.

func (*Server) Start

func (s *Server) Start() error

Start starts the wrapped echo server.

Jump to

Keyboard shortcuts

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