handler

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: MIT Imports: 13 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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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

func Nuke added in v0.0.5

func Nuke(cfg *config.Config, db *_db.DB, opts *NukeOpts) 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 added in v0.0.4

type NukeOpts struct{}

type Opts

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

type SummarizeOpts

type SummarizeOpts struct {
	Time  timeOpts
	Limit int
}

Jump to

Keyboard shortcuts

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