outbox

package
v0.0.0-...-a0d1ad3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2022 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableOutboxesName = "outboxes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Outbox

type Outbox interface {
	Create() error
	GetOutboxes() ([]*Outboxes, error)
	GetOutboxesPublic() ([]*Outboxes, error)
	Delete() error
}

type Outboxes

type Outboxes struct {
	gorm.Model

	ActorId    uint   `gorm:"primaryKey;type:bigint;actor_id"`
	ActivityId string `gorm:"primaryKey;type:text;activity_id"`
	To         string `gorm:" type:text;to"`
	Cc         string `gorm:"type:text;cc"`
	Bcc        string `gorm:"type:text;bcc"`
	Bto        string `gorm:"type:text;bto"`
	Audience   string `gorm:"type:text;audience"`
	Types      string `gorm:"type:text;types"`
	Body       string `gorm:"type:text;body"`
	IsPublic   bool   `gorm:"type:boolean;is_public"`
}

func NewOutboxes

func NewOutboxes(actorId uint, activityId, to, types, body string) *Outboxes

func NewOutboxesActorId

func NewOutboxesActorId(actorId uint) *Outboxes

func NewOutboxesDeleteByActivityId

func NewOutboxesDeleteByActivityId(actorId uint, activityId string) *Outboxes

func (*Outboxes) Create

func (o *Outboxes) Create() error

func (*Outboxes) Delete

func (o *Outboxes) Delete() error

func (*Outboxes) GetOutboxes

func (o *Outboxes) GetOutboxes() ([]*Outboxes, error)

func (*Outboxes) GetOutboxesPublic

func (o *Outboxes) GetOutboxesPublic() ([]*Outboxes, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL