Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogHandlerFunc ¶
func LogHandlerFunc(next http.HandlerFunc) http.HandlerFunc
LogHandlerFunc logs request/response information.
Types ¶
type Error ¶
type Error struct {
Error string `json:"error"`
}
Error is the api representation of an error.
type Option ¶
type Option func(*options)
Option is used to inject dependencies into a Server on creation.
type ResponseInspectingWriter ¶
type ResponseInspectingWriter struct { http.ResponseWriter Status int }
ResponseInspectingWriter is an http.ResponseWriter that captures response info.
func (*ResponseInspectingWriter) Write ¶
func (w *ResponseInspectingWriter) Write(p []byte) (int, error)
Write wraps the method for writing response bodies..
func (*ResponseInspectingWriter) WriteHeader ¶
func (w *ResponseInspectingWriter) WriteHeader(s int)
WriteHeader wraps the method capturing the response status code.
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
S3 implements state storage in a s3 compatible backend.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
server present both an api for receiving e2e run result submissions as well as an html frontend for viewing run results.
func (*Server) ExecuteTemplate ¶
ExecuteTemplate runs the given template with the value
Click to show internal directories.
Click to hide internal directories.