Skip to content

Commit

Permalink
Merge pull request #2 from johannessteu/chore/with-name
Browse files Browse the repository at this point in the history
chore: add WithName option
  • Loading branch information
HenriBeck committed May 16, 2024
2 parents f3b4342 + 804a3b9 commit 1c11959
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions http/http_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ func WithValidateResponse(validate func(res *http.Response) error) HTTPEndpointO
}
}

// WithName allows manually setting the endpoint name
func WithName(name string) HTTPEndpointOption {
return func(options *EndpointOptions) {
options.name = name
}
}

// NewEndpoint creates a new HTTP based loadtest endpoint.
//
// To configure it you can use the functional options.
Expand Down

0 comments on commit 1c11959

Please sign in to comment.