Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (cli *Client) Checker(ctx context.Context, check *health.CheckState) error
- func (cli *Client) CreateIndex(ctx context.Context, options Options) (*models.CreateIndexResponse, apiError.Error)
- func (cli *Client) GetReleaseCalendarEntries(ctx context.Context, options Options) (*transformer.SearchReleaseResponse, apiError.Error)
- func (cli *Client) GetSearch(ctx context.Context, options Options) (*models.SearchResponse, apiError.Error)
- func (cli *Client) Health() *healthcheck.Client
- func (cli *Client) URL() string
- type Clienter
- type Options
- type ResponseInfo
Constants ¶
View Source
const ( // List of available headers Authorization string = "Authorization" CollectionID string = "Collection-Id" )
Variables ¶
View Source
var ( // ErrGetPermissionsResponseBodyNil error used when a nil response is returned from the permissions API. ErrGetPermissionsResponseBodyNil = errors.New("error creating get permissions request http.Request required but was nil") )
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 search API Client, reusing the URL and Clienter from the provided healthcheck client
func (*Client) Checker ¶
Checker calls search api health endpoint and returns a check object to the caller
func (*Client) CreateIndex ¶
func (cli *Client) CreateIndex(ctx context.Context, options Options) (*models.CreateIndexResponse, apiError.Error)
PostSearch creates a new search index
func (*Client) GetReleaseCalendarEntries ¶
func (cli *Client) GetReleaseCalendarEntries(ctx context.Context, options Options) (*transformer.SearchReleaseResponse, apiError.Error)
GetReleaseCalendarEntries gets a list of release calendar entries based on the search request
func (*Client) GetSearch ¶
func (cli *Client) GetSearch(ctx context.Context, options Options) (*models.SearchResponse, apiError.Error)
GetSearch gets a list of search results based on the search request
func (*Client) Health ¶
func (cli *Client) Health() *healthcheck.Client
Health returns the underlying Healthcheck Client for this search API client
type Clienter ¶
type Clienter interface { Checker(ctx context.Context, check *health.CheckState) error CreateIndex(ctx context.Context, options Options) (*models.CreateIndexResponse, apiError.Error) GetReleaseCalendarEntries(ctx context.Context, options Options) (*transformer.SearchReleaseResponse, apiError.Error) GetSearch(ctx context.Context, options Options) (*models.SearchResponse, apiError.Error) Health() *healthcheck.Client URL() string }
Click to show internal directories.
Click to hide internal directories.