Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrInvalidRendererResponse ¶
type ErrInvalidRendererResponse struct {
// contains filtered or unexported fields
}
ErrInvalidRendererResponse is returned when the renderer service does not respond with a status 200
func (ErrInvalidRendererResponse) Code ¶
func (e ErrInvalidRendererResponse) Code() int
Code returns the status code received from renderer if an error is returned
func (ErrInvalidRendererResponse) Error ¶
func (e ErrInvalidRendererResponse) Error() string
Error should be called by the user to print out the stringified version of the error
type Renderer ¶
type Renderer struct {
HcCli *healthcheck.Client
}
Renderer represents a renderer client to interact with the dp-frontend-renderer
func NewWithHealthClient ¶
func NewWithHealthClient(hcCli *healthcheck.Client) *Renderer
NewWithHealthClient creates a new instance of Renderer, reusing the URL and Clienter from the provided health check client.
Click to show internal directories.
Click to hide internal directories.