messages

package
v1.2.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Duplicate   = "duplicate"
	Pow         = "pow"
	Blocked     = "blocked"
	RateLimited = "rate-limited"
	Invalid     = "invalid"
	Error       = "error"
)

Variables

View Source
var Examples = []by{
	by(""),
	by("pow: difficulty 25>=24"),
	by("duplicate: already have this event"),
	by("blocked: you are banned from posting here"),
	by("blocked: please register your pubkey at " +
		"https://my-expensive-relay.example.com"),
	by("rate-limited: slow down there chief"),
	by("invalid: event creation date is too far off from the current time"),
	by("pow: difficulty 26 is less than 30"),
	by("error: could not connect to the database"),
}

Functions

func RandomMessage

func RandomMessage() by

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL