config

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.0.2

type Config struct {
	DestinationFolder string
	ForceHashCheck    bool
	CheckLink         bool
}

func GetConfig added in v0.0.2

func GetConfig() Config
type Link struct {
	Name                     string            `json:"name"`
	Url                      string            `json:"url"`
	Version                  string            `json:"version"`
	Type                     string            `json:"type"`
	Hash                     string            `json:"hash"`
	DecompressFlat           bool              `json:"decompress_flat"`
	DecompressFilter         string            `json:"decompress_filter"`
	Skipped                  bool              `json:"skipped"`
	OverwriteFilesNames      map[string]string `json:"overwrite_files_names"`
	GithubReleaseAssetFilter string            `json:"github_release_asset_filter"`
}

func (*Link) GetDisplayName

func (l *Link) GetDisplayName() string
func (l *Link) GetHostFromLink() string
type LinksContainer struct {
	MinVersion   string    `json:"min_version"`
	Links        []Link    `json:"links"`
	LastModified time.Time `json:"last_modified"`
}

func (LinksContainer) GetLinksByDisplayNamePreffix added in v0.0.2

func (lc LinksContainer) GetLinksByDisplayNamePreffix(name string) []Link
func (lc *LinksContainer) SortLinks()

Jump to

Keyboard shortcuts

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