handler

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Client   HistClient
	Searcher SearchClient
}

func (*Handler) Handle

func (h *Handler) Handle(a args.Args) error

type HistClient

type HistClient interface {
	List(options client.ListOptions) ([]record.Record, error)
	Get(index int64) (string, error)
	Record(command string) error
	Delete(options client.DeleteOptions) error
	Import(reader io.Reader) error
	Tidy() error
	Stats() (*stats.Stats, error)
}

type SearchClient

type SearchClient interface {
	Show(input string, verbose bool) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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