handlerrepo

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: ISC Imports: 2 Imported by: 0

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()

type Unbinder

type Unbinder interface {
	Unbind()
}

Unbinder is an interface for separate states to remove their handlers.

Jump to

Keyboard shortcuts

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