Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AbstractVisitor ¶
type AbstractVisitor struct {
widgets.AbstractStrategyWidget
}
AbstractVisitor abstract component of visotor
type DefaultVisitorsFactory ¶
DefaultVisitorsFactory default factory of visitors
func GetDefaultVisitorsChain ¶
func GetDefaultVisitorsChain() DefaultVisitorsFactory
GetDefaultVisitorsChain for each controllers default visitor
type Visitor ¶
type Visitor interface { widgets.PatternWidget Visit(event events.Event) }
Visitor interface
type VisitorOperator ¶
type VisitorOperator interface { AttachVisitor(visitor Visitor) bool RemoveVisitor(name string) bool GetVisitors(string) []Visitor InitializeVisitors(from string) }
VisitorOperator interface for controller operation
type VisitorsChain ¶
type VisitorsChain struct { widgets.AbstractStrategyWidget // contains filtered or unexported fields }
VisitorsChain responsibility chain of visitors
func NewVisitorsChain ¶
func NewVisitorsChain(name string, matchPattern string) *VisitorsChain
NewVisitorsChain responsibility chain of visitors
func (*VisitorsChain) AttachVisitor ¶
func (c *VisitorsChain) AttachVisitor(visitor Visitor) bool
AttachVisitor on visitor responsibility chain
func (*VisitorsChain) GetVisitors ¶
func (c *VisitorsChain) GetVisitors(pattern string) []Visitor
GetVisitors of observer responsibility chain
func (*VisitorsChain) InitializeVisitors ¶
func (c *VisitorsChain) InitializeVisitors(from string)
InitializeVisitors called from controller analyzement on loading
func (*VisitorsChain) LoadStrategies ¶
func (c *VisitorsChain) LoadStrategies(strategies []string)
LoadStrategies for controller handlers
func (*VisitorsChain) RemoveVisitor ¶
func (c *VisitorsChain) RemoveVisitor(name string) bool
RemoveVisitor on visitor responsibility chain
type VisitorsResponsibilityChain ¶
type VisitorsResponsibilityChain interface { AttachVisitor(visitor Visitor) bool GetVisitors(string) []Visitor }
VisitorsResponsibilityChain
type VisitorsStrategy ¶
type VisitorsStrategy interface {
Visitors() []Visitor
}
VisitorsStrategy interface of visitors strategy
Click to show internal directories.
Click to hide internal directories.