inputhistory

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoryItemStore

type HistoryItemStore interface {
	Items(ctx context.Context, category string) ([]string, error)
	PutItem(ctx context.Context, category string, item string) error
}

type Iter

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

func (*Iter) Item

func (i *Iter) Item(idx int) string

func (*Iter) Len

func (i *Iter) Len() int

func (*Iter) PutItem

func (i *Iter) PutItem(item string)

type Service

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

func New

func New(store HistoryItemStore) *Service

func (*Service) Iter

func (svc *Service) Iter(ctx context.Context, category string) services.HistoryProvider

func (*Service) PutItem

func (svc *Service) PutItem(ctx context.Context, category string, value string) error

Jump to

Keyboard shortcuts

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