session

package
v0.0.0-...-2589023 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSession

func AddSession(s *Session)

func GetAliveSessionIds

func GetAliveSessionIds() []string

func RemoveSession

func RemoveSession(s *Session)

func RemoveSessionById

func RemoveSessionById(id string)

Types

type Session

type Session struct {
	*model.Session
	// contains filtered or unexported fields
}

func GetSessionById

func GetSessionById(id string) (s *Session, ok bool)

func GetSessions

func GetSessions() []*Session

func NewSession

func NewSession(s *model.Session, taskFunc TaskFunc) *Session

func (*Session) HandleTask

func (s *Session) HandleTask(task *model.TerminalTask) error

type TaskFunc

type TaskFunc func(task *model.TerminalTask) error

Jump to

Keyboard shortcuts

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