crashes

package
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package crashes handle sending the crash logs to the server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrashSender

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

CrashSender handles sending of crash logs to the server

func New

func New(logger hclog.Logger, fsconf fsconf.Locs, sendEvent func(ctx context.Context, ev datamodel.Model) error) *CrashSender

New creates CrashSender sendEvent is the function that send the model to backend. It also has to append common device info.

func (*CrashSender) Send

func (s *CrashSender) Send() error

Send check the filesystem for crash logs and send all that are found. Only returns erros in case it was not possible to read the crash dir.

Jump to

Keyboard shortcuts

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