render

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: MIT Imports: 17 Imported by: 0

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