config

package
v0.0.0-...-4f679da Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseUrl string `mapstructure:"BASE_URL"`
	ApiKey  string `mapstructure:"API_KEY"`
}

Configuration for the Cortex Client So far, the only mandatory value is ApiKey, since BaseUrl has a default value.

func GetConfig

func GetConfig(file string) (*Config, error)

GetConfig returns a Config object to retreive information for both Request creation and Client instantiation

Jump to

Keyboard shortcuts

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