repl

package
v0.0.0-...-01a0905 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBGetter

type DBGetter interface {
	GetExistingDB(string) (*sql.DB, error)
}

type SQLRepl

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

func New

func New(pathToSocket string, dbGetter DBGetter, clock clock.Clock) (*SQLRepl, error)

func (*SQLRepl) Kill

func (r *SQLRepl) Kill()

Kill implements the Worker interface. It closes the REPL socket and notifies any open sessions that they need to gracefully terminate.

func (*SQLRepl) Wait

func (r *SQLRepl) Wait() error

Wait implements the Worker interface. It blocks until all open REPL sessions terminate.

Jump to

Keyboard shortcuts

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