data

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MainWindow fyne.Window

MainWindow is held as global state to enable easy reference with dialogs.

Functions

This section is empty.

Types

type StringObserver

type StringObserver func(appliedValue string)

StringObserver enables a dependent object to be updated in response to a state change.

type StringSubject

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

StringSubject encapsulates an independent value to be observed.

Hash is the observable state of the bcrypt hash generated from the password.

Pass is the observable state of the password entered by the user or generated.

func NewStringSubject

func NewStringSubject(initialValue string) *StringSubject

NewStringSubject creates an initialized subject.

func (*StringSubject) Attach

func (s *StringSubject) Attach(in StringObserver)

Attach notifies the subject of the observer.

func (*StringSubject) GetState

func (s *StringSubject) GetState() string

GetState gets the current state of the subject.

func (*StringSubject) SetState

func (s *StringSubject) SetState(newVal string)

SetState sets the subject state to a new value.

func (*StringSubject) SetStateNoBroadcast

func (s *StringSubject) SetStateNoBroadcast(newVal string)

SetStateNoBroadcast sets the subject state, but does not broadcast the change.

Jump to

Keyboard shortcuts

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