infra

package
v0.0.0-...-b973768 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServer

func CreateServer(router chi.Router, serverAddress string, options ...func(*http.Server)) *http.Server

CreateServer create a new http server

Types

type Logger

type Logger struct {
	Log *zap.Logger
}

Logger represents a logger

func CreateLogger

func CreateLogger(level int) (*Logger, error)

CreateLogger creates a logger instance for all components

Jump to

Keyboard shortcuts

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