server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

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

HTTPServer is a HTTP server wrapper

func NewHTTPServer

func NewHTTPServer(cfg *config.Config) *HTTPServer

NewHTTPServer create new HTTP server

func (*HTTPServer) ListenAndServe

func (s *HTTPServer) ListenAndServe()

ListenAndServe start HTTP server

func (*HTTPServer) Shutdown

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

Shutdown stop HTTP server

type MetricsServer

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

MetricsServer is a HTTP server for metrics

func NewMetricsServer

func NewMetricsServer(cfg *config.Config) *MetricsServer

NewMetricsServer create new metrics server

func (*MetricsServer) ListenAndServe

func (s *MetricsServer) ListenAndServe()

ListenAndServe start metrics server

func (*MetricsServer) Shutdown

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

Shutdown stop metrics server

type SMTPServer

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

SMTPServer is a SMTP server

func NewSMTPHTTPServer

func NewSMTPHTTPServer(cfg *config.Config) *SMTPServer

NewSMTPServer create new SMTP server

func (*SMTPServer) ListenAndServe

func (s *SMTPServer) ListenAndServe()

ListenAndServe start SMTP server

func (*SMTPServer) Shutdown

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

Shutdown stop SMTP server

Jump to

Keyboard shortcuts

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