common

package
v0.0.0-...-6c19abb Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 2 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 *slog.Logger)

Types

type LoggingOpts

type LoggingOpts struct {
	Debug   bool
	JSON    bool
	Service string
	Version string
}

Jump to

Keyboard shortcuts

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