config

package
v0.179.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() string

ConfigDir - Returns Directory holding the Config file

func ConfigFilePath

func ConfigFilePath() string

ConfigFilePath - returns the path to the config file

func InitConfig

func InitConfig(options Options)

InitConfig - Initialises config file for Viper

func SaveConfig

func SaveConfig(allSettings map[string]interface{}) error

func WunderGraphApplicationConfig added in v0.166.0

func WunderGraphApplicationConfig(wunderGraphDir string) (*wgpb.WunderGraphConfiguration, error)

WunderGraphApplicationConfig returns the configuration for the WunderGraph application at the given directory

Types

type Options added in v0.128.0

type Options struct {
	TelemetryEnabled     bool
	TelemetryAnonymousID string
}

Jump to

Keyboard shortcuts

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