queryhistory

package
v0.4.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryHistory

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

QueryHistory :: struct for working with history in the interactive mode

func New

func New() *QueryHistory

New :: create and return a

func (*QueryHistory) Get

func (q *QueryHistory) Get() []string

Get :: return a copy of the current history

func (*QueryHistory) Persist

func (q *QueryHistory) Persist() error

Persist :: persist the history to the filesystem

func (*QueryHistory) Put

func (q *QueryHistory) Put(query string)

Put :: add to the history queue; trim to maxHistorySize if necessary

Jump to

Keyboard shortcuts

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