gotestweb

package
v0.0.0-...-7dbd9af Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle() error

Handle adds a http.Handle for / serving the gotest-web js application

func HandleLive

func HandleLive() io.WriteCloser

HandleLive adds a websocket http.Handle for /live serving the test json written in the returned WriteCloser.

func RiceBox

func RiceBox() (*rice.Box, error)

RiceBox returns the rice.Box containing GoTestWeb

func WriteIndex

func WriteIndex(w io.Writer, data IndexData)

WriteIndex customize the index with given parameters and outputs it

Types

type IndexData

type IndexData struct {
	File         string
	Asciicast    string
	Scriptreplay string
	Summary      bool
	AppPrefix    string
	UseCDN       bool
}

IndexData group the options for rendering the Index template

Jump to

Keyboard shortcuts

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