Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConvertArgs ¶
type ConvertArgs struct { Fetcher *pandoc.FetcherOptions `json:"fetcher"` Converter *pandoc.ConvertOptions `json:"converter"` Template string `json:"template"` }
type ConvertData ¶
type ConvertData struct {
Data []byte `json:"data"`
}
type ConvertResponse ¶
type PandocServer ¶
type PandocServer struct {
// contains filtered or unexported fields
}
func New ¶
func New(conf config.Configuration) (srv *PandocServer, err error)
func (*PandocServer) Run ¶
func (p *PandocServer) Run() (err error)
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 { From string To string ConvertResponse Response *RespHelper }
Click to show internal directories.
Click to hide internal directories.