handler

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFlags

func ApplyFlags(cmd *cobra.Command, opts Opts)

Types

type AddOpts

type AddOpts struct{}

type DeleteOpts

type DeleteOpts struct {
	Time        timeOpts
	Limit       int
	All         bool
	Interactive bool
}

type GetOpts

type GetOpts struct {
	Time  timeOpts
	Limit int
	All   bool
}

type HandlerFunc

type HandlerFunc func(cmd *cobra.Command, args []string) error

func Add

func Add(cfg *config.Config, db *_db.DB, opts *AddOpts) HandlerFunc

func Delete

func Delete(cfg *config.Config, db *_db.DB, opts *DeleteOpts) HandlerFunc

func Get

func Get(cfg *config.Config, db *_db.DB, opts *GetOpts) HandlerFunc

func Init

func Init(cfg *config.Config, db *_db.DB, lg *logger.Logger) HandlerFunc

func Nuke

func Nuke(cfg *config.Config, db *_db.DB, opts *NukeOpts) HandlerFunc
func Search(cfg *config.Config, db *_db.DB, opts *SearchOpts) HandlerFunc

func Summarize

func Summarize(cfg *config.Config, db *_db.DB, opts *SummarizeOpts) HandlerFunc

func ValidateOptions

func ValidateOptions(cfg *config.Config, opts Opts) HandlerFunc

type NukeOpts

type NukeOpts struct{}

type Opts

type Opts interface {
	// contains filtered or unexported methods
}

type SearchOpts

type SearchOpts struct{}

type SummarizeOpts

type SummarizeOpts struct {
	Time  timeOpts
	Limit int
	All   bool
}

Jump to

Keyboard shortcuts

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