Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an articles api client which can be used to make requests to the server. It extends the generic healthcheck Client structure.
func NewAPIClient ¶
NewAPIClient creates a new instance of ArticlesApi Client with a given article api url
func NewWithHealthClient ¶
NewWithHealthClient creates a new instance of ArticlesApi Client, reusing the URL and Clienter from the provided healthcheck client.
func (*Client) Checker ¶
func (c *Client) Checker(ctx context.Context, check *healthcheck.CheckState) error
Checker calls articles API health endpoint and returns a check object to the caller.
func (*Client) GetLegacyBulletin ¶
func (c *Client) GetLegacyBulletin(ctx context.Context, userAccessToken, collectionID, lang, uri string) (*Bulletin, error)
GetLegacyBulletin returns a legacy bulletin
func (*Client) HealthClient ¶
HealthClient returns the underlying Healthcheck Client for this articles API client
Click to show internal directories.
Click to hide internal directories.