Documentation ¶
Overview ¶
Package frontend provides a HTTP server that accepts input for symbolization in various formats and returns the symbolized output.
Index ¶
- Variables
- func SetFilesPath(p string)
- func SetHomePageStatus(status []string)
- type Handler
- func (h *Handler) CacheStatus() string
- func (h *Handler) Init(supplier breakpad.Supplier)
- func (h *Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
- func (h *Handler) SetAnnotatedFrameService(s breakpad.AnnotatedFrameService)
- func (h *Handler) SetModuleInfoService(s breakpad.ModuleInfoService)
Constants ¶
This section is empty.
Variables ¶
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 ¶
RegisterHandlers adds the frontend endpoints to the provided ServeMux and returns the Handler state. SetFilesPath should be called before this.
func (*Handler) CacheStatus ¶
CacheStatus returns a HTML fragment that displays the current status of the symbol cache.
func (*Handler) Init ¶
Init sets the breakpad supplier to use. This should be called before starting the server.
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.