Documentation ¶
Index ¶
Constants ¶
View Source
const ( Service = "dp-feedback-api" FeedbackEndpoint = "%s/feedback" Authorization = "Authorization" BearerPrefix = "Bearer " )
package level constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
APIClient implementation of permissions.Store that gets permission data from the permissions API
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) Health ¶
func (cli *Client) Health() *healthcheck.Client
Health returns the underlying Healthcheck Client for this search API client
func (*Client) PostFeedback ¶
func (cli *Client) PostFeedback(ctx context.Context, feedback *models.Feedback, options Options) *sdkError.StatusError
PostFeedback sends the provided feedback model to the feedback API via a post call
type HTTPClient ¶
HTTPClient is the interface that defines a client for making HTTP requests
Click to show internal directories.
Click to hide internal directories.