Documentation
¶
Index ¶
Constants ¶
View Source
const ( LikeRequestSuffix = "#LikeRequest" ReplyRequestSuffix = "#ReplyRequest" AnnounceRequestSuffix = "#AnnounceRequest" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InteractionRequest ¶
type InteractionRequest struct {
// Used only for migration.
bun.BaseModel `bun:"table:new_interaction_requests"`
ID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"`
// Renamed from "StatusID" to "TargetStatusID" in new model.
TargetStatusID string `bun:"type:CHAR(26),nullzero,notnull"`
TargetAccountID string `bun:"type:CHAR(26),nullzero,notnull"`
InteractingAccountID string `bun:"type:CHAR(26),nullzero,notnull"`
// Added in new model.
InteractionRequestURI string `bun:",nullzero,notnull,unique"`
InteractionURI string `bun:",nullzero,notnull,unique"`
// Changed type from int to int16 in new model.
InteractionType int16 `bun:",notnull"`
// Added in new model.
Polite *bool `bun:",nullzero,notnull,default:false"`
AcceptedAt time.Time `bun:"type:timestamptz,nullzero"`
RejectedAt time.Time `bun:"type:timestamptz,nullzero"`
// Renamed from "URI" to "ResponseURI" in new model.
ResponseURI string `bun:",nullzero,unique"`
// Added in new model.
AuthorizationURI string `bun:",nullzero,unique"`
}
Click to show internal directories.
Click to hide internal directories.