server

package
v0.0.0-...-7550ed1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 22 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 {
	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 ConvertResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Result  interface{} `json:"result"`
}

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
}

Jump to

Keyboard shortcuts

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