common

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package common contains common utilities and functions used by the service.

Index

Constants

View Source
const (
	PackageName = "github.com/flashbots/builder-hub"
)

Variables

View Source
var Version = "dev"

Functions

func GetEnv

func GetEnv(key, defaultValue string) string

func GetIPXForwardedFor

func GetIPXForwardedFor(r *http.Request) string

func SetupLogger

func SetupLogger(opts *LoggingOpts) (log *httplog.Logger)

Types

type LoggingOpts

type LoggingOpts struct {
	Service        string
	JSON           bool
	Debug          bool
	Concise        bool
	RequestHeaders bool
	Tags           map[string]string
}

Jump to

Keyboard shortcuts

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