config

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 2 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultHost = "https://api.dune.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	APIKey  string
	Host    string
	Headers map[string]string
}

func FromAPIKey

func FromAPIKey(apiKey string) *Env

FromAPIKey generates the config from a passed API key. Uses the default Host

func FromEnvVars

func FromEnvVars() (*Env, error)

FromEnvVars populates the config from environment variables

Jump to

Keyboard shortcuts

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