package
Version:
v0.0.0-...-135ac7b
Opens a new window with list of versions in this module.
Published: Apr 9, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Event struct {
ID string `json:"id"`
PubKey string `json:"pubkey"`
CreatedAt int64 `json:"created_at"`
Kind int `json:"kind"`
Tags json.RawMessage `gorm:"type:jsonb" json:"tags"`
Content string `json:"content"`
Sig string `json:"sig"`
}
func FromNostrEvent(e *nostr.Event) (Event, error)
type RelayMeta struct {
Name string `json:"name"`
Description string `json:"description"`
Pubkey string `json:"pubkey"`
Contact string `json:"contact"`
SupportedNips json.RawMessage `json:"supported_nips" gorm:"type:jsonb"`
Software string `json:"software"`
Version string `json:"version"`
}
type SpamUser struct {
User string
}
func GetUserFromProtocol(event *nostr.Event) (user User, e error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.