mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-07 06:39:54 +02:00
feat(nip11): update to nips pr nostr-protocol/nip#1821
This commit is contained in:
@ -43,17 +43,19 @@ func (info *RelayInformationDocument) AddSupportedNIPs(numbers []int) {
|
||||
}
|
||||
|
||||
type RelayLimitationDocument struct {
|
||||
MaxMessageLength int `json:"max_message_length,omitempty"`
|
||||
MaxSubscriptions int `json:"max_subscriptions,omitempty"`
|
||||
MaxFilters int `json:"max_filters,omitempty"`
|
||||
MaxLimit int `json:"max_limit,omitempty"`
|
||||
MaxSubidLength int `json:"max_subid_length,omitempty"`
|
||||
MaxEventTags int `json:"max_event_tags,omitempty"`
|
||||
MaxContentLength int `json:"max_content_length,omitempty"`
|
||||
MinPowDifficulty int `json:"min_pow_difficulty,omitempty"`
|
||||
AuthRequired bool `json:"auth_required"`
|
||||
PaymentRequired bool `json:"payment_required"`
|
||||
RestrictedWrites bool `json:"restricted_writes"`
|
||||
MaxMessageLength int `json:"max_message_length,omitempty"`
|
||||
MaxSubscriptions int `json:"max_subscriptions,omitempty"`
|
||||
MaxLimit int `json:"max_limit,omitempty"`
|
||||
DefaultLimit int `json:"default_limit,omitempty"`
|
||||
MaxSubidLength int `json:"max_subid_length,omitempty"`
|
||||
MaxEventTags int `json:"max_event_tags,omitempty"`
|
||||
MaxContentLength int `json:"max_content_length,omitempty"`
|
||||
MinPowDifficulty int `json:"min_pow_difficulty,omitempty"`
|
||||
CreatedAtLowerLimit int64 `json:"created_at_lower_limit"`
|
||||
CreatedAtUpperLimit int64 `json:"created_at_upper_limit"`
|
||||
AuthRequired bool `json:"auth_required"`
|
||||
PaymentRequired bool `json:"payment_required"`
|
||||
RestrictedWrites bool `json:"restricted_writes"`
|
||||
}
|
||||
|
||||
type RelayFeesDocument struct {
|
||||
|
Reference in New Issue
Block a user