Discover Packages
github.com/thought-machine/please-servers
mettle
worker
package
Version:
v3.0.7+incompatible
Opens a new window with list of versions in this module.
Published: Apr 5, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 39
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Package worker implements the worker side of Mettle.
func RunForever(requestQueue, responseQueue, name, storage, dir, cacheDir, browserURL, sandbox string , clean, secureStorage bool , timeout time .Duration , maxCacheSize int64 )
RunForever runs the worker, receiving jobs until terminated.
A Cache implements a filesystem-based blob cache.
Since all the blobs are keyed by hash we don't have to worry about invalidation.
In normal use the server never writes it; we prefill a selected artifact list offline.
NewCache returns a new cache instance.
MustStoreAll is like StoreAll but dies on errors.
Retrieve copies a blob from the cache to the given location.
It returns true if retrieved.
StoreAll reads the given file and stores all the blobs it finds into the cache.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.