handler

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 8 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 GetOpts

type GetOpts struct {
	Time timeOpts
}

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 Get

func Get(cfg *config.Config, db *db.DB, opts *GetOpts) 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