Documentation
¶
Index ¶
- Constants
- type Handler
- type Ibx
- type Inboxes
- func NewInboxes(actorId uint, activityId, from, types, body string) *Inboxes
- func NewInboxesDeleteByActivityId(actorId uint, activityId string) *Inboxes
- func NewInboxesIdAndActorId(id, actorId uint) *Inboxes
- func NewInboxesReceiverId(actorId uint) *Inboxes
- func NewSetViewed(actorId, inboxId uint) *Inboxes
Constants ¶
View Source
const (
InboxTableName = "inboxes"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewActivity ¶
NewActivity The received inbox data is constructed into an InboxActivity, Then handed over to the handler for further processing.
func NewHandler ¶
type Inboxes ¶
type Inboxes struct { gorm.Model ActorId uint `gorm:"primaryKey;type:bigint;actor_id"` ActivityId string `gorm:"primaryKey;type:text;activity_id"` From string `gorm:"type:text;sender_addr"` Types string `gorm:"type:text;types"` Body string `gorm:"type:text;body"` Viewed bool `gorm:"type:boolean;viewed"` }
func NewInboxes ¶
func NewInboxesIdAndActorId ¶
func NewInboxesReceiverId ¶
func NewSetViewed ¶
func (*Inboxes) DeleteByActivityId ¶
func (*Inboxes) DeleteInbox ¶
func (*Inboxes) GetInboxes ¶
Click to show internal directories.
Click to hide internal directories.