myitcv.io: myitcv.io/react/examples/sites/globalstate/state Index | Files

package state

import "myitcv.io/react/examples/sites/globalstate/state"

Index

Package Files

gen_state_stateGen.go state.go

Variables

var NoSuchSubErr = errors.New("No such sub")
var State = NewRoot()

type App Uses

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

func NewRoot Uses

func NewRoot() *App

func (*App) CurrentPerson Uses

func (n *App) CurrentPerson() *ModelPersonPLeaf

func (*App) Root Uses

func (n *App) Root() *Data

func (*App) Subscribe Uses

func (n *App) Subscribe(cb func()) *Sub

type Data Uses

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

func (*Data) People Uses

func (n *Data) People() *ModelPeoplePLeaf

func (*Data) Subscribe Uses

func (n *Data) Subscribe(cb func()) *Sub

type ModelPeoplePLeaf Uses

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

func (*ModelPeoplePLeaf) Get Uses

func (m *ModelPeoplePLeaf) Get() *model.People

func (*ModelPeoplePLeaf) Set Uses

func (m *ModelPeoplePLeaf) Set(v *model.People)

func (*ModelPeoplePLeaf) Subscribe Uses

func (m *ModelPeoplePLeaf) Subscribe(cb func()) *Sub

type ModelPersonPLeaf Uses

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

func (*ModelPersonPLeaf) Get Uses

func (m *ModelPersonPLeaf) Get() *model.Person

func (*ModelPersonPLeaf) Set Uses

func (m *ModelPersonPLeaf) Set(v *model.Person)

func (*ModelPersonPLeaf) Subscribe Uses

func (m *ModelPersonPLeaf) Subscribe(cb func()) *Sub

type Node Uses

type Node interface {
    Subscribe(cb func()) *Sub
}

type Sub Uses

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

func (*Sub) Clear Uses

func (s *Sub) Clear()

Package state imports 4 packages (graph) and is imported by 1 packages. Updated 2018-08-06. Refresh now. Tools for package owners.