Documentation
¶
Overview ¶
Package common provides shared utilities for sync services
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NIP11Cache ¶
type NIP11Cache struct {
// contains filtered or unexported fields
}
NIP11Cache caches relay information documents with TTL
func NewNIP11Cache ¶
func NewNIP11Cache(ttl time.Duration) *NIP11Cache
NewNIP11Cache creates a new NIP-11 cache with the specified TTL
func (*NIP11Cache) Get ¶
Get fetches relay information for a given URL, using cache if available
Source Files
¶
- nip11.go
Click to show internal directories.
Click to hide internal directories.