config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Listen                = ":8080"
	ReposConfigFileName   = "swamp_repos.yml"
	TopRootFileSystemPath = ""
	TimerExpiredStart     = 30 * time.Minute
	TimerExpiredInterval  = 1 * time.Minute
	TimerExpiredLimit     = 1
	TimerBrokenStart      = 30 * time.Minute
	TimerBrokenInterval   = 1 * time.Minute
	TimerBrokenLimit      = 1
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Repos map[string]*models.Repo
}

func LoadConfig

func LoadConfig(log ports.Logger, f fs.ReadFileFS) (*Config, error)

func (*Config) String

func (c *Config) String() string

Jump to

Keyboard shortcuts

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