recordint

package
v0.0.0-...-a6e4c85 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package recordint provides internal record types that are passed between resh components

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collect

type Collect struct {
	// record merging
	SessionID string
	Shlvl     int
	// session watching
	SessionPID int
	Shell      string

	Rec record.V1
}

type Postcollect

type Postcollect struct {
	// record merging
	SessionID string
	Shlvl     int
	// session watching
	SessionPID int

	RecordID string
	ExitCode int
	Duration float64
}

type SearchApp

type SearchApp struct {
	IsRaw     bool
	SessionID string
	DeviceID  string

	CmdLine         string
	Host            string
	Pwd             string
	Home            string // helps us to collapse /home/user to tilde
	GitOriginRemote string
	ExitCode        int

	Time float64

	// file index
	Idx int
}

SearchApp record used for sending records to RESH-CLI

func NewSearchApp

func NewSearchApp(sugar *zap.SugaredLogger, r *record.V1) SearchApp

The error handling here could be better

func NewSearchAppFromCmdLine

func NewSearchAppFromCmdLine(cmdLine string) SearchApp

type SessionInit

type SessionInit struct {
	// record merging
	SessionID string
	Shlvl     int
	// session watching
	SessionPID int
}

Jump to

Keyboard shortcuts

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