messages

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: CC0-1.0 Imports: 3 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 N added in v0.0.14

type N = int

type S

type S = string

Jump to

Keyboard shortcuts

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