constructors

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 21 Imported by: 1

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 bricks.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