Versions in this module Expand all Collapse all v0 v0.7.6 Jun 15, 2024 Changes in this version + const APITokenSentinel + const CmdLineSpecialMigration + const CmdRendererOpenAI + const CmdScreenSpecialMigration + const CmdStatusDetached + const CmdStatusDone + const CmdStatusError + const CmdStatusHangup + const CmdStatusRunning + const CmdStatusUnknown + const CmdStoreTypeScreen + const CmdStoreTypeSession + const ConnectModeAuto + const ConnectModeManual + const ConnectModeStartup + const DBFileName + const DBFileNameBackup + const DBWALFileName + const DBWALFileNameBackup + const DefaultCwd + const DefaultSessionName + const DefaultSudoTimeout + const LayoutFull + const LineNoHeight + const LineState_File + const LineState_FileUrl + const LineState_Lang + const LineState_Min + const LineState_Minimap + const LineState_Mode + const LineState_Source + const LineState_Template + const LineTypeCmd + const LineTypeOpenAI + const LineTypeText + const LocalRemoteAlias + const MainViewBookmarks + const MainViewConnections + const MainViewHistory + const MainViewSession + const MainViewSettings + const MaxLineStateSize + const MaxMigration + const MaxWebShareLineCount + const MaxWebShareScreenCount + const MigratePrimaryScreenVersion + const MigrationChunkSize + const OpenAIRoleAssistant + const OpenAIRoleSystem + const OpenAIRoleUser + const RISpecialMigration + const RemoteAuthTypeKey + const RemoteAuthTypeKeyPassword + const RemoteAuthTypeNone + const RemoteAuthTypePassword + const RemoteField_Alias + const RemoteField_Color + const RemoteField_ConnectMode + const RemoteField_SSHKey + const RemoteField_SSHPassword + const RemoteField_ShellPref + const RemoteStatus_Connected + const RemoteStatus_Connecting + const RemoteStatus_Disconnected + const RemoteStatus_Error + const RemoteTypeOpenAI + const RemoteTypeSsh + const SSHConfigSrcTypeImport + const SSHConfigSrcTypeManual + const ScreenField_AnchorLine + const ScreenField_AnchorOffset + const ScreenField_Focus + const ScreenField_Name + const ScreenField_PTerm + const ScreenField_SelectedLine + const ScreenField_ShareName + const ScreenField_TabColor + const ScreenField_TabIcon + const ScreenFocusCmd + const ScreenFocusInput + const ShareModeLocal + const ShareModeWeb + const ShellTypePref_Detect + const UpdateType_CmdDurationMs + const UpdateType_CmdExitCode + const UpdateType_CmdRtnState + const UpdateType_CmdStatus + const UpdateType_CmdTermOpts + const UpdateType_LineContentHeight + const UpdateType_LineDel + const UpdateType_LineNew + const UpdateType_LineRenderer + const UpdateType_LineState + const UpdateType_PtyPos + const UpdateType_ScreenDel + const UpdateType_ScreenName + const UpdateType_ScreenNew + const UpdateType_ScreenSelectedLine + var MemLock *sync.Mutex = &sync.Mutex + var ScreenMemStore map[string]*ScreenMemState = make(map[string]*ScreenMemState) + var WebScreenPtyPosDelIntent = make(map[string]bool) + var WebScreenPtyPosLock = &sync.Mutex + func AddInfoMsgUpdateError(update *scbus.ModelUpdatePacketType, errStr string) + func AddLineUpdate(update *scbus.ModelUpdatePacketType, newLine *LineType, newCmd *CmdType) + func AddScreenUpdate(update *scbus.ModelUpdatePacketType, newScreen *ScreenType) + func AppendToCmdPtyBlob(ctx context.Context, screenId string, lineId string, data []byte, pos int64) (*scbus.PtyDataUpdatePacketType, error) + func ArchiveScreen(ctx context.Context, sessionId string, screenId string) (scbus.UpdatePacket, error) + func ArchiveScreenLines(ctx context.Context, screenId string) (*scbus.ModelUpdatePacketType, error) + func ArchiveSession(ctx context.Context, sessionId string) (*scbus.ModelUpdatePacketType, error) + func ClearCmdPtyFile(ctx context.Context, screenId string, lineId string) error + func CloseDB() + func CountScreenLines(ctx context.Context, screenId string) (int, error) + func CountScreenUpdates(ctx context.Context) (int, error) + func CountScreenWebShares(ctx context.Context) (int, error) + func CreateCmdPtyFile(ctx context.Context, screenId string, lineId string, maxSize int64) error + func DeleteLinesByIds(ctx context.Context, screenId string, lineIds []string) error + func DeletePtyOutFile(ctx context.Context, screenId string, lineId string) error + func DeleteScreen(ctx context.Context, screenId string, sessionDel bool, ...) (*scbus.ModelUpdatePacketType, error) + func DeleteScreenDir(ctx context.Context, screenId string) error + func DeleteScreenLines(ctx context.Context, screenId string) (*scbus.ModelUpdatePacketType, error) + func DeleteSession(ctx context.Context, sessionId string) (scbus.UpdatePacket, error) + func DeleteWebPtyPos(ctx context.Context, screenId string, lineId string) error + func EnsureLocalRemote(ctx context.Context) error + func FeStateFromShellState(state *packet.ShellState) map[string]string + func FindLineIdByArg(ctx context.Context, screenId string, lineArg string) (string, error) + func FullSessionDiskSize() (map[string]SessionDiskSizeType, error) + func GetActiveSessionId(ctx context.Context) (string, error) + func GetAllImportedRemotes(ctx context.Context) (map[string]*RemoteType, error) + func GetCurStateDiffFromPtr(ctx context.Context, ssPtr *packet.ShellStatePtr) (*packet.ShellStateDiff, error) + func GetCurrentIndicatorState() ([]*ScreenStatusIndicatorType, []*ScreenNumRunningCommandsType) + func GetDB(ctx context.Context) (*sqlx.DB, error) + func GetDBBackupName() string + func GetDBName() string + func GetDBVersion(ctx context.Context) (int, error) + func GetDBWALBackupName() string + func GetDBWALName() string + func GetFirstSessionId(ctx context.Context) (string, error) + func GetFullState(ctx context.Context, ssPtr packet.ShellStatePtr) (*packet.ShellState, error) + func GetLineCmdByLineId(ctx context.Context, screenId string, lineId string) (*LineType, *CmdType, error) + func GetRemoteActiveShells(ctx context.Context, remoteId string) ([]string, error) + func GetRemoteState(ctx context.Context, sessionId string, screenId string, ...) (*packet.ShellState, *packet.ShellStatePtr, error) + func GetRemoteStatePtr(ctx context.Context, sessionId string, screenId string, ...) (*packet.ShellStatePtr, error) + func GetScreenSelectedLineId(ctx context.Context, screenId string) (string, error) + func GetSessionCount(ctx context.Context) (int, error) + func GetStateBase(ctx context.Context, baseHash string) (*packet.ShellState, error) + func GetStateBaseVersion(ctx context.Context, baseHash string) (string, error) + func GetStateDiff(ctx context.Context, diffHash string) (*packet.ShellStateDiff, error) + func GetWebPtyPos(ctx context.Context, screenId string, lineId string) (int64, error) + func GoDeleteScreenDirs(screenIds ...string) + func HangupAllRunningCmds(ctx context.Context) error + func IncrementNumRunningCmds(screenId string, delta int) + func IncrementNumRunningCmds_Update(update *scbus.ModelUpdatePacketType, screenId string, delta int) + func InfoMsgUpdate(infoMsgFmt string, args ...interface{}) *scbus.ModelUpdatePacketType + func InsertLine(ctx context.Context, line *LineType, cmd *CmdType) error + func InsertScreen(ctx context.Context, sessionId string, origScreenName string, ...) (*scbus.ModelUpdatePacketType, error) + func InsertSessionWithName(ctx context.Context, sessionName string, activate bool) (*scbus.ModelUpdatePacketType, string, string, error) + func IsValidConnectMode(mode string) bool + func MakeMigrate() (*migrate.Migrate, error) + func MaybeInsertPtyPosUpdate(ctx context.Context, screenId string, lineId string) error + func MigrateCommandOpts(opts []string) error + func MigrateDown() error + func MigrateGoto(n uint) error + func MigratePrintVersion() error + func MigrateUp(targetVersion uint) error + func MigrateUpStep(m *migrate.Migrate, newVersion uint) error + func MigrateVersion(m *migrate.Migrate) (uint, bool, error) + func NotifyUpdateWriter() + func NumScreens(ctx context.Context) (int, error) + func NumSessions(ctx context.Context) (int, error) + func ReIndexSessions(ctx context.Context, sessionId string, newIndex int) error + func ReInitFocus(ctx context.Context) error + func ReadFullPtyOutFile(ctx context.Context, screenId string, lineId string) (int64, []byte, error) + func ReadPtyOutFile(ctx context.Context, screenId string, lineId string, offset int64, ...) (int64, []byte, error) + func RemoveScreenUpdate(ctx context.Context, updateId int64) error + func RemoveScreenUpdates(ctx context.Context, updateIds []int64) error + func ResetStatusIndicator(screenId string) error + func ResetStatusIndicator_Update(update *scbus.ModelUpdatePacketType, screenId string) error + func RunMigration13() error + func RunMigration20() error + func RunMigration30() error + func ScreenMemAddCmdInfoChatMessage(screenId string, msg *packet.OpenAICmdInfoChatMessage) + func ScreenMemClearCmdInfoChat(screenId string) + func ScreenMemGetCmdInfoMessageCount(screenId string) int + func ScreenMemIncrementNumRunningCommands(screenId string, delta int) int + func ScreenMemInitCmdInfoChat(screenId string) + func ScreenMemSetCmdInputText(screenId string, sp utilfn.StrWithPos, seqNum int) + func ScreenMemSetIndicatorLevel(screenId string, level StatusIndicatorLevel) + func ScreenMemUpdateCmdInfoChatMessage(screenId string, messageID int, msg *packet.OpenAICmdInfoChatMessage) error + func ScreenUpdateViewOpts(ctx context.Context, screenId string, viewOpts ScreenViewOptsType) error + func ScreenWebShareStart(ctx context.Context, screenId string, shareOpts ScreenWebShareOpts) error + func ScreenWebShareStop(ctx context.Context, screenId string) error + func SetActiveSessionId(ctx context.Context, sessionId string) error + func SetClientOpts(ctx context.Context, clientOpts ClientOptsType) error + func SetLineArchivedById(ctx context.Context, screenId string, lineId string, archived bool) error + func SetReleaseInfo(ctx context.Context, releaseInfo ReleaseInfoType) error + func SetScreenIdx(ctx context.Context, sessionId string, screenId string, newScreenIdx int) error + func SetScreenName(ctx context.Context, sessionId string, screenId string, name string) error + func SetSessionName(ctx context.Context, sessionId string, name string) error + func SetStatusIndicatorLevel(ctx context.Context, screenId string, level StatusIndicatorLevel, force bool) error + func SetStatusIndicatorLevel_Update(ctx context.Context, update *scbus.ModelUpdatePacketType, screenId string, ...) error + func SetWebPtyPos(ctx context.Context, screenId string, lineId string, ptyPos int64) error + func SetWinSize(ctx context.Context, winSize ClientWinSizeType) error + func StatCmdPtyFile(ctx context.Context, screenId string, lineId string) (*cirfile.Stat, error) + func StoreStateBase(ctx context.Context, state *packet.ShellState) error + func StoreStateDiff(ctx context.Context, diff *packet.ShellStateDiff) error + func SwitchScreenById(ctx context.Context, sessionId string, screenId string) (*scbus.ModelUpdatePacketType, error) + func TryMigrateUp() error + func UnArchiveScreen(ctx context.Context, sessionId string, screenId string) error + func UnArchiveSession(ctx context.Context, sessionId string, activate bool) (*scbus.ModelUpdatePacketType, error) + func UpdateClientFeOpts(ctx context.Context, feOpts FeOptsType) error + func UpdateClientOpenAIOpts(ctx context.Context, aiOpts OpenAIOptsType) error + func UpdateCmdDoneInfo(ctx context.Context, update *scbus.ModelUpdatePacketType, ck base.CommandKey, ...) error + func UpdateCmdForRestart(ctx context.Context, ck base.CommandKey, ts int64, cmdPid int, remotePid int, ...) error + func UpdateCmdRtnState(ctx context.Context, ck base.CommandKey, statePtr packet.ShellStatePtr) error + func UpdateCmdStartInfo(ctx context.Context, ck base.CommandKey, cmdPid int, waveshellPid int) error + func UpdateCmdTermOpts(ctx context.Context, screenId string, lineId string, termOpts TermOpts) error + func UpdateCurRemote(ctx context.Context, screenId string, remotePtr RemotePtrType) error + func UpdateLineHeight(ctx context.Context, screenId string, lineId string, heightVal int) error + func UpdateLineRenderer(ctx context.Context, screenId string, lineId string, renderer string) error + func UpdateLineStar(ctx context.Context, screenId string, lineId string, starVal int) error + func UpdateLineState(ctx context.Context, screenId string, lineId string, lineState map[string]any) error + func UpdateRemoteStateVars(ctx context.Context, remoteId string, stateVars map[string]string) error + func UpdateWithAddNewOpenAICmdInfoPacket(ctx context.Context, screenId string, pk *packet.OpenAICmdInfoChatMessage) *scbus.ModelUpdatePacketType + func UpdateWithClearOpenAICmdInfo(screenId string) *scbus.ModelUpdatePacketType + func UpdateWithCurrentOpenAICmdInfoChat(screenId string, update *scbus.ModelUpdatePacketType) *scbus.ModelUpdatePacketType + func UpdateWithUpdateOpenAICmdInfoPacket(ctx context.Context, screenId string, messageID int, ...) (*scbus.ModelUpdatePacketType, error) + func UpdateWriterCheckMoreData() + func UpsertRemote(ctx context.Context, r *RemoteType) error + func WithTx(ctx context.Context, fn func(tx *TxWrap) error) error + func WithTxRtn3[RT1 any, RT2 any](ctx context.Context, fn func(tx *TxWrap) (RT1, RT2, error)) (RT1, RT2, error) + func WithTxRtn[RT any](ctx context.Context, fn func(tx *TxWrap) (RT, error)) (RT, error) + type ActiveSessionIdUpdate string + func (ActiveSessionIdUpdate) GetType() string + type AlertMessageType struct + Confirm bool + Markdown bool + Message string + Title string + func (AlertMessageType) GetType() string + type ClearInfoUpdate bool + func (ClearInfoUpdate) GetType() string + type ClientData struct + ActiveSessionId string + ClientId string + ClientOpts ClientOptsType + CmdStoreType string + DBVersion int + FeOpts FeOptsType + OpenAIOpts *OpenAIOptsType + ReleaseInfo ReleaseInfoType + UserId string + UserPrivateKey *ecdsa.PrivateKey + UserPrivateKeyBytes []byte + UserPublicKey *ecdsa.PublicKey + UserPublicKeyBytes []byte + WinSize ClientWinSizeType + func EnsureClientData(ctx context.Context) (*ClientData, error) + func (ClientData) GetType() string + func (ClientData) UseDBMap() + func (cdata *ClientData) Clean() *ClientData + type ClientOptsType struct + AcceptedTos int64 + AutocompleteEnabled bool + ConfirmFlags map[string]bool + GlobalShortcut string + GlobalShortcutEnabled bool + MainSidebar *SidebarValueType + NoReleaseCheck bool + NoTelemetry bool + RightSidebar *SidebarValueType + WebGL bool + type ClientWinSizeType struct + FullScreen bool + Height int + Left int + Top int + Width int + type CmdDoneDataValues struct + DurationMs int64 + ExitCode int + Ts int64 + type CmdLineUpdate utilfn.StrWithPos + func (CmdLineUpdate) GetType() string + type CmdPtr struct + LineId string + ScreenId string + type CmdType struct + CmdPid int + CmdStr string + DoneTs int64 + DurationMs int + ExitCode int + FeState map[string]string + LineId string + OrigTermOpts TermOpts + RawCmdStr string + Remote RemotePtrType + RemotePid int + Remove bool + RestartTs int64 + Restarted bool + RtnState bool + RtnStatePtr packet.ShellStatePtr + RunOut []packet.PacketType + ScreenId string + StatePtr packet.ShellStatePtr + Status string + TermOpts TermOpts + func GetCmdByScreenId(ctx context.Context, screenId string, lineId string) (*CmdType, error) + func GetRunningScreenCmds(ctx context.Context, screenId string) ([]*CmdType, error) + func (CmdType) GetType() string + func (cmd *CmdType) FromMap(m map[string]interface{}) bool + func (cmd *CmdType) IsRunning() bool + func (cmd *CmdType) ToMap() map[string]interface{} + type ConnectUpdate struct + ActiveSessionId string + Remotes []*RemoteRuntimeState + ScreenNumRunningCommands []*ScreenNumRunningCommandsType + ScreenStatusIndicators []*ScreenStatusIndicatorType + Screens []*ScreenType + Sessions []*SessionType + TermThemes *configstore.ConfigReturn + func GetConnectUpdate(ctx context.Context) (*ConnectUpdate, error) + func (ConnectUpdate) GetType() string + type FeOptsType struct + NoSudoPwClearOnSleep bool + SudoPwStore string + SudoPwTimeout int + SudoPwTimeoutMs int + TermFontFamily string + TermFontSize int + TermThemeSettings map[string]string + Theme string + type FeStateType map[string]string + type InfoMsgType struct + InfoComps []string + InfoCompsMore bool + InfoError string + InfoErrorCode string + InfoLines []string + InfoMsg string + InfoMsgHtml bool + InfoTitle string + TimeoutMs int64 + WebShareLink bool + func (InfoMsgType) GetType() string + type InteractiveUpdate bool + func (InteractiveUpdate) GetType() string + type LayoutType struct + Bottom string + Float bool + Height string + Left string + Parent string + Right string + Top string + Type string + Width string + ZIndex int64 + func (l *LayoutType) Scan(val interface{}) error + func (l LayoutType) Value() (driver.Value, error) + type LineType struct + Archived bool + ContentHeight int64 + Ephemeral bool + LineId string + LineLocal bool + LineNum int64 + LineNumTemp bool + LineState map[string]any + LineType string + Remove bool + Renderer string + ScreenId string + Star bool + Text string + Ts int64 + UserId string + func AddCmdLine(ctx context.Context, screenId string, userId string, cmd *CmdType, ...) (*LineType, error) + func AddCommentLine(ctx context.Context, screenId string, userId string, commentText string) (*LineType, error) + func AddOpenAILine(ctx context.Context, screenId string, userId string, cmd *CmdType) (*LineType, error) + func GetLineById(ctx context.Context, screenId string, lineId string) (*LineType, error) + func (LineType) UseDBMap() + type LineUpdate struct + Cmd CmdType + Line LineType + func (LineUpdate) GetType() string + type OpenAIChoiceType struct + FinishReason string + Index int + Text string + type OpenAICmdInfoChatStore struct + MessageCount int + Messages []*packet.OpenAICmdInfoChatMessage + func ScreenMemDeepCopyCmdInfoChatStore(store *OpenAICmdInfoChatStore) *OpenAICmdInfoChatStore + func ScreenMemGetCmdInfoChat(screenId string) *OpenAICmdInfoChatStore + type OpenAICmdInfoChatUpdate []*packet.OpenAICmdInfoChatMessage + func (OpenAICmdInfoChatUpdate) GetType() string + type OpenAIOptsType struct + APIToken string + BaseURL string + MaxChoices int + MaxTokens int + Model string + Timeout int + type OpenAIResponse struct + Choices []OpenAIChoiceType + Created int64 + Model string + Usage *OpenAIUsage + type OpenAIUsage struct + CompletionTokens int + PromptTokens int + TotalTokens int + type PowerMonitorEventType struct + Status string + type ReleaseInfoType struct + LatestVersion string + type RemoteEditType struct + ErrorStr string + HasPassword bool + InfoStr string + KeyStr string + RemoteEdit bool + RemoteId string + type RemoteInstance struct + FeState map[string]string + Name string + RIId string + RemoteId string + RemoteOwnerId string + Remove bool + ScreenId string + SessionId string + ShellType string + StateBaseHash string + StateDiffHashArr []string + func GetRIsForScreen(ctx context.Context, sessionId string, screenId string) ([]*RemoteInstance, error) + func GetRemoteInstance(ctx context.Context, sessionId string, screenId string, ...) (*RemoteInstance, error) + func ScreenReset(ctx context.Context, screenId string) ([]*RemoteInstance, error) + func UpdateRemoteState(ctx context.Context, sessionId string, screenId string, ...) (*RemoteInstance, error) + func (ri *RemoteInstance) FromMap(m map[string]interface{}) bool + func (ri *RemoteInstance) ToMap() map[string]interface{} + type RemoteOptsType struct + Color string + type RemotePtrType = scpacket.RemotePtrType + type RemoteRuntimeState struct + Archived bool + AuthType string + AutoInstall bool + CanComplete bool + ConnectMode string + ConnectTimeout int + CountdownActive bool + DefaultShellType string + ErrorStr string + InstallErrorStr string + InstallStatus string + IsSudo bool + Local bool + NeedsWaveshellUpgrade bool + NoInitPk bool + RemoteAlias string + RemoteCanonicalName string + RemoteId string + RemoteIdx int64 + RemoteOpts *RemoteOptsType + RemoteType string + RemoteVars map[string]string + SSHConfigSrc string + ShellPref string + Status string + UName string + WaitingForPassword bool + WaveshellVersion string + func (RemoteRuntimeState) GetType() string + func (state RemoteRuntimeState) ExpandHomeDir(pathStr string) (string, error) + func (state RemoteRuntimeState) GetBaseDisplayName() string + func (state RemoteRuntimeState) GetDisplayName(rptr *RemotePtrType) string + func (state RemoteRuntimeState) IsConnected() bool + type RemoteType struct + Archived bool + AutoInstall bool + ConnectMode string + LastConnectTs int64 + Local bool + OpenAIOpts *OpenAIOptsType + RemoteAlias string + RemoteCanonicalName string + RemoteHost string + RemoteId string + RemoteIdx int64 + RemoteOpts *RemoteOptsType + RemoteType string + RemoteUser string + SSHConfigSrc string + SSHOpts *SSHOpts + ShellPref string + StateVars map[string]string + func GetAllRemotes(ctx context.Context) ([]*RemoteType, error) + func GetLocalRemote(ctx context.Context) (*RemoteType, error) + func GetRemoteByAlias(ctx context.Context, alias string) (*RemoteType, error) + func GetRemoteByCanonicalName(ctx context.Context, cname string) (*RemoteType, error) + func GetRemoteById(ctx context.Context, remoteId string) (*RemoteType, error) + func UpdateRemote(ctx context.Context, remoteId string, editMap map[string]interface{}) (*RemoteType, error) + func (r *RemoteType) FromMap(m map[string]interface{}) bool + func (r *RemoteType) GetName() string + func (r *RemoteType) IsLocal() bool + func (r *RemoteType) IsSudo() bool + func (r *RemoteType) ToMap() map[string]interface{} + type RemoteViewType struct + PtyRemoteId string + RemoteEdit *RemoteEditType + RemoteShowAll bool + func (RemoteViewType) GetType() string + type ResolveItem struct + Hidden bool + Id string + Name string + Num int + func GetLineResolveItems(ctx context.Context, screenId string) ([]ResolveItem, error) + type SSHOpts struct + IsSudo bool + Local bool + SSHHost string + SSHIdentity string + SSHOptsStr string + SSHPassword string + SSHPort int + SSHUser string + func (opts SSHOpts) GetAuthType() string + type ScreenAnchorType struct + AnchorLine int + AnchorOffset int + type ScreenCreateOpts struct + BaseScreenId string + CopyCwd bool + CopyEnv bool + CopyRemote bool + RtnScreenId *string + func (sco ScreenCreateOpts) HasCopy() bool + type ScreenLinesType struct + Cmds []*CmdType + Lines []*LineType + ScreenId string + func GetScreenLinesById(ctx context.Context, screenId string) (*ScreenLinesType, error) + func (ScreenLinesType) GetType() string + func (ScreenLinesType) UseDBMap() + type ScreenMemState struct + AICmdInfoChat *OpenAICmdInfoChatStore + CmdInputSeqNum int + CmdInputText utilfn.StrWithPos + NumRunningCommands int + StatusIndicator StatusIndicatorLevel + func GetScreenMemState(screenId string) *ScreenMemState + type ScreenNumRunningCommandsType struct + Num int + ScreenId string + func (ScreenNumRunningCommandsType) GetType() string + type ScreenOptsType struct + PTerm string + TabColor string + TabIcon string + type ScreenSidebarOptsType struct + Open bool + SidebarLineId string + Width string + type ScreenStatusIndicatorType struct + ScreenId string + Status StatusIndicatorLevel + func (ScreenStatusIndicatorType) GetType() string + type ScreenTombstoneType struct + DeletedTs int64 + Name string + ScreenId string + ScreenOpts ScreenOptsType + SessionId string + func (ScreenTombstoneType) GetType() string + func (ScreenTombstoneType) UseDBMap() + type ScreenType struct + Anchor ScreenAnchorType + Archived bool + ArchivedTs int64 + CurRemote RemotePtrType + FocusType string + Name string + NextLineNum int64 + OwnerId string + Remove bool + ScreenId string + ScreenIdx int64 + ScreenOpts ScreenOptsType + ScreenViewOpts ScreenViewOptsType + SelectedLine int64 + SessionId string + ShareMode string + WebShareOpts *ScreenWebShareOpts + func FixupScreenSelectedLine(ctx context.Context, screenId string) (*ScreenType, error) + func GetScreenById(ctx context.Context, screenId string) (*ScreenType, error) + func GetSessionScreens(ctx context.Context, sessionId string) ([]*ScreenType, error) + func HangupCmd(ctx context.Context, ck base.CommandKey) (*ScreenType, error) + func HangupRunningCmdsByRemoteId(ctx context.Context, remoteId string) ([]*ScreenType, error) + func UpdateScreen(ctx context.Context, screenId string, editMap map[string]interface{}) (*ScreenType, error) + func UpdateScreenFocusForDoneCmd(ctx context.Context, screenId string, lineId string) (*ScreenType, error) + func (ScreenType) GetType() string + func (s *ScreenType) FromMap(m map[string]interface{}) bool + func (s *ScreenType) ToMap() map[string]interface{} + type ScreenUpdateType struct + LineId string + ScreenId string + UpdateId int64 + UpdateTs int64 + UpdateType string + func GetScreenUpdates(ctx context.Context, maxNum int) ([]*ScreenUpdateType, error) + func (ScreenUpdateType) UseDBMap() + type ScreenViewOptsType struct + Sidebar *ScreenSidebarOptsType + type ScreenWebShareOpts struct + ShareName string + ViewKey string + type SessionDiskSizeType struct + ErrorCount int + Location string + NumFiles int + TotalSize int64 + func SessionDiskSize(sessionId string) (SessionDiskSizeType, error) + type SessionStatsType struct + DiskStats SessionDiskSizeType + NumArchivedScreens int + NumCmds int + NumLines int + NumScreens int + SessionId string + func GetSessionStats(ctx context.Context, sessionId string) (*SessionStatsType, error) + type SessionTombstoneType struct + DeletedTs int64 + Name string + SessionId string + func (SessionTombstoneType) GetType() string + func (SessionTombstoneType) UseDBMap() + type SessionType struct + ActiveScreenId string + Archived bool + ArchivedTs int64 + Name string + NotifyNum int64 + Remotes []*RemoteInstance + Remove bool + SessionId string + SessionIdx int64 + ShareMode string + func GetAllSessions(ctx context.Context) ([]*SessionType, error) + func GetBareSessionById(ctx context.Context, sessionId string) (*SessionType, error) + func GetBareSessions(ctx context.Context) ([]*SessionType, error) + func GetSessionById(ctx context.Context, id string) (*SessionType, error) + func GetSessionByName(ctx context.Context, name string) (*SessionType, error) + func MakeSessionUpdateForRemote(sessionId string, ri *RemoteInstance) SessionType + func (SessionType) GetType() string + type SidebarValueType struct + Collapsed bool + Width int + type SingleConnDBGetter struct + SingleConnLock *sync.Mutex + func (dbg *SingleConnDBGetter) GetDB(ctx context.Context) (*sqlx.DB, error) + func (dbg *SingleConnDBGetter) ReleaseDB(db *sqlx.DB) + type StateBase struct + BaseHash string + Data []byte + Ts int64 + Version string + type StateDiff struct + BaseHash string + Data []byte + DiffHash string + DiffHashArr []string + Ts int64 + func (sd *StateDiff) FromMap(m map[string]interface{}) bool + func (sd *StateDiff) ToMap() map[string]interface{} + type StatusIndicatorLevel int + const StatusIndicatorLevel_Error + const StatusIndicatorLevel_None + const StatusIndicatorLevel_Output + const StatusIndicatorLevel_Success + func ScreenMemCombineIndicatorLevels(screenId string, level StatusIndicatorLevel) StatusIndicatorLevel + type TermOpts struct + Cols int64 + FlexRows bool + MaxPtySize int64 + Rows int64 + func (opts *TermOpts) Scan(val interface{}) error + func (opts TermOpts) Value() (driver.Value, error) + type TxWrap = txwrap.TxWrap