Documentation ¶
Index ¶
- type AddAccessTokenForUserParams
- type AddAuthForUserParams
- type AddFollowerParams
- type AddNotificationParams
- type AddToAcceptedActivitiesParams
- type AddToOutboxParams
- type ApAcceptedActivity
- type ApFollower
- type ApOutbox
- type ApproveFederationFollowerParams
- type Auth
- type BanIPAddressParams
- type ChangeDisplayColorParams
- type ChangeDisplayNameParams
- type DBTX
- type DoesInboundActivityExistParams
- type GetFederationFollowerApprovalRequestsRow
- type GetFederationFollowersWithOffsetParams
- type GetFederationFollowersWithOffsetRow
- type GetInboundActivitiesWithOffsetParams
- type GetInboundActivitiesWithOffsetRow
- type GetMessagesFromUserRow
- type GetObjectFromOutboxByIRIRow
- type GetOutboxWithOffsetParams
- type GetRejectedAndBlockedFollowersRow
- type GetUserByAccessTokenRow
- type GetUserByAuthParams
- type GetUserByAuthRow
- type IpBan
- type Message
- type Notification
- type Queries
- func (q *Queries) AddAccessTokenForUser(ctx context.Context, arg AddAccessTokenForUserParams) error
- func (q *Queries) AddAuthForUser(ctx context.Context, arg AddAuthForUserParams) error
- func (q *Queries) AddFollower(ctx context.Context, arg AddFollowerParams) error
- func (q *Queries) AddNotification(ctx context.Context, arg AddNotificationParams) error
- func (q *Queries) AddToAcceptedActivities(ctx context.Context, arg AddToAcceptedActivitiesParams) error
- func (q *Queries) AddToOutbox(ctx context.Context, arg AddToOutboxParams) error
- func (q *Queries) ApproveFederationFollower(ctx context.Context, arg ApproveFederationFollowerParams) error
- func (q *Queries) BanIPAddress(ctx context.Context, arg BanIPAddressParams) error
- func (q *Queries) ChangeDisplayColor(ctx context.Context, arg ChangeDisplayColorParams) error
- func (q *Queries) ChangeDisplayName(ctx context.Context, arg ChangeDisplayNameParams) error
- func (q *Queries) DoesInboundActivityExist(ctx context.Context, arg DoesInboundActivityExistParams) (int64, error)
- func (q *Queries) GetFederationFollowerApprovalRequests(ctx context.Context) ([]GetFederationFollowerApprovalRequestsRow, error)
- func (q *Queries) GetFederationFollowersWithOffset(ctx context.Context, arg GetFederationFollowersWithOffsetParams) ([]GetFederationFollowersWithOffsetRow, error)
- func (q *Queries) GetFollowerByIRI(ctx context.Context, iri string) (ApFollower, error)
- func (q *Queries) GetFollowerCount(ctx context.Context) (int64, error)
- func (q *Queries) GetIPAddressBans(ctx context.Context) ([]IpBan, error)
- func (q *Queries) GetInboundActivitiesWithOffset(ctx context.Context, arg GetInboundActivitiesWithOffsetParams) ([]GetInboundActivitiesWithOffsetRow, error)
- func (q *Queries) GetInboundActivityCount(ctx context.Context) (int64, error)
- func (q *Queries) GetLocalPostCount(ctx context.Context) (int64, error)
- func (q *Queries) GetMessagesFromUser(ctx context.Context, userID sql.NullString) ([]GetMessagesFromUserRow, error)
- func (q *Queries) GetNotificationDestinationsForChannel(ctx context.Context, channel string) ([]string, error)
- func (q *Queries) GetObjectFromOutboxByIRI(ctx context.Context, iri string) (GetObjectFromOutboxByIRIRow, error)
- func (q *Queries) GetOutboxWithOffset(ctx context.Context, arg GetOutboxWithOffsetParams) ([][]byte, error)
- func (q *Queries) GetRejectedAndBlockedFollowers(ctx context.Context) ([]GetRejectedAndBlockedFollowersRow, error)
- func (q *Queries) GetUserByAccessToken(ctx context.Context, token string) (GetUserByAccessTokenRow, error)
- func (q *Queries) GetUserByAuth(ctx context.Context, arg GetUserByAuthParams) (GetUserByAuthRow, error)
- func (q *Queries) GetUserDisplayNameByToken(ctx context.Context, token string) (string, error)
- func (q *Queries) IsDisplayNameAvailable(ctx context.Context, displayName string) (int64, error)
- func (q *Queries) IsIPAddressBlocked(ctx context.Context, ipAddress string) (int64, error)
- func (q *Queries) RejectFederationFollower(ctx context.Context, arg RejectFederationFollowerParams) error
- func (q *Queries) RemoveFollowerByIRI(ctx context.Context, iri string) error
- func (q *Queries) RemoveIPAddressBan(ctx context.Context, ipAddress string) error
- func (q *Queries) RemoveNotificationDestinationForChannel(ctx context.Context, arg RemoveNotificationDestinationForChannelParams) error
- func (q *Queries) SetAccessTokenToOwner(ctx context.Context, arg SetAccessTokenToOwnerParams) error
- func (q *Queries) SetUserAsAuthenticated(ctx context.Context, id string) error
- func (q *Queries) UpdateFollowerByIRI(ctx context.Context, arg UpdateFollowerByIRIParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RejectFederationFollowerParams
- type RemoveNotificationDestinationForChannelParams
- type SetAccessTokenToOwnerParams
- type UpdateFollowerByIRIParams
- type User
- type UserAccessToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAccessTokenForUserParams ¶ added in v0.0.12
type AddAuthForUserParams ¶ added in v0.0.12
type AddFollowerParams ¶
type AddNotificationParams ¶ added in v0.0.12
type AddToOutboxParams ¶
type ApAcceptedActivity ¶
type ApFollower ¶
type BanIPAddressParams ¶ added in v0.0.12
type BanIPAddressParams struct { IpAddress string Notes sql.NullString }
type ChangeDisplayColorParams ¶ added in v0.1.0
type ChangeDisplayNameParams ¶ added in v0.0.12
type GetFederationFollowerApprovalRequestsRow ¶
type GetFederationFollowerApprovalRequestsRow struct { Iri string Inbox string Name sql.NullString Username string Image sql.NullString CreatedAt sql.NullTime }
type GetFederationFollowersWithOffsetRow ¶
type GetFederationFollowersWithOffsetRow struct { Iri string Inbox string Name sql.NullString Username string Image sql.NullString CreatedAt sql.NullTime }
type GetMessagesFromUserRow ¶ added in v0.1.0
type GetRejectedAndBlockedFollowersRow ¶
type GetRejectedAndBlockedFollowersRow struct { Iri string Name sql.NullString Username string Image sql.NullString CreatedAt sql.NullTime DisabledAt sql.NullTime }
type GetUserByAccessTokenRow ¶ added in v0.0.12
type GetUserByAuthParams ¶ added in v0.0.12
type GetUserByAuthRow ¶ added in v0.0.12
type IpBan ¶ added in v0.0.12
type IpBan struct { IpAddress string Notes sql.NullString CreatedAt sql.NullTime }
type Message ¶ added in v0.1.0
type Message struct { ID string UserID sql.NullString Body sql.NullString EventType sql.NullString HiddenAt sql.NullTime Timestamp sql.NullTime Title sql.NullString Subtitle sql.NullString Image sql.NullString Link sql.NullString }
type Notification ¶ added in v0.0.12
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddAccessTokenForUser ¶ added in v0.0.12
func (q *Queries) AddAccessTokenForUser(ctx context.Context, arg AddAccessTokenForUserParams) error
func (*Queries) AddAuthForUser ¶ added in v0.0.12
func (q *Queries) AddAuthForUser(ctx context.Context, arg AddAuthForUserParams) error
func (*Queries) AddFollower ¶
func (q *Queries) AddFollower(ctx context.Context, arg AddFollowerParams) error
func (*Queries) AddNotification ¶ added in v0.0.12
func (q *Queries) AddNotification(ctx context.Context, arg AddNotificationParams) error
func (*Queries) AddToAcceptedActivities ¶
func (q *Queries) AddToAcceptedActivities(ctx context.Context, arg AddToAcceptedActivitiesParams) error
func (*Queries) AddToOutbox ¶
func (q *Queries) AddToOutbox(ctx context.Context, arg AddToOutboxParams) error
func (*Queries) ApproveFederationFollower ¶
func (q *Queries) ApproveFederationFollower(ctx context.Context, arg ApproveFederationFollowerParams) error
func (*Queries) BanIPAddress ¶ added in v0.0.12
func (q *Queries) BanIPAddress(ctx context.Context, arg BanIPAddressParams) error
func (*Queries) ChangeDisplayColor ¶ added in v0.1.0
func (q *Queries) ChangeDisplayColor(ctx context.Context, arg ChangeDisplayColorParams) error
func (*Queries) ChangeDisplayName ¶ added in v0.0.12
func (q *Queries) ChangeDisplayName(ctx context.Context, arg ChangeDisplayNameParams) error
func (*Queries) DoesInboundActivityExist ¶
func (*Queries) GetFederationFollowerApprovalRequests ¶
func (q *Queries) GetFederationFollowerApprovalRequests(ctx context.Context) ([]GetFederationFollowerApprovalRequestsRow, error)
func (*Queries) GetFederationFollowersWithOffset ¶
func (q *Queries) GetFederationFollowersWithOffset(ctx context.Context, arg GetFederationFollowersWithOffsetParams) ([]GetFederationFollowersWithOffsetRow, error)
func (*Queries) GetFollowerByIRI ¶
func (*Queries) GetFollowerCount ¶
Queries added to query.sql must be compiled into Go code with sqlc. Read README.md for details. Federation related queries.
func (*Queries) GetIPAddressBans ¶ added in v0.0.12
func (*Queries) GetInboundActivitiesWithOffset ¶
func (q *Queries) GetInboundActivitiesWithOffset(ctx context.Context, arg GetInboundActivitiesWithOffsetParams) ([]GetInboundActivitiesWithOffsetRow, error)
func (*Queries) GetInboundActivityCount ¶ added in v0.0.12
func (*Queries) GetLocalPostCount ¶
func (*Queries) GetMessagesFromUser ¶ added in v0.1.0
func (q *Queries) GetMessagesFromUser(ctx context.Context, userID sql.NullString) ([]GetMessagesFromUserRow, error)
func (*Queries) GetNotificationDestinationsForChannel ¶ added in v0.0.12
func (*Queries) GetObjectFromOutboxByIRI ¶
func (*Queries) GetOutboxWithOffset ¶
func (*Queries) GetRejectedAndBlockedFollowers ¶
func (q *Queries) GetRejectedAndBlockedFollowers(ctx context.Context) ([]GetRejectedAndBlockedFollowersRow, error)
func (*Queries) GetUserByAccessToken ¶ added in v0.0.12
func (*Queries) GetUserByAuth ¶ added in v0.0.12
func (q *Queries) GetUserByAuth(ctx context.Context, arg GetUserByAuthParams) (GetUserByAuthRow, error)
func (*Queries) GetUserDisplayNameByToken ¶ added in v0.0.12
func (*Queries) IsDisplayNameAvailable ¶ added in v0.0.12
func (*Queries) IsIPAddressBlocked ¶ added in v0.0.12
func (*Queries) RejectFederationFollower ¶
func (q *Queries) RejectFederationFollower(ctx context.Context, arg RejectFederationFollowerParams) error
func (*Queries) RemoveFollowerByIRI ¶
func (*Queries) RemoveIPAddressBan ¶ added in v0.0.12
func (*Queries) RemoveNotificationDestinationForChannel ¶ added in v0.0.12
func (q *Queries) RemoveNotificationDestinationForChannel(ctx context.Context, arg RemoveNotificationDestinationForChannelParams) error
func (*Queries) SetAccessTokenToOwner ¶ added in v0.0.12
func (q *Queries) SetAccessTokenToOwner(ctx context.Context, arg SetAccessTokenToOwnerParams) error
func (*Queries) SetUserAsAuthenticated ¶ added in v0.0.12
func (*Queries) UpdateFollowerByIRI ¶
func (q *Queries) UpdateFollowerByIRI(ctx context.Context, arg UpdateFollowerByIRIParams) error
type RemoveNotificationDestinationForChannelParams ¶ added in v0.0.12
type SetAccessTokenToOwnerParams ¶ added in v0.0.12
type UpdateFollowerByIRIParams ¶
type UpdateFollowerByIRIParams struct { Inbox string Name sql.NullString Username string Image sql.NullString Iri string }
Click to show internal directories.
Click to hide internal directories.