Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset = assetservice.Asset
type EventBusMessage ¶
type HTTPServer ¶
type HTTPServer interface { SendSuccessResponse(w http.ResponseWriter, status int, result any) SendErrorResponse(w http.ResponseWriter, message string, status int) }
HTTPServer interface
type ModuleSDK ¶
type ModuleSDK struct { EventBus EventBus Router Router AssetService AssetService Options Options HTTPServer HTTPServer Cache Cache Logger *slog.Logger Scope Scope }
ModuleSDK are the exposed dependencies that modules can use
type Options ¶
type Options struct { // Port is the port where jxscout will be running Port int // WorkingDirectory is used by jxscout as the root where files will be saved WorkingDirectory string // ScopePatterns is a list of wildcard patterns used for filtering requests (e.g. {"*google.com*", "*facebook.com*"}) ScopePatterns goflags.StringSlice // Verbose defines if the server should output logs Verbose bool // Debug defines if the server should output debug logs Debug bool // CacheTTL defines the ttl for cache entries. caching is used internally to drop requests if they were already processed. Should be in a format compatible with https://pkg.go.dev/time#ParseDuration" CacheTTL string // AssetSaveConcurrency defines the max concurrency for asset service (handles saves to the file system and to the DB) AssetSaveConcurrency int // AssetServiceConcurrency defines the max concurrency for the asset fetch service (handles fetching asset URLs) AssetFetchConcurrency int // BeautifierConcurrency defines the max concurrency for beautifier processes BeautifierConcurrency int // ChunkDiscovererConcurrency defines the max concurrency for the chunk discoverer process ChunkDiscovererConcurrency int // ChunkDiscovererBruteForceLimit defines the max limit for the chunk discoverer to try and bruteforce chunks ChunkDiscovererBruteForceLimit int // JavascriptRequestsCacheTTL defines the time to wait until a js file is downloaded and processed again JavascriptRequestsCacheTTL time.Duration // HTMLRequestsCacheTTL defines the time to wait until a html file is downloaded and processed again HTMLRequestsCacheTTL time.Duration }
JXScout Options
Click to show internal directories.
Click to hide internal directories.