Documentation
¶
Index ¶
- Variables
- func GetFlipperPort() (string, error)
- type CLI
- func (cli *CLI) Close() error
- func (cli *CLI) Read(data []byte) (int, error)
- func (cli *CLI) ReadLine() ([]byte, error)
- func (cli *CLI) ReadUntil(needle []byte) ([]byte, bool, error)
- func (cli *CLI) ReadUntilTerminal() ([]byte, error)
- func (cli *CLI) SendCommand(command string) error
- func (cli *CLI) SendCtrlC() error
- func (cli *CLI) SetReadTimeout(timeout int)
- func (cli *CLI) SetWriteTimeout(timeout int)
- func (cli *CLI) Write(data []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CR = byte('\r')
View Source
var CRLF = []byte("\r\n")
View Source
var CTRL_C = []byte("\x03")
View Source
var ErrCommandNotSend = errors.New("unable to send command")
View Source
var ErrNoFlipperFound = errors.New("no flipper device found, consider using the --port PORT argument")
View Source
var ErrNoTerminalFound = errors.New("no terminal found")
View Source
var LF = byte('\n')
View Source
var TerminalDelimiter = []byte("\n>: ")
Functions ¶
func GetFlipperPort ¶
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
func (*CLI) ReadUntilTerminal ¶
func (*CLI) SendCommand ¶
func (*CLI) SetReadTimeout ¶
func (*CLI) SetWriteTimeout ¶
Click to show internal directories.
Click to hide internal directories.