common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 3 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/go-template"
)

Variables

View Source
var Version = "dev"

Functions

func GetEnv

func GetEnv(key, defaultValue string) 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
	Version        string
	UID            string
	Tags           map[string]string
}

Jump to

Keyboard shortcuts

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