server

package
v0.0.0-...-2a08586 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertArgs

type ConvertArgs struct {
	To        string                   `json:"to"`
	Fetcher   wkhtmltox.FetcherOptions `json:"fetcher"`
	Converter json.RawMessage          `json:"converter"`
	Template  string                   `json:"template"`
}

type ConvertData

type ConvertData struct {
	Data []byte `json:"data"`
}

type ConvertResponse

type ConvertResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Result  interface{} `json:"result"`
}

type RespHelper

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

func (*RespHelper) Hold

func (p *RespHelper) Hold(v interface{}) error

func (*RespHelper) Holding

func (p *RespHelper) Holding() bool

func (*RespHelper) SetHeader

func (p *RespHelper) SetHeader(key, value interface{}) error

func (*RespHelper) Write

func (p *RespHelper) Write(data []byte) error

func (*RespHelper) WriteHeader

func (p *RespHelper) WriteHeader(code interface{}) error

type TemplateArgs

type TemplateArgs struct {
	To string
	ConvertResponse
	Response *RespHelper
}

type WKHtmlToXServer

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

func New

func New(conf config.Configuration) (srv *WKHtmlToXServer, err error)

func (*WKHtmlToXServer) Run

func (p *WKHtmlToXServer) Run() (err error)

Jump to

Keyboard shortcuts

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