Documentation
¶
Index ¶
Constants ¶
View Source
const DevMode = false
View Source
const NoticeLevel = slog.LevelInfo + 2
Variables ¶
This section is empty.
Functions ¶
func CLICache ¶
func CLICache() writefs.CompleteFS
Return the cache file system from CLI value. It need to call CLI before.
Types ¶
type Config ¶
type Config struct {
LogHandler slog.Handler
Writefile writefs.Creator
Fetcher []fetch.Fetcher
LongTasksCache writefs.CreateOpener
LongTasksMap map[string]func(*Tool, []byte) ([]byte, error)
}
func CLI ¶
Add some flags, call flag.Parse, and use result in the config.
type Tool ¶
All information for one service.
Concerning WriteFile and Fetch: - log the result - consider error as fatal: return nothing because the service cannot resolve it.
func (*Tool) Fetch ¶
Make a HTTP call, and return the body. Return nil if cannot parse the url.
Logs results and errors.
If all internal fetchers return and error, return nil.
Directories
¶
| Path | Synopsis |
|---|---|
|
Make HTTP requests.
|
Make HTTP requests. |
|
Tools collection to minify and prepare assets.
|
Tools collection to minify and prepare assets. |
|
render is a lib for render secure HTML within go code.
|
render is a lib for render secure HTML within go code. |
|
sch check that data observe a schema.
|
sch check that data observe a schema. |
|
FS interface to read and write.
|
FS interface to read and write. |
Click to show internal directories.
Click to hide internal directories.