MCPcopy Create free account
hub / github.com/OpenFunction/samples / getData

Function getData

functions/async/pubsub/producer/producer.go:161–168  ·  view source on GitHub ↗
(length int)

Source from the content-addressed store, hash-verified

159}
160
161func getData(length int) string {
162 seededRand := rand.New(rand.NewSource(time.Now().UnixNano()))
163 b := make([]byte, length)
164 for i := range b {
165 b[i] = chars[seededRand.Intn(len(chars))]
166 }
167 return string(b)
168}
169
170type requestContent struct {
171 ID string `json:"id"`

Callers 1

getEventDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected