crash

package
v1.31.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error = errs.Class("crashes service")

Error is a default error type for crash collect Service.

Functions

This section is empty.

Types

type Config

type Config struct {
	StoringDir string `help:"directory to store crash reports" default:""`
}

Config contains configurable values for crash collect service.

type Endpoint

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

Endpoint is an drpc controller for receiving crashes.

func NewEndpoint

func NewEndpoint(log *zap.Logger, crashes *Service) *Endpoint

NewEndpoint is a constructor for Endpoint.

func (*Endpoint) Report

Report is an drpc endpoint for receiving crashes.

type Service

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

Service exposes all crash-collect business logic.

architecture: service

func NewService

func NewService(config Config) *Service

NewService is an constructor for Service.

func (*Service) Report

func (s *Service) Report(nodeID storj.NodeID, gzippedPanic []byte) error

Report receives report from crash-report client and saves it into .gz file.

Jump to

Keyboard shortcuts

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