Versions in this module Expand all Collapse all v0 v0.1.12 Sep 19, 2025 v0.1.11 Aug 19, 2025 v0.1.10 Jul 21, 2025 v0.1.9 Jul 8, 2025 v0.1.8 Mar 10, 2025 v0.1.7 Mar 19, 2024 v0.1.6 Jul 17, 2023 Changes in this version + var SharedMap sync.Map + func Cancel() + func GetRow(rows *sql.Rows) ([]string, error) + func RowsToJson(rows *sql.Rows) []string + type Generator struct + Args []string + L *lua.LState + LG *LG + Script string + ScriptDir string + func NewGenerator(o GeneratorOptions, id int, requestrate int, concurrency int, ...) *Generator + func (l *Generator) Finish() error + func (l *Generator) Init() error + func (l *Generator) InitDone() error + func (l *Generator) Tick() error + type GeneratorOptions struct + Args []string + Debug bool + Script string + func NewOptions() *GeneratorOptions + type LG struct + Concurrency int + Id int + Map *sync.Map + RequestRate int + ScriptArgs *lua.LTable + ScriptDir string + func NewLG(id int, requestrate int, concurrency int, ctx context.Context, script string, ...) *LG + func (lg *LG) AbortCustomMetrics(keys ...string) + func (lg *LG) BeginCustomMetrics(keys ...string) + func (lg *LG) Context() context.Context + func (lg *LG) EndCustomMetrics(keys ...string) error + func (lg *LG) EndCustomMetricsWithError(keys ...string) error + func (lg *LG) RecordRawMetrics(key string, value int64) + func (lg *LG) SetTickDataFile(f string) + func (lg *LG) ShouldQuit() bool + type MarkovChain struct + func NewMarkovChain(prefixLen int) *MarkovChain + func (c *MarkovChain) Build() + func (c *MarkovChain) Generate(n int) string + func (c *MarkovChain) GenerateText(size int, paraNumWords int) string + type MarkovPrefix []string + func (p MarkovPrefix) Shift(word string) + func (p MarkovPrefix) String() string