server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package server implements a Start method to initialize prometheus, gracefully_shutdown and application health

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerInterface

type ServerInterface interface {
	Start(
		handler http.Handler,
		addr string,
		logger logger.Logger,
		applicationName string,
		checkers ...health.HealthChecker,
	) <-chan error
}

ServerInterface implements the method Start that will be used to initialize infra-utils method

func NewServerInterface

func NewServerInterface() ServerInterface

NewServerInterface returns a instance of ServerInterface

Jump to

Keyboard shortcuts

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