server

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, stop context.CancelFunc, cfg *conf.GlobalConfig, clients *clients.Clients)

Types

type GracefulShutdown added in v1.4.0

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

func NewGracefulShutdown added in v1.4.0

func NewGracefulShutdown(ctx context.Context, stop context.CancelFunc) *GracefulShutdown

func (*GracefulShutdown) Shutdown added in v1.4.0

func (s *GracefulShutdown) Shutdown(server *Server)

func (*GracefulShutdown) StopServices added in v1.4.0

func (s *GracefulShutdown) StopServices(ctx *context.Context, server *Server)

type Interface added in v1.4.0

type Interface interface {
	Start() *http.Server
	// contains filtered or unexported methods
}

type Server added in v1.4.0

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

func NewServer added in v1.4.0

func NewServer(config *conf.GlobalConfig, clients *clients.Clients) *Server

func (*Server) Start added in v1.4.0

func (s *Server) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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