Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
Registry is an interface for a component that returns registered conversation implementations.
var DefaultRegistry *Registry = NewRegistry()
DefaultRegistry is the singleton with the registry.
func NewRegistry ¶
func NewRegistry() *Registry
NewRegistry is used to create conversation registry.
func (*Registry) Create ¶
func (s *Registry) Create(name, version, logName string) (conversation.Conversation, error)
func (*Registry) RegisterComponent ¶
func (s *Registry) RegisterComponent(componentFactory func(logger.Logger) conversation.Conversation, names ...string)
RegisterComponent adds a new conversation to the registry.
Click to show internal directories.
Click to hide internal directories.