Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxUint16 = 65535 MaxUint32 = 4294967295 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventAddon ¶
type EventAddon struct { UpdatedAt nostr.Timestamp `json:"updated_at"` DeletedAt nostr.Timestamp `json:"deleted_at"` Expiration nostr.Timestamp `json:"expiration"` UpdatedIP string `json:"updated_ip"` }
type Page ¶
type Page struct { PageInformation *PageInformation `json:"page_information,omitempty"` Entities interface{} `json:"entities,omitempty"` }
Page page model
type PageForm ¶
type PageForm struct { Page int `json:"page,omitempty" form:"page" query:"page"` Size int `json:"size,omitempty" form:"size" query:"size"` Query string `json:"query,omitempty" form:"query" query:"query"` Sort string `json:"sort,omitempty" form:"sort" query:"sort"` Reverse bool `json:"reverse,omitempty" form:"reverse" query:"reverse"` OrderBy string `json:"-" form:"-"` }
PageForm page form
type PageInformation ¶
type PageInformation struct { Page int `json:"page,omitempty"` Size int `json:"size,omitempty"` Count int64 `json:"count,omitempty"` LastPage int `json:"last_page,omitempty"` }
PageInformation page information
type RelayEvent ¶
type RelayEvent struct { ID string `json:"id" gorm:"primaryKey;type:varchar(64)"` CreatedAt nostr.Timestamp `json:"created_at" gorm:"type:integer"` UpdatedAt nostr.Timestamp `json:"-" gorm:"type:integer"` DeletedAt nostr.Timestamp `json:"-" gorm:"type:integer"` Pubkey string `json:"pubkey" gorm:"type:varchar(64)"` Kind int `json:"kind" gorm:"type:integer"` Content string `json:"content"` Tags nostr.Tags `json:"tags" gorm:"type:jsonb"` Sig string `json:"sig"` Tagvalues []string `json:"-" gorm:"-"` Expiration nostr.Timestamp `json:"-" gorm:"type:integer"` UpdatedIP string `json:"-" gorm:"-"` }
func (RelayEvent) TableName ¶
func (RelayEvent) TableName() string
Click to show internal directories.
Click to hide internal directories.