Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardState ¶
type CardState interface { CardName(id int) string CardLabelsStr(id int) string Description(id int) string CardComments(id int) []string }
CardState describes the interface required for the selected card component
type HeaderState ¶
HeaderState describes the interface required for the header component
type ListsState ¶
type ListsState interface { ListsLen() int SingleListState }
ListsState describes the interface required for the ListContainer component
type SingleListState ¶
SingleListState describes the interface required for the list component
type Store ¶ added in v0.1.2
type Store struct { State // contains filtered or unexported fields }
Store makes State safe for concurrent use
func (*Store) BeginRead ¶ added in v0.1.2
func (s *Store) BeginRead()
BeginRead acquires a read lock
func (*Store) BeginWrite ¶ added in v0.1.2
func (s *Store) BeginWrite()
BeginWrite acquires a write lock
func (*Store) EndWrite ¶ added in v0.1.2
EndWrite releases a write lock and calls `stateChangedFunc` if necessary
func (*Store) SetStateChangedFunc ¶ added in v0.1.2
func (s *Store) SetStateChangedFunc(f func())
SetStateChangedFunc configures a callback on state changes, called after unlocking write lock. Used to hook gui re=-draw to state changes.
type ViewState ¶
type ViewState interface { HeaderState ListsState }
ViewState describes the interface required for the view component