cmd

package
v0.7.16 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func InitDataLoader

func InitDataLoader(rootCmd *cobra.Command)

InitDataLoader is an outer wrapper of the DataLoader constructor that is used in `command.go` init(). Not testable.

func InitServeCmd

func InitServeCmd(rootCmd *cobra.Command)

func NewDataLoader

func NewDataLoader(
	rootCmd *cobra.Command,
	cfg config.Config,
	logger *logger.Logger,
	database db.DataLoader,
)

NewDataLoader is an inner wrapper of the DataLoader constructor which accepts all dependencies as arguments. Testable.

Types

type DataLoader

type DataLoader struct {
	Database db.DataLoader
	// contains filtered or unexported fields
}

func (*DataLoader) SetDataLoadCmd

func (d *DataLoader) SetDataLoadCmd(cfg config.Config)

SetDataLoadCmd assigns cobra.Command to the DataLoader.dataLoadCmd field. I took it out of the constructor to increase readability.

Jump to

Keyboard shortcuts

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