Thanks to visit codestin.com
Credit goes to pkg.go.dev

config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGlobalConfigPath added in v1.2.0

func GetGlobalConfigPath() (string, error)

GetGlobalConfigPath returns the full path to the global config file

func GetGlobalFolderPath added in v1.2.0

func GetGlobalFolderPath() (string, error)

GetGlobalFolderPath returns the path to the config folder

func NewGlobalConfigManager added in v1.2.0

func NewGlobalConfigManager(cmd *cobra.Command) (*shared.BaseConfigManager[GlobalConfig], error)

NewGlobalConfigManager creates a new global configuration manager using BaseConfigManager

Types

type CloudflareConfig

type CloudflareConfig struct {
	Token string `mapstructure:"token" yaml:"token"`
}

CloudflareConfig holds Cloudflare-specific configuration

type GlobalConfig added in v1.2.0

type GlobalConfig struct {
	Cloudflare CloudflareConfig `mapstructure:"cloudflare" yaml:"cloudflare"`
}

GlobalConfig represents the main configuration structure

func GetDefaultConfig added in v1.2.0

func GetDefaultConfig() *GlobalConfig

GetDefaultConfig returns the default global configuration

Jump to

Keyboard shortcuts

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