Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State represents the current splash screen state.
func (*State) Enter ¶
func (s *State) Enter(step string, stepName string, errPrefix string, f func(s *State) (Status, error)) (Status, error)
Enter enters a splash screen section. step must be an unique string identifying what is being loaded. f is allowed to call Enter too, but must return false, nil if its own Enter calls returned false. f must repeat all Enter calls it does, but will never be called again once it returned true.
func (*State) ProvideFractions ¶
ProvideFractions loads a known fractions map. This should have been dumped by a previous run.
func (*State) ToFractions ¶
ToFractions returns the init fraction map by step. This can be provided via ProvideFractions next time.
Click to show internal directories.
Click to hide internal directories.