Dagger
Search

utils

A generated module for Utils functions

Installation

dagger install github.com/ernesto27/daggerverse/utils@85802010b26aefd7de237fa338a1def240e50a81

Entrypoint

Return Type
Utils
Example
func (m *myModule) example() *Utils  {
	return dag.
			Utils()
}
@function
def example() -> dag.Utils:
	return (
		dag.utils()
	)
@func()
example(): Utils {
	return dag
		.utils()
}

Types

Utils 🔗

doRequest() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
urlString !-URL to request
timesInteger !-Number of times to request the URL
secuentialBoolean -No description provided
Example
dagger -m github.com/ernesto27/daggerverse/utils@85802010b26aefd7de237fa338a1def240e50a81 call \
 do-request --url string --times integer
func (m *myModule) example(ctx context.Context, url string, times int) string  {
	return dag.
			Utils().
			DoRequest(ctx, url, times)
}
@function
async def example(url: str, times: int) -> str:
	return await (
		dag.utils()
		.do_request(url, times)
	)
@func()
async example(url: string, times: number): Promise<string> {
	return dag
		.utils()
		.doRequest(url, times)
}