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.
Click to show internal directories.
Click to hide internal directories.