progressbar

package
v0.0.0-...-7ebe467 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpProgressBar

type HttpProgressBar struct {
	Writer gin.ResponseWriter
}

func NewHttpProgressBar

func NewHttpProgressBar(w gin.ResponseWriter) HttpProgressBar

func (HttpProgressBar) Error

func (p HttpProgressBar) Error(err error)

func (HttpProgressBar) Finish

func (p HttpProgressBar) Finish()

func (HttpProgressBar) NewStep

func (p HttpProgressBar) NewStep(message string) IStep

type HttpStep

type HttpStep struct {
	Message string
	Writer  gin.ResponseWriter
}

func (HttpStep) Done

func (s HttpStep) Done()

func (HttpStep) Error

func (s HttpStep) Error(err error)

type IProgressBar

type IProgressBar interface {
	NewStep(message string) IStep
	Error(err error)
	Finish()
}

type IStep

type IStep interface {
	Done()
	Error(err error)
}

type Message

type Message struct {
	Message  string
	Progress int64
	Done     bool
}

type ProgressBar

type ProgressBar struct {
	Writer io.Writer
}

func NewCliProgressBar

func NewCliProgressBar() *ProgressBar

func (*ProgressBar) Error

func (p *ProgressBar) Error(err error)

func (*ProgressBar) Finish

func (p *ProgressBar) Finish()

func (*ProgressBar) NewStep

func (p *ProgressBar) NewStep(message string) Step

type Step

type Step struct {
	Message string
	Writer  io.Writer
}

func (*Step) Done

func (s *Step) Done()

func (*Step) Error

func (s *Step) Error(err error)

Jump to

Keyboard shortcuts

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