stores

package
v0.0.0-...-c665954 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientChanged clientNotif = "ClientChanged"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Dispatcher flux.DispatcherInterface
	Watcher    flux.WatcherInterface
	Notifier   flux.NotifierInterface
	Fail       chan error

	Client *ClientStore
}

func (*App) Delete

func (a *App) Delete(c chan flux.NotifPayload)

func (*App) Dispatch

func (a *App) Dispatch(action flux.ActionInterface) chan struct{}

func (*App) Init

func (app *App) Init(ctx context.Context)

func (*App) Watch

func (a *App) Watch(object interface{}, notif ...flux.Notif) chan flux.NotifPayload

type ClientStore

type ClientStore struct {
	*flux.Store
	// contains filtered or unexported fields
}

func NewClientStore

func NewClientStore(ctx context.Context, app *App) *ClientStore

func (*ClientStore) Client

func (s *ClientStore) Client() *common.Client

func (*ClientStore) Handle

func (s *ClientStore) Handle(payload *flux.Payload) bool

Jump to

Keyboard shortcuts

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