config

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package config holds configuration for the static files used in sleuth

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileCategory

type FileCategory struct {
	// Name is the name of the file category
	Name string `json:"name"`
}

FileCategory is a struct that represents the category of a file which would be roughly "what" the file is

type FileProvider

type FileProvider struct {
	// URL is the web address that should be called to fetch the file
	URL string `json:"url,omitempty"`
	// File is the file name that should be used to save the file
	FileName string `json:"file"`
	// Path is the location on disk that should be used to store the file using the FileName
	Path string `json:"path"`
	// Hash is the hash of the file that should be used to verify the file
	Hash string `json:"hash"`
	// Category represents the type of file
	Category FileCategory
}

FileProvider is a struct that represents a file provider and generally "who" the file is from

Jump to

Keyboard shortcuts

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