bricks

package
v0.0.0-...-e6b574e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 21 Imported by: 0

README

/app/bricks

Code in this directory is related to Bricks and uber-fx

  • Bricks Providers invocations.
  • Builders
  • Your constructors wrapped as fx.Option
  • Tracing/Monitoring/Logger implicit configurations

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpClientFxOptions

func HttpClientFxOptions() fx.Option

func HttpServerFxOptions

func HttpServerFxOptions() fx.Option

func InternalHttpHandlersFxOptions

func InternalHttpHandlersFxOptions() fx.Option

These will help you to debug/profile or understand the internals of your service

func JaegerBuilder

func JaegerBuilder(lc fx.Lifecycle, config cfg.Config, logger log.Logger) (opentracing.Tracer, error)

This constructor assumes you have JAEGER environment variables set

https://github.com/jaegertracing/jaeger-client-go#environment-variables

Once built it will register Lifecycle hooks (connect on start, close on stop)

func LoggerFxOption

func LoggerFxOption() fx.Option

func PrometheusBuilder

func PrometheusBuilder(cfg cfg.Config) monitor.Builder

PrometheusBuilder returns a monitor.Builder that is implemented by Prometheus

func PrometheusFxOption

func PrometheusFxOption() fx.Option

PrometheusFxOption registers prometheus

func SubWorkshopAPIsAndOtherDependenciesFxOption

func SubWorkshopAPIsAndOtherDependenciesFxOption() fx.Option

func TracerFxOption

func TracerFxOption() fx.Option

func ViperFxOption

func ViperFxOption(configFilePath string, additionalFilePaths ...string) fx.Option

Types

This section is empty.

Jump to

Keyboard shortcuts

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