package di

import "github.com/IBM/fp-go/ioeither/http/di"

Index

Variables

var (
	// InjHttpClient is the [DI.InjectionToken] for the [http.DefaultClient]
	InjHttpClient = DI.MakeTokenWithDefault0("HTTP_CLIENT", IOE.Of[error](http.DefaultClient))

	// InjClient is the [DI.InjectionToken] for the default [IOEH.Client]
	InjClient = DI.MakeTokenWithDefault1("CLIENT", InjHttpClient.IOEither(), IOE.Map[error](IOEH.MakeClient))
)

Source Files

di.go

Version
v1.0.151 (latest)
Published
Nov 23, 2024
Platform
linux/amd64
Imports
4 packages
Last checked
4 months ago

Tools for package owners.