Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions syntheticsclientv2/synthetics.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ func (c Client) makePublicAPICall(method string, endpoint string, requestBody io
return &details, nil
}

func NewClientArgs(timeout int, baseUrl string) ClientArgs {
return ClientArgs{
timeoutSeconds: timeout,
publicBaseUrl: baseUrl,
}
}

func NewClient(apiKey string, realm string) *Client {
args := ClientArgs{timeoutSeconds: 30}
return NewConfigurableClient(apiKey, realm, args)
Expand Down
Loading