types

package
v0.0.0-...-d09d9b8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) Command

func (o *ConsoleSession) Command(command string) (string, error)

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) Command

func (o *TelnetSession) Command(command string) (string, error)

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

Jump to

Keyboard shortcuts

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