tablerenderer

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 7 Imported by: 0

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 represents a table-renderer client

func New

func New(tableRendererURL string) *Client

New creates a new instance of Client with a given table-renderer url

func (*Client) Checker

func (c *Client) Checker(ctx context.Context, check *health.CheckState) error

Checker calls table-renderer health endpoint and returns a check object to the caller.

func (*Client) PostBody

func (c *Client) PostBody(ctx context.Context, format string, body []byte) (resp *http.Response, err error)

type ErrInvalidTableRendererResponse

type ErrInvalidTableRendererResponse struct {
	// contains filtered or unexported fields
}

ErrInvalidTableRendererResponse is returned when the table-renderer service does not respond with a status 200

func (ErrInvalidTableRendererResponse) Code

Code returns the status code received from table-renderer if an error is returned

func (ErrInvalidTableRendererResponse) Error

Error should be called by the user to print out the stringified version of the error

Jump to

Keyboard shortcuts

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