hostingplace

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunOnHostingPlaces

func RunOnHostingPlaces[X, Y any](hps []string, data X,
	run func(string, X, chan HostingPlaceData[Y])) (map[string]Y, error)

Generic function to run specific function on each region and then aggregate the results into a struct

func SendAsyncErr

func SendAsyncErr[X any](c chan HostingPlaceData[[]X], err error)

Types

type HostingPlaceData

type HostingPlaceData[Y any] struct {
	Region string
	Err    error
	Value  Y
}

Jump to

Keyboard shortcuts

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