connect

package
v0.0.0-...-4ba0521 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: BSD-2-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxHistoryLines = 10000

	TCPNetwork  = "tcp"
	UnixNetwork = "unix"
)
View Source
const (
	HistoryFileName = ".tarantool_history"

	MaxLivePrefixIndent = 15
)

Variables

View Source
var (
	ControlLeftBytes  []byte
	ControlRightBytes []byte
)

Functions

func Connect

func Connect(ctx *context.Ctx, args []string) error

func Enter

func Enter(ctx *context.Ctx, args []string) error

Types

type ConnOpts

type ConnOpts struct {
	Network  string
	Address  string
	Username string
	Password string
}

type Console

type Console struct {
	// contains filtered or unexported fields
}

func NewConsole

func NewConsole(connOpts *ConnOpts, title string) (*Console, error)

func (*Console) Close

func (console *Console) Close()

func (*Console) Run

func (console *Console) Run() error

type EvalFunc

type EvalFunc func(console *Console, funcBodyFmt string, args ...interface{}) (interface{}, error)

type GetRawSuggestionsFunc

type GetRawSuggestionsFunc func(console *Console, lastWord string) interface{}

Jump to

Keyboard shortcuts

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