Documentation
¶
Index ¶
Constants ¶
View Source
const ( // List of available headers Authorization string = "Authorization" CollectionID string = "Collection-Id" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewWithHealthClient ¶
func NewWithHealthClient(hcCli *healthcheck.Client) *Client
NewWithHealthClient creates a new instance of Scrubber API Client, reusing the URL and Clienter from the provided healthcheck client
func (*Client) Checker ¶
Checker calls Scrubber API health endpoint and returns a check object to the caller
func (*Client) GetScrubber ¶ added in v0.3.0
func (cli *Client) GetScrubber(ctx context.Context, options *Options) (*models.ScrubberResp, errors.Error)
GetScrubber gets a list of OAC and SIC codes based on the request options contain headers and a query
func (*Client) Health ¶
func (cli *Client) Health() *healthcheck.Client
Health returns the underlying Healthcheck Client for this Scrubber API client
type Clienter ¶
type Clienter interface { Checker(ctx context.Context, check *health.CheckState) error GetScrubber(ctx context.Context, options *Options) (*models.ScrubberResp, errors.Error) Health() *healthcheck.Client URL() string }
Clienter interface for scrubber API client
Click to show internal directories.
Click to hide internal directories.