mirror of
https://github.com/yyhuni/xingrin.git
synced 2026-01-31 11:46:16 +08:00
13 lines
376 B
Go
13 lines
376 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
)
|
|
|
|
// GetProviderConfig fetches tool-specific configuration from Server
|
|
func (c *Client) GetProviderConfig(ctx context.Context, scanID int, toolName string) (*ProviderConfig, error) {
|
|
url := fmt.Sprintf("%s/api/worker/scans/%d/provider-config?tool=%s", c.baseURL, scanID, toolName)
|
|
return fetchJSON[*ProviderConfig](ctx, c, url)
|
|
}
|