config

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 2 Imported by: 1

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
}

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