Documentation ¶
Index ¶
Constants ¶
View Source
const ( IdStart = 7 IdEnd = 7 + 64 PubkeyStart = 83 PubkeyEnd = 83 + 64 SigStart = 156 SigEnd = 156 + 128 CreatedAtStart = 299 CreatedAtEnd = 299 + 10 StringStart = 318 // the actual json string for the "nson" field ValuesStart = 318 + 2 // skipping the first byte which delimits the nson size MarkerStart = 309 // this is used just to determine if an event is nson or not MarkerEnd = 317 // it's just the `,"nson":` (including ,": garbage to reduce false positives) part )
Variables ¶
View Source
var ErrNotNSON = fmt.Errorf("not nson")
Functions ¶
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
An Event is basically a wrapper over the string that makes it easy to get each event property (except tags).
func (*Event) GetContent ¶
func (*Event) GetCreatedAt ¶
Click to show internal directories.
Click to hide internal directories.