cartoontransport

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartsTransport

type ChartsTransport struct {
	Template Interface
	Charts   *cartoon.Charts
}

func NewChartsTransport

func NewChartsTransport() *ChartsTransport

func (ChartsTransport) Execute

func (C ChartsTransport) Execute(w http.ResponseWriter, r *http.Request, v interface{})

func (ChartsTransport) Read

func (C ChartsTransport) Read(name string) ([]byte, error)

type Interface

type Interface interface {
	Execute(w http.ResponseWriter, r *http.Request, v interface{})
	Read(name string) ([]byte, error)
}

type Template

type Template struct {
	Path string
}

func (Template) Execute

func (T Template) Execute(w http.ResponseWriter, r *http.Request, v interface{})

func (Template) Read

func (T Template) Read(name string) ([]byte, error)

Jump to

Keyboard shortcuts

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