handlerrepo

package
Version: v2.0.0-...-cab2337 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: ISC Imports: 1 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())
}

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

func (r *Repository) Unbind()

type Unbinder

type Unbinder interface {
	Unbind()
}

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL