Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddHandler ¶
type AddHandler interface { AddHandler(fn interface{}) (cancel func()) AddSyncHandler(fn interface{}) (cancel func()) }
AddHandler is an interface for separate states to bind their handlers.
type ReadyInjector ¶
type ReadyInjector struct {
// contains filtered or unexported fields
}
ReadyInjector is an event handler wrapper that allows injecting the Ready event.
func NewReadyInjector ¶
func NewReadyInjector(adder AddHandler, r *gateway.ReadyEvent) *ReadyInjector
func (*ReadyInjector) AddHandler ¶
func (r *ReadyInjector) AddHandler(fn interface{}) (cancel func())
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(adder AddHandler) *Repository
func (*Repository) AddHandler ¶
func (r *Repository) AddHandler(fn interface{}) (cancel func())
func (*Repository) AddSyncHandler ¶
func (r *Repository) AddSyncHandler(fn interface{}) (cancel func())
func (*Repository) Unbind ¶
func (r *Repository) Unbind()
Click to show internal directories.
Click to hide internal directories.