loading

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hide

func Hide()

func SetLoader

func SetLoader(loader Loader)

func Show

func Show()

func Start

func Start(init, finish string, cb func())

func Stop

func Stop()

Types

type LoadMsg

type LoadMsg struct {
	InitMsg   string
	FinishMsg string
	// contains filtered or unexported fields
}

type Loader

type Loader interface {
	Start(*LoadMsg)
	Stop(*LoadMsg)
}

type SpinCliLoader

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

func NewSpinCliLoader

func NewSpinCliLoader() *SpinCliLoader

func (SpinCliLoader) Start

func (s SpinCliLoader) Start(ldMsg *LoadMsg)

func (SpinCliLoader) Stop

func (s SpinCliLoader) Stop(_ *LoadMsg)

Jump to

Keyboard shortcuts

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