{"modulePath":"github.com/ethersphere/beekeeper","version":"v0.39.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package pushsync\n\n## Functions\n\n```go\nfunc GetIPFromUnderlays(addrs []string) string\n```\n\n```go\nfunc NewSimulation(logger logging.Logger) beekeeper.Action\n```\nNewSimulation returns new upload simulation\n\n```go\nfunc ToBuckets(arr []string, start float64, end float64, step float64) [][]string\n```\ntoBuckets splits arr into buckets where the first bucket is 0-th index upto start percentage number of elements, subsequent buckets are step percentage number of elements until the end percentage is reached, ex: arr = \\[1,2,3,4,5,6,7,8,9,10], start=0.4, end=0.8, step=0.2, last bucket is the remaining items that are outside of the start - end range, so when end is 1.0, last bucket is empty returned is \\[\\[1,2,3,4], \\[5,6], \\[7,8], \\[9,10]]\n\n## Types\n\n```go\ntype Options struct {\n\tGasPrice         string\n\tPostageAmount    int64\n\tPostageDepth     uint64\n\tDownloadWait     time.Duration\n\tUploadWait       time.Duration\n\tDownloadCount    int64\n\tDownloadRetry    int64\n\tSeed             int64\n\tProxyApiEndpoint string\n\tChunkCount       int64\n\n\t// percentages must be in the range of [0, 1.0]\n\tStartPercentage float64\n\tEndPercentage   float64\n\tStepPercentage  float64\n}\n```\nOptions represents simulation options\n\n```go\nfunc NewDefaultOptions() Options\n```\nNewDefaultOptions returns new default options\n\n```go\ntype Simulation struct {\n\t// contains filtered or unexported fields\n}\n```\nSimulation instance\n\n```go\nfunc (s *Simulation) Report() []prometheus.Collector\n```\n\n```go\nfunc (s *Simulation) Run(ctx context.Context, cluster orchestration.Cluster, opts any) (err error)\n```\nRun executes upload stress\n\n","path":"github.com/ethersphere/beekeeper/pkg/simulate/pushsync","name":"pushsync","synopsis":"","isRedistributable":true}
