Versions in this module Expand all Collapse all v0 v0.6.0 Nov 27, 2021 Changes in this version + func New(opts ...ClientOpt) nw_client.Rest + func NewAssert(assert AssertResponse, client nw_client.Rest) nw_client.Rest + type AssertClient struct + func (z AssertClient) Call(ctx api_context.Context, req nw_client.RequestBuilder) (res es_response.Response) + type AssertResponse func(res es_response.Response) es_response.Response + type ClientOpt func(o ClientOpts) ClientOpts + func Assert(ar AssertResponse) ClientOpt + func Client(client *http.Client) ClientOpt + func Mock() ClientOpt + func RateLimitSimulator(rate int, headerType nw_simulator.RetryAfterHeaderType, ...) ClientOpt + func ReplayMock(rm []nw_replay.Response) ClientOpt + func ServerErrorSimulator(rate int, code int, decorator nw_simulator.ResponseDecorator) ClientOpt + type ClientOpts struct + Assert AssertResponse + Mock bool + ReplayMock []nw_replay.Response + func (z ClientOpts) Apply(opts ...ClientOpt) ClientOpts