articles

package
v2.171.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bulletin

type Bulletin = zebedee.Bulletin

Bulletin holds the response body containing a bulletin

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

func NewAPIClient(articlesAPIURL string) *Client

NewAPIClient creates a new instance of ArticlesApi Client with a given article api url

func NewWithHealthClient

func NewWithHealthClient(hcCli *health.Client) *Client

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

func (c *Client) HealthClient() *health.Client

HealthClient returns the underlying Healthcheck Client for this articles API client

func (*Client) URL

func (c *Client) URL() string

URL returns the URL used by this client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL