dialog

package
v5.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// List returns a list of dialogs for the given entity type-ID pair
	List(eType, id string) []string

	// Bind binds the given dialog to an entity type-ID pair
	Bind(dialog, eType, id string)

	// Unbind removes bindings for the given entity type-ID pair
	Unbind(eType, id string)

	// UnbindDialog removes all bindings for the given dialog
	UnbindDialog(dialog string)
}

Manager is a dialog manager, which tracks associations between dialogs and entities

func NewMemManager

func NewMemManager() Manager

NewMemManager returns a new in-memory dialog manager

Jump to

Keyboard shortcuts

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