server

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

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

func NewGracefulShutdown

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

func (*GracefulShutdown) Shutdown

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

func (*GracefulShutdown) StopServices

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

type Interface

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

type Server

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

func NewServer

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

func (*Server) Start

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