Versions in this module Expand all Collapse all v0 v0.7.6 Jun 15, 2024 Changes in this version + const DefaultMaxHistoryItems + const HistoryCols + const HistoryQueryChunkSize + func GetLastHistoryLineNum(ctx context.Context, screenId string) (int, error) + func GetLineCmdsFromHistoryItems(ctx context.Context, historyItems []*HistoryItemType) ([]*sstore.LineType, []*sstore.CmdType, error) + func InsertHistoryItem(ctx context.Context, hitem *HistoryItemType) error + func PurgeHistoryByIds(ctx context.Context, historyIds []string) error + type HistoryInfoType struct + HistoryType string + Items []*HistoryItemType + ScreenId string + SessionId string + Show bool + func (HistoryInfoType) GetType() string + type HistoryItemType struct + CmdStr string + DurationMs *int64 + ExitCode *int64 + FeState sstore.FeStateType + HadError bool + HistoryId string + HistoryNum string + IsMetaCmd bool + LineId string + LineNum int64 + Remote sstore.RemotePtrType + Remove bool + ScreenId string + SessionId string + Status string + Tags map[string]bool + Ts int64 + UserId string + func GetHistoryItemByLineNum(ctx context.Context, screenId string, lineNum int) (*HistoryItemType, error) + func (h *HistoryItemType) FromMap(m map[string]interface{}) bool + func (h *HistoryItemType) ToMap() map[string]interface{} + type HistoryQueryOpts struct + FilterFn func(*HistoryItemType) bool + FromTs int64 + MaxItems int + NoMeta bool + Offset int + RawOffset int + RemoteId string + ScreenId string + SearchText string + SessionId string + type HistoryQueryResult struct + HasMore bool + Items []*HistoryItemType + MaxItems int + NextRawOffset int + Offset int + RawOffset int + func GetHistoryItems(ctx context.Context, opts HistoryQueryOpts) (*HistoryQueryResult, error) + type HistoryViewData struct + Cmds []*sstore.CmdType + HasMore bool + Items []*HistoryItemType + Lines []*sstore.LineType + NextRawOffset int + Offset int + RawOffset int