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
Click to show internal directories.
Click to hide internal directories.