Documentation
¶
Index ¶
- func Count(ctx context.Context, conn *pgx.Conn, b sqlbuilder.SelectBuilder) (int64, error)
- func Delete[T any]() (db *sqlbuilder.DeleteBuilder)
- func Exec(ctx context.Context, conn *pgx.Conn, b sqlbuilder.Builder) (int64, error)
- func For[T any]() *sqlbuilder.Struct
- func Insert[T any](rows ...T) (ib *sqlbuilder.InsertBuilder)
- func Of[T any](t T) *sqlbuilder.Struct
- func QueryAll[T any](ctx context.Context, conn *pgx.Conn, b sqlbuilder.Builder) (rows []T, err error)
- func QueryFirst[T any](ctx context.Context, conn *pgx.Conn, b sqlbuilder.Builder) (row T, err error)
- func QueryOne[T any](ctx context.Context, conn *pgx.Conn, b sqlbuilder.Builder) (row T, err error)
- func Select[T any]() (sb *sqlbuilder.SelectBuilder)
- func TableName[T any]() string
- func Update[T any]() (ub *sqlbuilder.UpdateBuilder)
- type Account
- type AccountAuthorization
- type AccountBlock
- type AccountConfiguration
- type AccountInstanceBlock
- type AccountSession
- type Announcement
- type Color
- type CustomEmoji
- type Emoji
- type EmojiAlias
- type EmojiTag
- type FederationConfiguration
- type File
- type FileReport
- type FileRevision
- type Filter
- type FilterKeyword
- type Group
- type GroupAdmin
- type GroupBan
- type GroupConfiguration
- type GroupMember
- type GroupMemberInvite
- type GroupMemberRequest
- type GroupReport
- type Instance
- type InstanceAdmin
- type InstanceBlock
- type InstanceProfile
- type InstanceReport
- type LimitsConfiguration
- type Poll
- type PollOption
- type PollOptionRevision
- type PollVote
- type Post
- type PostAttachment
- type PostFavorite
- type PostGroupTag
- type PostPoll
- type PostReaction
- type PostReport
- type PostRevision
- type PostSchedule
- type PostTag
- type PostWithContent
- type Profile
- type ProfileConfiguration
- type ProfileConnection
- type ProfileConnectionRequest
- type ProfileField
- type ProfileFilter
- type ProfileGroupConfiguration
- type ProfileInstanceMute
- type ProfileMute
- type ProfileReport
- type RegistrationConfiguration
- type SettingTernary
- type Timeline
- type TimelineConfiguration
- type TimelineFilter
- type TimelineGroup
- type TimelinePost
- type TimelineProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Count ¶
func Count(ctx context.Context, conn *pgx.Conn, b sqlbuilder.SelectBuilder) (int64, error)
func Delete ¶
func Delete[T any]() (db *sqlbuilder.DeleteBuilder)
func For ¶
func For[T any]() *sqlbuilder.Struct
func Insert ¶
func Insert[T any](rows ...T) (ib *sqlbuilder.InsertBuilder)
func Of ¶
func Of[T any](t T) *sqlbuilder.Struct
func QueryFirst ¶
func Select ¶
func Select[T any]() (sb *sqlbuilder.SelectBuilder)
func Update ¶
func Update[T any]() (ub *sqlbuilder.UpdateBuilder)
Types ¶
type AccountAuthorization ¶
type AccountBlock ¶
type AccountConfiguration ¶
type AccountInstanceBlock ¶
type AccountSession ¶
type Announcement ¶
type CustomEmoji ¶
type EmojiAlias ¶
type FederationConfiguration ¶
type FileReport ¶
type FileReport struct {
ID uuid.UUID `db:"id"`
FileID uuid.UUID `db:"file_id"`
ReporterID uuid.UUID `db:"reporter_id"`
Content string `db:"content"`
GroupReportID uuid.NullUUID `db:"group_report_id"`
ProfileReportID uuid.NullUUID `db:"profile_report_id"`
PostReportID uuid.NullUUID `db:"post_report_id"`
CreatedAt time.Time `db:"created_at"`
}
type FileRevision ¶
type FilterKeyword ¶
type Group ¶
type Group struct {
ID uuid.UUID `db:"id"`
InstanceID uuid.UUID `db:"instance_id"`
Name string `db:"name"`
DisplayName string `db:"display_name"`
Description string `db:"description"`
AvatarFileID uuid.NullUUID `db:"avatar_file_id"`
HeaderFileID uuid.NullUUID `db:"header_file_id"`
BackgroundFileID uuid.NullUUID `db:"background_file_id"`
AccentColor *Color `db:"accent_color"`
Private bool `db:"private"`
CreatedAt time.Time `db:"created_at"`
}
type GroupAdmin ¶
type GroupConfiguration ¶
type GroupMember ¶
type GroupMemberInvite ¶
type GroupMemberRequest ¶
type GroupReport ¶
type InstanceAdmin ¶
type InstanceBlock ¶
type InstanceProfile ¶
type InstanceReport ¶
type LimitsConfiguration ¶
type LimitsConfiguration struct {
InstanceID uuid.UUID `db:"instance_id"`
Accounts struct {
ProfilesLimit uint `db:"profiles_limit"`
} `db:"accounts"`
Profiles struct {
NameCharacterLimit uint `db:"name_character_limit"`
DisplayNameCharacterLimit uint `db:"display_name_character_limit"`
DescriptionCharacterLimit uint `db:"description_character_limit"`
TimelinesLimit uint `db:"timelines_limit"`
} `db:"profiles"`
Groups struct {
NameCharacterLimit uint `db:"name_character_limit"`
DisplayNameCharacterLimit uint `db:"display_name_character_limit"`
DescriptionCharacterLimit uint `db:"description_character_limit"`
} `db:"groups"`
Posts struct {
CharacterLimit uint `db:"character_limit"`
AttachmentsLimit uint `db:"attachments_limit"`
PollsLimit uint `db:"polls_limit"`
} `db:"posts"`
Poll struct {
OptionsLimit uint `db:"options_limit"`
OptionCharacterLimit uint `db:"option_character_limit"`
} `db:"polls"`
Filters struct {
KeywordsLimit uint `db:"keywords_limit"`
KeywordCharacterLimit uint `db:"keyword_character_limit"`
} `db:"filters"`
}
type PollOption ¶
type PollOptionRevision ¶
type PostAttachment ¶
type PostFavorite ¶
type PostGroupTag ¶
type PostReaction ¶
type PostReport ¶
type PostRevision ¶
type PostSchedule ¶
type PostWithContent ¶
type PostWithContent struct {
ID uuid.UUID `db:"id"`
Version uint `db:"version"`
ProfileID uuid.UUID `db:"profile_id"`
ReplyToID uuid.NullUUID `db:"reply_to_id"`
GroupID uuid.NullUUID `db:"group_id"`
Subject *string `db:"subject"`
Content string `db:"content"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
type Profile ¶
type Profile struct {
ID uuid.UUID `db:"id"`
AccountID uuid.UUID `db:"account_id"`
Name *string `db:"name"`
DisplayName *string `db:"display_name"`
Description *string `db:"description"`
AvatarFileID uuid.NullUUID `db:"avatar_file_id"`
HeaderFileID uuid.NullUUID `db:"header_file_id"`
BackgroundFileID uuid.NullUUID `db:"background_file_id"`
AccentColor *Color `db:"accent_color"`
CreatedAt time.Time `db:"created_at"`
DeletedAt *time.Time `db:"deleted_at"`
}
type ProfileConfiguration ¶
type ProfileConfiguration struct {
ProfileID uuid.UUID `db:"profile_id"`
ConnectionRequests SettingTernary `db:"connection_requests"`
ShowConnections SettingTernary `db:"show_connections"`
}
type ProfileConnection ¶
type ProfileField ¶
type ProfileFilter ¶
type ProfileGroupConfiguration ¶
type ProfileGroupConfiguration struct {
ProfileID uuid.UUID `db:"profile_id"`
GroupID uuid.UUID `db:"group_id"`
ConnectionRequests SettingTernary `db:"connection_requests"`
ShowConnections SettingTernary `db:"show_connections"`
}
type ProfileInstanceMute ¶
type ProfileMute ¶
type ProfileReport ¶
type RegistrationConfiguration ¶
type RegistrationConfiguration struct {
InstanceID uuid.UUID `db:"instance_id"`
AllowRegistration SettingTernary `db:"allow_registration"`
}
type SettingTernary ¶
type SettingTernary string
const ( SettingEnabled SettingTernary = "enabled" SettingPartial SettingTernary = "partial" SettingDisabled SettingTernary = "disabled" )
func (*SettingTernary) Scan ¶
func (ternary *SettingTernary) Scan(value any) error
func (SettingTernary) Valid ¶
func (ternary SettingTernary) Valid() bool
type TimelineConfiguration ¶
type TimelineFilter ¶
type TimelineGroup ¶
type TimelinePost ¶
Click to show internal directories.
Click to hide internal directories.