snapshot

package
v0.0.0-...-6920387 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.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 Marshaller

type Marshaller interface {
	Marshal(ts int64, command string) ([]byte, error)
	Unmarshal(b []byte) (ts int64, command string, err error)
}

type Option

type Option func(options *Snap)

func WithBASH

func WithBASH() Option

func WithZSH

func WithZSH() Option

type Parser

type Parser interface {
	Parse(ctx context.Context) error
}

type SizedBuffer

type SizedBuffer struct {
	*bufio.Writer
	// contains filtered or unexported fields
}

func NewSizedBuffer

func NewSizedBuffer(writer io.Writer, limit int) *SizedBuffer

func (*SizedBuffer) Write

func (cw *SizedBuffer) Write(b []byte) (int, error)

type Snap

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

func New

func New(homePth, histPth string, marshaller Marshaller, opts ...Option) *Snap

func (*Snap) Snapshot

func (s *Snap) Snapshot(ctx context.Context) error

Jump to

Keyboard shortcuts

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