frontend

package
v0.0.0-...-c4863fd Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2014 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package frontend provides a HTTP server that accepts input for symbolization in various formats and returns the symbolized output.

Index

Constants

This section is empty.

Variables

View Source
var ContextForRequest = func(req *http.Request) context.Context {
	return nil
}

ContextForRequest is a function that vends a context object based on the HTTP request. This is passed to the various services defined by the interfaces in the breakpad library.

Functions

func SetFilesPath

func SetFilesPath(p string)

SetFilesPath sets the path to where the static frontend files reside on disk.

func SetHomePageStatus

func SetHomePageStatus(status []string)

SetHomePageStatus adds extra strings to the top-right corner of the main UI.

Types

type Handler

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

Type Handler stores the breakpad.Supplier and other server state.

func RegisterHandlers

func RegisterHandlers(mux *http.ServeMux) *Handler

RegisterHandlers adds the frontend endpoints to the provided ServeMux and returns the Handler state. SetFilesPath should be called before this.

func (*Handler) CacheStatus

func (h *Handler) CacheStatus() string

CacheStatus returns a HTML fragment that displays the current status of the symbol cache.

func (*Handler) Init

func (h *Handler) Init(supplier breakpad.Supplier)

Init sets the breakpad supplier to use. This should be called before starting the server.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

func (*Handler) SetAnnotatedFrameService

func (h *Handler) SetAnnotatedFrameService(s breakpad.AnnotatedFrameService)

SetAnnotatedFrameService sets the backend implementation that fetches crash report frame information. If nil, the CrashKeyParser cannot be used.

func (*Handler) SetModuleInfoService

func (h *Handler) SetModuleInfoService(s breakpad.ModuleInfoService)

SetModuleInfoService sets the backend for querying for module information. If nil, the module_info input type cannot be used.

Jump to

Keyboard shortcuts

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