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: 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 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