server

package
v0.0.0-...-eb5cc7f Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayServer

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

GatewayServer - represents simple http server wrapper for gateway to gRPC service

func NewGatewayServer

func NewGatewayServer(gatewayConfiguration, grpcEndpointConfiguration *config.EndpointConfiguration, errChan chan<- error) *GatewayServer

NewGatewayServer - creates new GatewayServer with configuration parameters

and output channel to signalize about critical errors

func (*GatewayServer) Start

func (s *GatewayServer) Start()

Start - start GatewayServer

func (*GatewayServer) Stop

func (s *GatewayServer) Stop()

Stop - graceful stop GatewayServer with waiting of http server is stopped

type GrpcServer

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

GrpcServer - represents simple gRPC server wrapper

func NewGrpcServer

func NewGrpcServer(configuration *config.EndpointConfiguration, producer kafka.Producer, db *sqlx.DB, metric metrics.Metrics, chunkSize int, errChan chan<- error) *GrpcServer

NewGrpcServer - creates new GrpcServer with configuration endpoint

and output channel to signalize about critical errors

func (*GrpcServer) Start

func (s *GrpcServer) Start()

Start - start GrpcServer

func (*GrpcServer) Stop

func (s *GrpcServer) Stop()

Stop - graceful stop GrpcServer

type HealthServer

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

HealthServer - represents simple http server for checking health

func NewHealthServer

func NewHealthServer(healthcheckConfiguration *config.HealthCheckConfiguration, producer kafka.Producer, db *sqlx.DB) *HealthServer

NewHealthServer - creates new HealthServer with configuration parameters

func (*HealthServer) Start

func (s *HealthServer) Start()

Start - start HealthServer

func (*HealthServer) Stop

func (s *HealthServer) Stop()

Stop - graceful stop HealthServer with waiting of http server is stopped

type MetricsServer

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

MetricsServer - represents simple http server wrapper for prometheus metrics

func NewMetricsServer

func NewMetricsServer(prometheusConfiguration *config.PrometheusConfiguration) *MetricsServer

NewMetricsServer - creates new MetricsServer with configuration parameters

func (*MetricsServer) Start

func (s *MetricsServer) Start()

Start - start MetricsServer

func (*MetricsServer) Stop

func (s *MetricsServer) Stop()

Stop - graceful stop MetricsServer with waiting of http server is stopped

Jump to

Keyboard shortcuts

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