spinnerproxy

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package spinner proxy is a package that provides a spinner proxy for the app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spinner

type Spinner interface {
	NewSpinner() SpinnerInstanceInterface
}

Spinner is an interface for spinner.

func New

func New() Spinner

New is a constructor for SpinnerProxy.

type SpinnerInstance

type SpinnerInstance struct {
	FieldSpinner *spinner.Spinner
}

SpinnerInstance is a struct that implements SpinnerInstanceInterface.

func (*SpinnerInstance) Reverse

func (s *SpinnerInstance) Reverse()

Reverse is a proxy for spinner.Spinner.Reverse.

func (*SpinnerInstance) SetColor

func (s *SpinnerInstance) SetColor(colors ...string) error

SetColor is a proxy for spinner.Spinner.Color.

func (*SpinnerInstance) SetSuffix

func (s *SpinnerInstance) SetSuffix(suffix string)

SetSuffix is a proxy for spinner.Spinner.Suffix.

func (*SpinnerInstance) Start

func (s *SpinnerInstance) Start()

Start is a proxy for spinner.Spinner.Start.

func (*SpinnerInstance) Stop

func (s *SpinnerInstance) Stop()

Stop is a proxy for spinner.Spinner.Stop.

type SpinnerInstanceInterface

type SpinnerInstanceInterface interface {
	Reverse()
	SetColor(colors ...string) error
	SetSuffix(suffix string)
	Start()
	Stop()
}

SpinnerInstanceInterface is an interface for spinner.Spinner

type SpinnerProxy

type SpinnerProxy struct{}

SpinnerProxy is a struct that implements Spinner.

func (*SpinnerProxy) NewSpinner

func (*SpinnerProxy) NewSpinner() SpinnerInstanceInterface

New is a proxy for spinner.New.

Jump to

Keyboard shortcuts

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