nip52

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TimeBased = 31923
	DateBased = 31922
)
View Source
const DateFormat = "2006-01-02"

Variables

This section is empty.

Functions

This section is empty.

Types

type CalendarEvent

type CalendarEvent struct {
	CalendarEventKind
	Identifier   string
	Title        string
	Image        string
	Start, End   time.Time
	Locations    []string
	Geohashes    []string
	Participants []Participant
	References   []string
	Hashtags     []string
	StartTzid    string
	EndTzid      string
}

func ParseCalendarEvent

func ParseCalendarEvent(event nostr.Event) CalendarEvent

func (CalendarEvent) ToHashtags

func (calev CalendarEvent) ToHashtags() nostr.Tags

type CalendarEventKind

type CalendarEventKind int

type Participant

type Participant struct {
	PubKey string
	Relay  string
	Role   string
}

Jump to

Keyboard shortcuts

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