infra

package
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 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 *mux.Router, serverAddress string) *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

func (*Logger) WithFields

func (l *Logger) WithFields(fields ...zap.Field) *zap.Logger

WithFields creates an entry from the standard logger and adds multiple fields to it

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL