handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: ISC Imports: 0 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 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.

Jump to

Keyboard shortcuts

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