Documentation
¶
Index ¶
- Variables
- func CorrelationIDFromContext(ctx context.Context) string
- func WithCorrelationID(ctx context.Context, correlationID string) context.Context
- type Client
- func (c *Client) Convert(ctx context.Context, w io.Writer, content string, templateData []byte, ...) (ResponseInfo, error)
- func (c *Client) GeneratePDFFromFile(ctx context.Context, w io.Writer, content, templateFilePath string, ...) (ResponseInfo, error)
- func (c *Client) GeneratePDFFromString(ctx context.Context, w io.Writer, content, templateString string, ...) (ResponseInfo, error)
- func (c *Client) SavePDF(ctx context.Context, content, templateFilePath, outputPath string, ...) (ResponseInfo, error)
- type ConnectionError
- type HTTPError
- type MediaFile
- type NotGeneratedError
- type Option
- type ResponseInfo
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CorrelationIDFromContext ¶
CorrelationIDFromContext extracts a correlation ID previously set with WithCorrelationID. Returns an empty string if none is set.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GeneratePDFFromFile ¶
func (*Client) GeneratePDFFromString ¶
type ConnectionError ¶
func (*ConnectionError) Error ¶
func (e *ConnectionError) Error() string
func (*ConnectionError) Unwrap ¶
func (e *ConnectionError) Unwrap() error
type NotGeneratedError ¶
func (*NotGeneratedError) Error ¶
func (e *NotGeneratedError) Error() string
func (*NotGeneratedError) Unwrap ¶
func (e *NotGeneratedError) Unwrap() error
type Option ¶
func WithHTTPClient ¶
func WithInsecureSkipVerify ¶
func WithInsecureSkipVerify() Option
func WithTimeout ¶
type ResponseInfo ¶
Click to show internal directories.
Click to hide internal directories.