handler

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 12 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 {
	Interactive bool
}

type GetOpts

type GetOpts struct {
	Time  timeOpts
	Limit int
}

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 Summarize

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

func ValidateOptions

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

type Opts

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

type SummarizeOpts

type SummarizeOpts struct {
	Time timeOpts
}

Jump to

Keyboard shortcuts

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