progress

package
v0.0.0-...-732dc05 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler type is storage for progresses.

func NewHandler

func NewHandler() *Handler

func (*Handler) Add

func (p *Handler) Add(name string, done uint64)

Add function add selected value to progress by name.

func (*Handler) Create

func (p *Handler) Create(name string, total uint64)

Create function creates struct for progress by name.

func (*Handler) GetAll

func (p *Handler) GetAll() map[string]usecase.Progress

GetAll returns all saved progresses.

func (*Handler) Set

func (p *Handler) Set(name string, done uint64)

Set function sets progress to selected value by name.

Jump to

Keyboard shortcuts

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