messages

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: CC0-1.0 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 = []B{
	B(""),
	B("pow: difficulty 25>=24"),
	B("duplicate: already have this event"),
	B("blocked: you are banned from posting here"),
	B("blocked: please register your pubkey at " +
		"https://my-expensive-relay.example.com"),
	B("rate-limited: slow down there chief"),
	B("invalid: event creation date is too far off from the current time"),
	B("pow: difficulty 26 is less than 30"),
	B("error: could not connect to the database"),
}

Functions

This section is empty.

Types

type B

type B = []byte

func RandomMessage

func RandomMessage() B

type E

type E = error

type S

type S = string

Jump to

Keyboard shortcuts

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