Documentation ¶
Index ¶
- Variables
- func EnableStreamFeatures(s stream.ServerStream, name string)
- func NewDependencyGraph() depGraph
- type BasicFeature
- type FF
- type Feature
- func (fw *Feature) Handle(strm stream.ServerStream, opts Options) error
- func (fw *Feature) InitHandler() xtream.Element
- func (fw *Feature) MarshalXML(e *xml.Encoder, _ xml.StartElement) error
- func (fw *Feature) Name() string
- func (fw *Feature) Required() bool
- func (fw *Feature) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- type FeatureConstructor
- type FeatureFactoryElement
- type FeatureHandler
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencyGraph stream.DependencyManageable = NewDependencyGraph()
Functions ¶
func EnableStreamFeatures ¶
func EnableStreamFeatures(s stream.ServerStream, name string)
func NewDependencyGraph ¶
func NewDependencyGraph() depGraph
Types ¶
type BasicFeature ¶
type BasicFeature interface {
NewHandler() FeatureHandler
}
type FF ¶
type FF interface { Add(string, *FeatureFactoryElement) Get(string) *FeatureFactoryElement List() map[string]*FeatureFactoryElement }
var FeatureFactory FF = newFactory()
type Feature ¶
type Feature struct {
// contains filtered or unexported fields
}
func NewFeature ¶
func NewFeature(name string, felement BasicFeature, required bool, conf Options) *Feature
func (*Feature) InitHandler ¶
func (*Feature) MarshalXML ¶
func (*Feature) UnmarshalXML ¶
type FeatureConstructor ¶
type FeatureFactoryElement ¶
type FeatureFactoryElement struct { Constructor FeatureConstructor Config interface{} Name xml.Name Parent xml.Name Wants []string }
func (*FeatureFactoryElement) GetConfig ¶
func (ffe *FeatureFactoryElement) GetConfig(conf json.RawMessage) (interface{}, error)
type FeatureHandler ¶
type FeatureHandler interface {
Handle(stream.ServerStream, Options) error
}
Click to show internal directories.
Click to hide internal directories.