Documentation
¶
Index ¶
- Constants
- type ConsoleSession
- func (o *ConsoleSession) Close()
- func (o *ConsoleSession) Command(command string) (string, error)
- func (o *ConsoleSession) Connect() error
- func (o *ConsoleSession) GetId() string
- func (o *ConsoleSession) GetType() session.SessionType
- func (o *ConsoleSession) IsClose() bool
- func (o *ConsoleSession) Ping() bool
- type TelnetSession
- func (o *TelnetSession) Close()
- func (o *TelnetSession) Command(command string) (string, error)
- func (o *TelnetSession) Connect() error
- func (o *TelnetSession) GetId() string
- func (o *TelnetSession) GetType() session.SessionType
- func (o *TelnetSession) IsClose() bool
- func (o *TelnetSession) Ping() bool
Constants ¶
View Source
const ( PingCommand = "\n" EmptyCommandMsg = "command is empty string" CommandArgsSeparator = " " )
View Source
const (
ContinueCommand = " "
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleSession ¶
type ConsoleSession struct {
// contains filtered or unexported fields
}
func NewConsoleSession ¶
func NewConsoleSession(idGenerator *generatorid.IDGenerator, timeoutSec int) (*ConsoleSession, error)
func (*ConsoleSession) Close ¶
func (o *ConsoleSession) Close()
func (*ConsoleSession) Connect ¶
func (o *ConsoleSession) Connect() error
func (*ConsoleSession) GetId ¶
func (o *ConsoleSession) GetId() string
func (*ConsoleSession) GetType ¶
func (o *ConsoleSession) GetType() session.SessionType
func (*ConsoleSession) IsClose ¶
func (o *ConsoleSession) IsClose() bool
func (*ConsoleSession) Ping ¶
func (o *ConsoleSession) Ping() bool
type TelnetSession ¶
type TelnetSession struct {
// contains filtered or unexported fields
}
TODO: remove channels
func NewTelnetSession ¶
func NewTelnetSession(idGenerator *generatorid.IDGenerator, timeoutSec int, requestData model.ConnectTelnetRequest) (*TelnetSession, error)
func (*TelnetSession) Close ¶
func (o *TelnetSession) Close()
func (*TelnetSession) Connect ¶
func (o *TelnetSession) Connect() error
func (*TelnetSession) GetId ¶
func (o *TelnetSession) GetId() string
func (*TelnetSession) GetType ¶
func (o *TelnetSession) GetType() session.SessionType
func (*TelnetSession) IsClose ¶
func (o *TelnetSession) IsClose() bool
func (*TelnetSession) Ping ¶
func (o *TelnetSession) Ping() bool
Click to show internal directories.
Click to hide internal directories.