Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidConfigSelector = errors.New("please verify the selectors attribute in the configuration file, it is invalid") ErrInvalidConfigFrameSize = errors.New("please verify the frameSize attribute in the configuration file, it must be greater than 0") )
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) GetSelector ¶
GetSelector returns the selector used by the cache.
func (*Cache) PullRandom ¶
PullRandom removes a random tuple from the cache and returns it.
type CacheList ¶
type CacheList struct {
// contains filtered or unexported fields
}
type Configuration ¶
type Configuration struct { Version string `yaml:"version"` Seed int64 `yaml:"seed"` FrameSize int `yaml:"frameSize"` Selectors []any `yaml:"selectors"` }
func LoadConfigurationFromYAML ¶
func LoadConfigurationFromYAML(filename string) (Configuration, error)
LoadConfigurationFromYAML returns the configuration of the yaml file in a Configuration object.
func (Configuration) BuildDriver ¶
func (c Configuration) BuildDriver() *Driver
func (Configuration) MustValidate ¶
func (c Configuration) MustValidate()
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) AddSelector ¶
func (*Driver) Run ¶
func (d *Driver) Run(reader RowReader, collector RowCollector)
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
type RowCollector ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.