Documentation
¶
Index ¶
- func GenerateDecoratorFactory[T Decorable](handler *func(T), initialDecorable T, decorables ...T) *creational.Factory[*Decorator[T]]
- type Adaptable
- type Adapter
- type Bridge
- type Bridgeable
- type Composable
- type Composite
- type Decorable
- type Decorator
- type Flyweight
- type IntrinsicState
- type NotInitializedExecutionHandler
- type Proxifiable
- type Proxy
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDecoratorFactory ¶
func GenerateDecoratorFactory[T Decorable](handler *func(T), initialDecorable T, decorables ...T) *creational.Factory[*Decorator[T]]
Types ¶
type Adapter ¶
func NewAdapter ¶
type Bridge ¶
type Bridge[T Bridgeable] struct { Impl *T }
type Bridgeable ¶
type Bridgeable interface{}
type Composable ¶
type Composable interface{}
type Composite ¶
type Composite[T Composable] struct { Children []T }
func NewComposite ¶
func NewComposite[T Composable]() *Composite[T]
type Decorator ¶
type Decorator[T Decorable] struct { *behavioral.Iterator[T] // contains filtered or unexported fields }
func NewDecorator ¶
func (*Decorator[T]) SetExecutionHandler ¶
type Flyweight ¶
type Flyweight[T IntrinsicState] struct { Instances map[string]*T CreationHandlers map[string]behavioral.StrategyCreatorHandler[T] }
func NewFlyweight ¶
func NewFlyweight[T IntrinsicState]() *Flyweight[T]
func (*Flyweight[T]) GetInstance ¶
func (*Flyweight[T]) NewCreationHandler ¶
func (f *Flyweight[T]) NewCreationHandler(key string, createFunc behavioral.StrategyCreatorHandler[T])
type IntrinsicState ¶
type IntrinsicState interface{}
type NotInitializedExecutionHandler ¶
type NotInitializedExecutionHandler struct{}
func (*NotInitializedExecutionHandler) Error ¶
func (e *NotInitializedExecutionHandler) Error() string
type Proxifiable ¶
type Proxifiable interface{}
type Proxy ¶
type Proxy[T Proxifiable] struct { Wrapped *T // contains filtered or unexported fields }
func NewProxy ¶
func NewProxy[T Proxifiable](wrapped *T, handler func(*T)) *Proxy[T]
Click to show internal directories.
Click to hide internal directories.