config

package
v0.0.0-...-0d5c79f Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(cmd *cobra.Command)

Types

type Config

type Config struct {
	Port              int           `mapstructure:"port"`
	LogLevel          string        `mapstructure:"log-level"`
	StorageFolder     string        `mapstructure:"storage-folder"`
	RepoTTL           time.Duration `mapstructure:"repo-ttl"`
	TokenTTL          time.Duration `mapstructure:"token-ttl"`
	RepoCheckInterval time.Duration `mapstructure:"repo-check-interval"`
}

func GetConfig

func GetConfig() *Config

Jump to

Keyboard shortcuts

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