Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 78 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) error

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