constructors

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 20 Imported by: 6

Documentation

Index

Constants

View Source
const FxGroupLoggerContextExtractors = "loggerContextExtractors"

FxGroupLoggerContextExtractors defines group name

View Source
const (
	// FxGroupMonitorContextExtractors defines group name
	FxGroupMonitorContextExtractors = "monitorContextExtractors"
)

Variables

This section is empty.

Functions

func DefaultJWTTokenExtractor

func DefaultJWTTokenExtractor() jwtInt.TokenExtractor

DefaultJWTTokenExtractor simple TokenExtractor

func DefaultLogger

func DefaultLogger(deps loggerDeps) logInt.Logger

DefaultLogger is a constructor that will create a logger with some default values on top of provided ones

func DefaultMonitor

func DefaultMonitor(deps monitorDeps) monitor.Metrics

DefaultMonitor is a constructor that will create a Metrics reporter based on values from the Config Map such as

  • Tags: we will look for default tags using mortar.MonitorTagsKey within the configuration map

func Service

func Service(deps webServiceDependencies) (server.WebService, error)

Service should be invoked by FX, it will build the entire dependencies graph and add lifecycle hooks

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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