Versions in this module Expand all Collapse all v0 v0.1.0 Dec 8, 2024 Changes in this version + var AppendSuffixToContent = func(suffix string) RandomEventOption + var AppendTags = func(tagMap nostr.TagMap) RandomEventOption + var MustBeNewerThan = func(since nostr.Timestamp) RandomEventOption + var MustBeOlderThan = func(until nostr.Timestamp) RandomEventOption + var OverwriteID = func(id string) RandomEventOption + var UseKind = func(kind int) RandomEventOption + var UseKinds = func(kinds []int) RandomEventOption + var UsePreGeneratedKeypair = func(sk, pk string) RandomEventOption + func CloseBytes(close nostr.CloseEnvelope) []byte + func ClosedBytes(closed nostr.ClosedEnvelope) []byte + func CompareEnvelope(t *testing.T, expected, got nostr.Envelope) + func CompareEventEnvelope(t *testing.T, expected, got *nostr.EventEnvelope) + func CompareReqEnvelope(t *testing.T, expected, got *nostr.ReqEnvelope) + func CreateRandomEvent(opts ...RandomEventOption) nostr.Event + func CreateRandomKeypair() (string, string, error) + func CreateRandomTags(totalLen, maxTagLen int) nostr.Tags + func EventBytes(event nostr.EventEnvelope) []byte + func FormatLvlFunc(i interface{}) string + func NoticeBytes(notice nostr.NoticeEnvelope) []byte + func OKBytes(ok nostr.OKEnvelope) []byte + func RandRange(min, max int) int + func RandomKind() int + func ReqBytes(req nostr.ReqEnvelope) []byte + type RandomEventOption func(e *nostr.Event) error