render

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App of package

func New

func New(mjmlApp *mjml.App, mailjetApp *mailjet.App) *App

New creates new App

func (App) Handler

func (a App) Handler() http.Handler

Handler for Render request. Should be use with net/http

type ResponseWriter added in v1.0.1

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

ResponseWriter implements http.ResponseWriter by storing content in memory

func CreateWriter added in v1.0.1

func CreateWriter() *ResponseWriter

CreateWriter create ResponseWriter

func (*ResponseWriter) Content added in v1.0.1

func (rw *ResponseWriter) Content() *bytes.Buffer

Content return current contant buffer

func (*ResponseWriter) Header added in v1.0.1

func (rw *ResponseWriter) Header() http.Header

Header cf. https://golang.org/pkg/net/http/#ResponseWriter

func (*ResponseWriter) SetStatus added in v1.0.1

func (rw *ResponseWriter) SetStatus(status int)

SetStatus set current writer status

func (*ResponseWriter) Status added in v1.0.1

func (rw *ResponseWriter) Status() int

Status return current writer status

func (*ResponseWriter) Write added in v1.0.1

func (rw *ResponseWriter) Write(content []byte) (int, error)

Write cf. https://golang.org/pkg/net/http/#ResponseWriter

func (*ResponseWriter) WriteHeader added in v1.0.1

func (rw *ResponseWriter) WriteHeader(status int)

WriteHeader cf. https://golang.org/pkg/net/http/#ResponseWriter

func (*ResponseWriter) WriteResponse added in v1.0.1

func (rw *ResponseWriter) WriteResponse(w http.ResponseWriter) (int, error)

WriteResponse write memory content to real http ResponseWriter

Jump to

Keyboard shortcuts

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