Documentation ¶
Index ¶
- Variables
- func ConvertURLToPDF(ctx context.Context, cli *http.Client, serverURL string, args ...string) (io.ReadCloser, error)
- type Config
- type Creator
- func (creator *Creator) AddToSchema(schema *runtime.ConfigSchema) error
- func (creator *Creator) LoadConfig(ctx context.Context)
- func (creator *Creator) NotifyChange(ctx context.Context, changeType, id string, sec *conf.Section) error
- func (creator *Creator) Render(ctx context.Context, req RenderRequest) (string, error)
- func (creator *Creator) SetupAPI(grp *echo.Group)
- type RenderRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var Spec = conf.SectionSpec{ { Name: "Server", Description: "The address of the kwkhtmltopdf server.", Type: conf.StringType, Required: true, }, { Name: "AllowInsecure", Description: "Whether or not insecure TLS server certificates are accepted", Type: conf.BoolType, }, }
Functions ¶
Types ¶
type Creator ¶
type Creator struct { BaseURL string // contains filtered or unexported fields }
func NewCreator ¶
func (*Creator) AddToSchema ¶
func (creator *Creator) AddToSchema(schema *runtime.ConfigSchema) error
func (*Creator) LoadConfig ¶
func (*Creator) NotifyChange ¶
type RenderRequest ¶
type RenderRequest struct { Template string Vars interface{} }
Click to show internal directories.
Click to hide internal directories.