cmd

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 67 Imported by: 0

Documentation

Overview

Package cmd provides command line interface for tracker-api

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cancel context.CancelFunc, args []string)

func ToCliFlags added in v0.38.0

func ToCliFlags(specs *objectStorageFlagSet) []cli.Flag

Types

type FlagSpec added in v0.38.0

type FlagSpec struct {
	Name         string
	Usage        string
	EnvVar       string
	ConfigPath   string
	FlagType     FlagType
	DefaultValue any
}

type FlagType added in v0.38.0

type FlagType string
const (
	FlagTypeString   FlagType = "string"
	FlagTypeInt      FlagType = "int"
	FlagTypeBool     FlagType = "bool"
	FlagTypeDuration FlagType = "duration"
)

type Queue added in v0.35.0

type Queue struct {
	Publisher worker.Publisher
	Consumer  worker.Consumer
	Cleanup   func() error
}

type WorkerRuntime added in v0.35.0

type WorkerRuntime struct {
	Worker  *worker.Worker
	Cleanup func()
}

Jump to

Keyboard shortcuts

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