Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func Biography(v string) predicate.User
- func BiographyContains(v string) predicate.User
- func BiographyContainsFold(v string) predicate.User
- func BiographyEQ(v string) predicate.User
- func BiographyEqualFold(v string) predicate.User
- func BiographyGT(v string) predicate.User
- func BiographyGTE(v string) predicate.User
- func BiographyHasPrefix(v string) predicate.User
- func BiographyHasSuffix(v string) predicate.User
- func BiographyIn(vs ...string) predicate.User
- func BiographyIsNil() predicate.User
- func BiographyLT(v string) predicate.User
- func BiographyLTE(v string) predicate.User
- func BiographyNEQ(v string) predicate.User
- func BiographyNotIn(vs ...string) predicate.User
- func BiographyNotNil() predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func DisplayName(v string) predicate.User
- func DisplayNameContains(v string) predicate.User
- func DisplayNameContainsFold(v string) predicate.User
- func DisplayNameEQ(v string) predicate.User
- func DisplayNameEqualFold(v string) predicate.User
- func DisplayNameGT(v string) predicate.User
- func DisplayNameGTE(v string) predicate.User
- func DisplayNameHasPrefix(v string) predicate.User
- func DisplayNameHasSuffix(v string) predicate.User
- func DisplayNameIn(vs ...string) predicate.User
- func DisplayNameIsNil() predicate.User
- func DisplayNameLT(v string) predicate.User
- func DisplayNameLTE(v string) predicate.User
- func DisplayNameNEQ(v string) predicate.User
- func DisplayNameNotIn(vs ...string) predicate.User
- func DisplayNameNotNil() predicate.User
- func Featured(v string) predicate.User
- func FeaturedContains(v string) predicate.User
- func FeaturedContainsFold(v string) predicate.User
- func FeaturedEQ(v string) predicate.User
- func FeaturedEqualFold(v string) predicate.User
- func FeaturedGT(v string) predicate.User
- func FeaturedGTE(v string) predicate.User
- func FeaturedHasPrefix(v string) predicate.User
- func FeaturedHasSuffix(v string) predicate.User
- func FeaturedIn(vs ...string) predicate.User
- func FeaturedLT(v string) predicate.User
- func FeaturedLTE(v string) predicate.User
- func FeaturedNEQ(v string) predicate.User
- func FeaturedNotIn(vs ...string) predicate.User
- func Followers(v string) predicate.User
- func FollowersContains(v string) predicate.User
- func FollowersContainsFold(v string) predicate.User
- func FollowersEQ(v string) predicate.User
- func FollowersEqualFold(v string) predicate.User
- func FollowersGT(v string) predicate.User
- func FollowersGTE(v string) predicate.User
- func FollowersHasPrefix(v string) predicate.User
- func FollowersHasSuffix(v string) predicate.User
- func FollowersIn(vs ...string) predicate.User
- func FollowersLT(v string) predicate.User
- func FollowersLTE(v string) predicate.User
- func FollowersNEQ(v string) predicate.User
- func FollowersNotIn(vs ...string) predicate.User
- func Following(v string) predicate.User
- func FollowingContains(v string) predicate.User
- func FollowingContainsFold(v string) predicate.User
- func FollowingEQ(v string) predicate.User
- func FollowingEqualFold(v string) predicate.User
- func FollowingGT(v string) predicate.User
- func FollowingGTE(v string) predicate.User
- func FollowingHasPrefix(v string) predicate.User
- func FollowingHasSuffix(v string) predicate.User
- func FollowingIn(vs ...string) predicate.User
- func FollowingLT(v string) predicate.User
- func FollowingLTE(v string) predicate.User
- func FollowingNEQ(v string) predicate.User
- func FollowingNotIn(vs ...string) predicate.User
- func HasAdministeredServers() predicate.User
- func HasAdministeredServersWith(preds ...predicate.InstanceMetadata) predicate.User
- func HasAuthoredNotes() predicate.User
- func HasAuthoredNotesWith(preds ...predicate.Note) predicate.User
- func HasAvatarImage() predicate.User
- func HasAvatarImageWith(preds ...predicate.Image) predicate.User
- func HasHeaderImage() predicate.User
- func HasHeaderImageWith(preds ...predicate.Image) predicate.User
- func HasMentionedNotes() predicate.User
- func HasMentionedNotesWith(preds ...predicate.Note) predicate.User
- func HasModeratedServers() predicate.User
- func HasModeratedServersWith(preds ...predicate.InstanceMetadata) predicate.User
- func HasServers() predicate.User
- func HasServersWith(preds ...predicate.InstanceMetadata) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func Inbox(v string) predicate.User
- func InboxContains(v string) predicate.User
- func InboxContainsFold(v string) predicate.User
- func InboxEQ(v string) predicate.User
- func InboxEqualFold(v string) predicate.User
- func InboxGT(v string) predicate.User
- func InboxGTE(v string) predicate.User
- func InboxHasPrefix(v string) predicate.User
- func InboxHasSuffix(v string) predicate.User
- func InboxIn(vs ...string) predicate.User
- func InboxLT(v string) predicate.User
- func InboxLTE(v string) predicate.User
- func InboxNEQ(v string) predicate.User
- func InboxNotIn(vs ...string) predicate.User
- func Indexable(v bool) predicate.User
- func IndexableEQ(v bool) predicate.User
- func IndexableNEQ(v bool) predicate.User
- func IsRemote(v bool) predicate.User
- func IsRemoteEQ(v bool) predicate.User
- func IsRemoteNEQ(v bool) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Outbox(v string) predicate.User
- func OutboxContains(v string) predicate.User
- func OutboxContainsFold(v string) predicate.User
- func OutboxEQ(v string) predicate.User
- func OutboxEqualFold(v string) predicate.User
- func OutboxGT(v string) predicate.User
- func OutboxGTE(v string) predicate.User
- func OutboxHasPrefix(v string) predicate.User
- func OutboxHasSuffix(v string) predicate.User
- func OutboxIn(vs ...string) predicate.User
- func OutboxLT(v string) predicate.User
- func OutboxLTE(v string) predicate.User
- func OutboxNEQ(v string) predicate.User
- func OutboxNotIn(vs ...string) predicate.User
- func PasswordHash(v []byte) predicate.User
- func PasswordHashEQ(v []byte) predicate.User
- func PasswordHashGT(v []byte) predicate.User
- func PasswordHashGTE(v []byte) predicate.User
- func PasswordHashIn(vs ...[]byte) predicate.User
- func PasswordHashIsNil() predicate.User
- func PasswordHashLT(v []byte) predicate.User
- func PasswordHashLTE(v []byte) predicate.User
- func PasswordHashNEQ(v []byte) predicate.User
- func PasswordHashNotIn(vs ...[]byte) predicate.User
- func PasswordHashNotNil() predicate.User
- func PrivacyLevelEQ(v PrivacyLevel) predicate.User
- func PrivacyLevelIn(vs ...PrivacyLevel) predicate.User
- func PrivacyLevelNEQ(v PrivacyLevel) predicate.User
- func PrivacyLevelNotIn(vs ...PrivacyLevel) predicate.User
- func PrivacyLevelValidator(pl PrivacyLevel) error
- func PrivateKey(v []byte) predicate.User
- func PrivateKeyEQ(v []byte) predicate.User
- func PrivateKeyGT(v []byte) predicate.User
- func PrivateKeyGTE(v []byte) predicate.User
- func PrivateKeyIn(vs ...[]byte) predicate.User
- func PrivateKeyIsNil() predicate.User
- func PrivateKeyLT(v []byte) predicate.User
- func PrivateKeyLTE(v []byte) predicate.User
- func PrivateKeyNEQ(v []byte) predicate.User
- func PrivateKeyNotIn(vs ...[]byte) predicate.User
- func PrivateKeyNotNil() predicate.User
- func PublicKey(v []byte) predicate.User
- func PublicKeyActor(v string) predicate.User
- func PublicKeyActorContains(v string) predicate.User
- func PublicKeyActorContainsFold(v string) predicate.User
- func PublicKeyActorEQ(v string) predicate.User
- func PublicKeyActorEqualFold(v string) predicate.User
- func PublicKeyActorGT(v string) predicate.User
- func PublicKeyActorGTE(v string) predicate.User
- func PublicKeyActorHasPrefix(v string) predicate.User
- func PublicKeyActorHasSuffix(v string) predicate.User
- func PublicKeyActorIn(vs ...string) predicate.User
- func PublicKeyActorLT(v string) predicate.User
- func PublicKeyActorLTE(v string) predicate.User
- func PublicKeyActorNEQ(v string) predicate.User
- func PublicKeyActorNotIn(vs ...string) predicate.User
- func PublicKeyAlgorithm(v string) predicate.User
- func PublicKeyAlgorithmContains(v string) predicate.User
- func PublicKeyAlgorithmContainsFold(v string) predicate.User
- func PublicKeyAlgorithmEQ(v string) predicate.User
- func PublicKeyAlgorithmEqualFold(v string) predicate.User
- func PublicKeyAlgorithmGT(v string) predicate.User
- func PublicKeyAlgorithmGTE(v string) predicate.User
- func PublicKeyAlgorithmHasPrefix(v string) predicate.User
- func PublicKeyAlgorithmHasSuffix(v string) predicate.User
- func PublicKeyAlgorithmIn(vs ...string) predicate.User
- func PublicKeyAlgorithmLT(v string) predicate.User
- func PublicKeyAlgorithmLTE(v string) predicate.User
- func PublicKeyAlgorithmNEQ(v string) predicate.User
- func PublicKeyAlgorithmNotIn(vs ...string) predicate.User
- func PublicKeyEQ(v []byte) predicate.User
- func PublicKeyGT(v []byte) predicate.User
- func PublicKeyGTE(v []byte) predicate.User
- func PublicKeyIn(vs ...[]byte) predicate.User
- func PublicKeyLT(v []byte) predicate.User
- func PublicKeyLTE(v []byte) predicate.User
- func PublicKeyNEQ(v []byte) predicate.User
- func PublicKeyNotIn(vs ...[]byte) predicate.User
- func URI(v string) predicate.User
- func URIContains(v string) predicate.User
- func URIContainsFold(v string) predicate.User
- func URIEQ(v string) predicate.User
- func URIEqualFold(v string) predicate.User
- func URIGT(v string) predicate.User
- func URIGTE(v string) predicate.User
- func URIHasPrefix(v string) predicate.User
- func URIHasSuffix(v string) predicate.User
- func URIIn(vs ...string) predicate.User
- func URILT(v string) predicate.User
- func URILTE(v string) predicate.User
- func URINEQ(v string) predicate.User
- func URINotIn(vs ...string) predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func Username(v string) predicate.User
- func UsernameContains(v string) predicate.User
- func UsernameContainsFold(v string) predicate.User
- func UsernameEQ(v string) predicate.User
- func UsernameEqualFold(v string) predicate.User
- func UsernameGT(v string) predicate.User
- func UsernameGTE(v string) predicate.User
- func UsernameHasPrefix(v string) predicate.User
- func UsernameHasSuffix(v string) predicate.User
- func UsernameIn(vs ...string) predicate.User
- func UsernameLT(v string) predicate.User
- func UsernameLTE(v string) predicate.User
- func UsernameNEQ(v string) predicate.User
- func UsernameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByAdministeredServers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAdministeredServersCount(opts ...sql.OrderTermOption) OrderOption
- func ByAuthoredNotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAuthoredNotesCount(opts ...sql.OrderTermOption) OrderOption
- func ByAvatarImageField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBiography(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByFeatured(opts ...sql.OrderTermOption) OrderOption
- func ByFollowers(opts ...sql.OrderTermOption) OrderOption
- func ByFollowing(opts ...sql.OrderTermOption) OrderOption
- func ByHeaderImageField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInbox(opts ...sql.OrderTermOption) OrderOption
- func ByIndexable(opts ...sql.OrderTermOption) OrderOption
- func ByIsRemote(opts ...sql.OrderTermOption) OrderOption
- func ByMentionedNotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMentionedNotesCount(opts ...sql.OrderTermOption) OrderOption
- func ByModeratedServers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByModeratedServersCount(opts ...sql.OrderTermOption) OrderOption
- func ByOutbox(opts ...sql.OrderTermOption) OrderOption
- func ByPrivacyLevel(opts ...sql.OrderTermOption) OrderOption
- func ByPublicKeyActor(opts ...sql.OrderTermOption) OrderOption
- func ByPublicKeyAlgorithm(opts ...sql.OrderTermOption) OrderOption
- func ByServers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByServersCount(opts ...sql.OrderTermOption) OrderOption
- func ByURI(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
- type PrivacyLevel
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIsRemote holds the string denoting the isremote field in the database. FieldIsRemote = "is_remote" // FieldURI holds the string denoting the uri field in the database. FieldURI = "uri" // FieldExtensions holds the string denoting the extensions field in the database. FieldExtensions = "extensions" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldPasswordHash holds the string denoting the passwordhash field in the database. FieldPasswordHash = "password_hash" // FieldDisplayName holds the string denoting the displayname field in the database. FieldDisplayName = "display_name" // FieldBiography holds the string denoting the biography field in the database. FieldBiography = "biography" // FieldPublicKey holds the string denoting the publickey field in the database. FieldPublicKey = "public_key" // FieldPublicKeyActor holds the string denoting the publickeyactor field in the database. FieldPublicKeyActor = "public_key_actor" // FieldPublicKeyAlgorithm holds the string denoting the publickeyalgorithm field in the database. FieldPublicKeyAlgorithm = "public_key_algorithm" // FieldPrivateKey holds the string denoting the privatekey field in the database. FieldPrivateKey = "private_key" // FieldIndexable holds the string denoting the indexable field in the database. FieldIndexable = "indexable" // FieldPrivacyLevel holds the string denoting the privacylevel field in the database. FieldPrivacyLevel = "privacy_level" // FieldFields holds the string denoting the fields field in the database. FieldFields = "fields" // FieldInbox holds the string denoting the inbox field in the database. FieldInbox = "inbox" // FieldFeatured holds the string denoting the featured field in the database. FieldFeatured = "featured" // FieldFollowers holds the string denoting the followers field in the database. FieldFollowers = "followers" // FieldFollowing holds the string denoting the following field in the database. FieldFollowing = "following" // FieldOutbox holds the string denoting the outbox field in the database. FieldOutbox = "outbox" // EdgeAvatarImage holds the string denoting the avatarimage edge name in mutations. EdgeAvatarImage = "avatarImage" // EdgeHeaderImage holds the string denoting the headerimage edge name in mutations. EdgeHeaderImage = "headerImage" // EdgeAuthoredNotes holds the string denoting the authorednotes edge name in mutations. EdgeAuthoredNotes = "authoredNotes" // EdgeMentionedNotes holds the string denoting the mentionednotes edge name in mutations. EdgeMentionedNotes = "mentionedNotes" // EdgeServers holds the string denoting the servers edge name in mutations. EdgeServers = "servers" // EdgeModeratedServers holds the string denoting the moderatedservers edge name in mutations. EdgeModeratedServers = "moderatedServers" // EdgeAdministeredServers holds the string denoting the administeredservers edge name in mutations. EdgeAdministeredServers = "administeredServers" // Table holds the table name of the user in the database. Table = "users" // AvatarImageTable is the table that holds the avatarImage relation/edge. AvatarImageTable = "users" // AvatarImageInverseTable is the table name for the Image entity. // It exists in this package in order to avoid circular dependency with the "image" package. AvatarImageInverseTable = "images" // AvatarImageColumn is the table column denoting the avatarImage relation/edge. AvatarImageColumn = "user_avatar_image" // HeaderImageTable is the table that holds the headerImage relation/edge. HeaderImageTable = "users" // HeaderImageInverseTable is the table name for the Image entity. // It exists in this package in order to avoid circular dependency with the "image" package. HeaderImageInverseTable = "images" // HeaderImageColumn is the table column denoting the headerImage relation/edge. HeaderImageColumn = "user_header_image" // AuthoredNotesTable is the table that holds the authoredNotes relation/edge. AuthoredNotesTable = "notes" // AuthoredNotesInverseTable is the table name for the Note entity. // It exists in this package in order to avoid circular dependency with the "note" package. AuthoredNotesInverseTable = "notes" // AuthoredNotesColumn is the table column denoting the authoredNotes relation/edge. AuthoredNotesColumn = "note_author" // MentionedNotesTable is the table that holds the mentionedNotes relation/edge. The primary key declared below. MentionedNotesTable = "note_mentions" // MentionedNotesInverseTable is the table name for the Note entity. // It exists in this package in order to avoid circular dependency with the "note" package. MentionedNotesInverseTable = "notes" // ServersTable is the table that holds the servers relation/edge. The primary key declared below. ServersTable = "instance_metadata_users" // ServersInverseTable is the table name for the InstanceMetadata entity. // It exists in this package in order to avoid circular dependency with the "instancemetadata" package. ServersInverseTable = "instance_metadata" // ModeratedServersTable is the table that holds the moderatedServers relation/edge. The primary key declared below. ModeratedServersTable = "instance_metadata_moderators" // ModeratedServersInverseTable is the table name for the InstanceMetadata entity. // It exists in this package in order to avoid circular dependency with the "instancemetadata" package. ModeratedServersInverseTable = "instance_metadata" // AdministeredServersTable is the table that holds the administeredServers relation/edge. The primary key declared below. AdministeredServersTable = "instance_metadata_admins" // AdministeredServersInverseTable is the table name for the InstanceMetadata entity. // It exists in this package in order to avoid circular dependency with the "instancemetadata" package. AdministeredServersInverseTable = "instance_metadata" )
const DefaultPrivacyLevel = PrivacyLevelPublic
PrivacyLevelPublic is the default value of the PrivacyLevel enum.
Variables ¶
var ( // MentionedNotesPrimaryKey and MentionedNotesColumn2 are the table columns denoting the // primary key for the mentionedNotes relation (M2M). MentionedNotesPrimaryKey = []string{"note_id", "user_id"} // ServersPrimaryKey and ServersColumn2 are the table columns denoting the // primary key for the servers relation (M2M). ServersPrimaryKey = []string{"instance_metadata_id", "user_id"} // ModeratedServersPrimaryKey and ModeratedServersColumn2 are the table columns denoting the // primary key for the moderatedServers relation (M2M). ModeratedServersPrimaryKey = []string{"instance_metadata_id", "user_id"} // AdministeredServersPrimaryKey and AdministeredServersColumn2 are the table columns denoting the // primary key for the administeredServers relation (M2M). AdministeredServersPrimaryKey = []string{"instance_metadata_id", "user_id"} )
var ( // URIValidator is a validator for the "uri" field. It is called by the builders before save. URIValidator func(string) error // DefaultExtensions holds the default value on creation for the "extensions" field. DefaultExtensions versia.Extensions // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // DisplayNameValidator is a validator for the "displayName" field. It is called by the builders before save. DisplayNameValidator func(string) error // DefaultIndexable holds the default value on creation for the "indexable" field. DefaultIndexable bool // DefaultFields holds the default value on creation for the "fields" field. DefaultFields []versia.UserField // InboxValidator is a validator for the "inbox" field. It is called by the builders before save. InboxValidator func(string) error // FeaturedValidator is a validator for the "featured" field. It is called by the builders before save. FeaturedValidator func(string) error // FollowersValidator is a validator for the "followers" field. It is called by the builders before save. FollowersValidator func(string) error // FollowingValidator is a validator for the "following" field. It is called by the builders before save. FollowingValidator func(string) error // OutboxValidator is a validator for the "outbox" field. It is called by the builders before save. OutboxValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldIsRemote, FieldURI, FieldExtensions, FieldCreatedAt, FieldUpdatedAt, FieldUsername, FieldPasswordHash, FieldDisplayName, FieldBiography, FieldPublicKey, FieldPublicKeyActor, FieldPublicKeyAlgorithm, FieldPrivateKey, FieldIndexable, FieldPrivacyLevel, FieldFields, FieldInbox, FieldFeatured, FieldFollowers, FieldFollowing, FieldOutbox, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"user_avatar_image",
"user_header_image",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "users" table and are not defined as standalone fields in the schema.
Functions ¶
func Biography ¶
Biography applies equality check predicate on the "biography" field. It's identical to BiographyEQ.
func BiographyContains ¶
BiographyContains applies the Contains predicate on the "biography" field.
func BiographyContainsFold ¶
BiographyContainsFold applies the ContainsFold predicate on the "biography" field.
func BiographyEQ ¶
BiographyEQ applies the EQ predicate on the "biography" field.
func BiographyEqualFold ¶
BiographyEqualFold applies the EqualFold predicate on the "biography" field.
func BiographyGT ¶
BiographyGT applies the GT predicate on the "biography" field.
func BiographyGTE ¶
BiographyGTE applies the GTE predicate on the "biography" field.
func BiographyHasPrefix ¶
BiographyHasPrefix applies the HasPrefix predicate on the "biography" field.
func BiographyHasSuffix ¶
BiographyHasSuffix applies the HasSuffix predicate on the "biography" field.
func BiographyIn ¶
BiographyIn applies the In predicate on the "biography" field.
func BiographyIsNil ¶
BiographyIsNil applies the IsNil predicate on the "biography" field.
func BiographyLT ¶
BiographyLT applies the LT predicate on the "biography" field.
func BiographyLTE ¶
BiographyLTE applies the LTE predicate on the "biography" field.
func BiographyNEQ ¶
BiographyNEQ applies the NEQ predicate on the "biography" field.
func BiographyNotIn ¶
BiographyNotIn applies the NotIn predicate on the "biography" field.
func BiographyNotNil ¶
BiographyNotNil applies the NotNil predicate on the "biography" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DisplayName ¶
DisplayName applies equality check predicate on the "displayName" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "displayName" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "displayName" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "displayName" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "displayName" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "displayName" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "displayName" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "displayName" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "displayName" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "displayName" field.
func DisplayNameIsNil ¶
DisplayNameIsNil applies the IsNil predicate on the "displayName" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "displayName" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "displayName" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "displayName" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "displayName" field.
func DisplayNameNotNil ¶
DisplayNameNotNil applies the NotNil predicate on the "displayName" field.
func Featured ¶
Featured applies equality check predicate on the "featured" field. It's identical to FeaturedEQ.
func FeaturedContains ¶
FeaturedContains applies the Contains predicate on the "featured" field.
func FeaturedContainsFold ¶
FeaturedContainsFold applies the ContainsFold predicate on the "featured" field.
func FeaturedEQ ¶
FeaturedEQ applies the EQ predicate on the "featured" field.
func FeaturedEqualFold ¶
FeaturedEqualFold applies the EqualFold predicate on the "featured" field.
func FeaturedGT ¶
FeaturedGT applies the GT predicate on the "featured" field.
func FeaturedGTE ¶
FeaturedGTE applies the GTE predicate on the "featured" field.
func FeaturedHasPrefix ¶
FeaturedHasPrefix applies the HasPrefix predicate on the "featured" field.
func FeaturedHasSuffix ¶
FeaturedHasSuffix applies the HasSuffix predicate on the "featured" field.
func FeaturedIn ¶
FeaturedIn applies the In predicate on the "featured" field.
func FeaturedLT ¶
FeaturedLT applies the LT predicate on the "featured" field.
func FeaturedLTE ¶
FeaturedLTE applies the LTE predicate on the "featured" field.
func FeaturedNEQ ¶
FeaturedNEQ applies the NEQ predicate on the "featured" field.
func FeaturedNotIn ¶
FeaturedNotIn applies the NotIn predicate on the "featured" field.
func Followers ¶
Followers applies equality check predicate on the "followers" field. It's identical to FollowersEQ.
func FollowersContains ¶
FollowersContains applies the Contains predicate on the "followers" field.
func FollowersContainsFold ¶
FollowersContainsFold applies the ContainsFold predicate on the "followers" field.
func FollowersEQ ¶
FollowersEQ applies the EQ predicate on the "followers" field.
func FollowersEqualFold ¶
FollowersEqualFold applies the EqualFold predicate on the "followers" field.
func FollowersGT ¶
FollowersGT applies the GT predicate on the "followers" field.
func FollowersGTE ¶
FollowersGTE applies the GTE predicate on the "followers" field.
func FollowersHasPrefix ¶
FollowersHasPrefix applies the HasPrefix predicate on the "followers" field.
func FollowersHasSuffix ¶
FollowersHasSuffix applies the HasSuffix predicate on the "followers" field.
func FollowersIn ¶
FollowersIn applies the In predicate on the "followers" field.
func FollowersLT ¶
FollowersLT applies the LT predicate on the "followers" field.
func FollowersLTE ¶
FollowersLTE applies the LTE predicate on the "followers" field.
func FollowersNEQ ¶
FollowersNEQ applies the NEQ predicate on the "followers" field.
func FollowersNotIn ¶
FollowersNotIn applies the NotIn predicate on the "followers" field.
func Following ¶
Following applies equality check predicate on the "following" field. It's identical to FollowingEQ.
func FollowingContains ¶
FollowingContains applies the Contains predicate on the "following" field.
func FollowingContainsFold ¶
FollowingContainsFold applies the ContainsFold predicate on the "following" field.
func FollowingEQ ¶
FollowingEQ applies the EQ predicate on the "following" field.
func FollowingEqualFold ¶
FollowingEqualFold applies the EqualFold predicate on the "following" field.
func FollowingGT ¶
FollowingGT applies the GT predicate on the "following" field.
func FollowingGTE ¶
FollowingGTE applies the GTE predicate on the "following" field.
func FollowingHasPrefix ¶
FollowingHasPrefix applies the HasPrefix predicate on the "following" field.
func FollowingHasSuffix ¶
FollowingHasSuffix applies the HasSuffix predicate on the "following" field.
func FollowingIn ¶
FollowingIn applies the In predicate on the "following" field.
func FollowingLT ¶
FollowingLT applies the LT predicate on the "following" field.
func FollowingLTE ¶
FollowingLTE applies the LTE predicate on the "following" field.
func FollowingNEQ ¶
FollowingNEQ applies the NEQ predicate on the "following" field.
func FollowingNotIn ¶
FollowingNotIn applies the NotIn predicate on the "following" field.
func HasAdministeredServers ¶
HasAdministeredServers applies the HasEdge predicate on the "administeredServers" edge.
func HasAdministeredServersWith ¶
func HasAdministeredServersWith(preds ...predicate.InstanceMetadata) predicate.User
HasAdministeredServersWith applies the HasEdge predicate on the "administeredServers" edge with a given conditions (other predicates).
func HasAuthoredNotes ¶
HasAuthoredNotes applies the HasEdge predicate on the "authoredNotes" edge.
func HasAuthoredNotesWith ¶
HasAuthoredNotesWith applies the HasEdge predicate on the "authoredNotes" edge with a given conditions (other predicates).
func HasAvatarImage ¶
HasAvatarImage applies the HasEdge predicate on the "avatarImage" edge.
func HasAvatarImageWith ¶
HasAvatarImageWith applies the HasEdge predicate on the "avatarImage" edge with a given conditions (other predicates).
func HasHeaderImage ¶
HasHeaderImage applies the HasEdge predicate on the "headerImage" edge.
func HasHeaderImageWith ¶
HasHeaderImageWith applies the HasEdge predicate on the "headerImage" edge with a given conditions (other predicates).
func HasMentionedNotes ¶
HasMentionedNotes applies the HasEdge predicate on the "mentionedNotes" edge.
func HasMentionedNotesWith ¶
HasMentionedNotesWith applies the HasEdge predicate on the "mentionedNotes" edge with a given conditions (other predicates).
func HasModeratedServers ¶
HasModeratedServers applies the HasEdge predicate on the "moderatedServers" edge.
func HasModeratedServersWith ¶
func HasModeratedServersWith(preds ...predicate.InstanceMetadata) predicate.User
HasModeratedServersWith applies the HasEdge predicate on the "moderatedServers" edge with a given conditions (other predicates).
func HasServers ¶
HasServers applies the HasEdge predicate on the "servers" edge.
func HasServersWith ¶
func HasServersWith(preds ...predicate.InstanceMetadata) predicate.User
HasServersWith applies the HasEdge predicate on the "servers" edge with a given conditions (other predicates).
func Inbox ¶
Inbox applies equality check predicate on the "inbox" field. It's identical to InboxEQ.
func InboxContains ¶
InboxContains applies the Contains predicate on the "inbox" field.
func InboxContainsFold ¶
InboxContainsFold applies the ContainsFold predicate on the "inbox" field.
func InboxEqualFold ¶
InboxEqualFold applies the EqualFold predicate on the "inbox" field.
func InboxHasPrefix ¶
InboxHasPrefix applies the HasPrefix predicate on the "inbox" field.
func InboxHasSuffix ¶
InboxHasSuffix applies the HasSuffix predicate on the "inbox" field.
func InboxNotIn ¶
InboxNotIn applies the NotIn predicate on the "inbox" field.
func Indexable ¶
Indexable applies equality check predicate on the "indexable" field. It's identical to IndexableEQ.
func IndexableEQ ¶
IndexableEQ applies the EQ predicate on the "indexable" field.
func IndexableNEQ ¶
IndexableNEQ applies the NEQ predicate on the "indexable" field.
func IsRemote ¶
IsRemote applies equality check predicate on the "isRemote" field. It's identical to IsRemoteEQ.
func IsRemoteEQ ¶
IsRemoteEQ applies the EQ predicate on the "isRemote" field.
func IsRemoteNEQ ¶
IsRemoteNEQ applies the NEQ predicate on the "isRemote" field.
func Outbox ¶
Outbox applies equality check predicate on the "outbox" field. It's identical to OutboxEQ.
func OutboxContains ¶
OutboxContains applies the Contains predicate on the "outbox" field.
func OutboxContainsFold ¶
OutboxContainsFold applies the ContainsFold predicate on the "outbox" field.
func OutboxEqualFold ¶
OutboxEqualFold applies the EqualFold predicate on the "outbox" field.
func OutboxHasPrefix ¶
OutboxHasPrefix applies the HasPrefix predicate on the "outbox" field.
func OutboxHasSuffix ¶
OutboxHasSuffix applies the HasSuffix predicate on the "outbox" field.
func OutboxNotIn ¶
OutboxNotIn applies the NotIn predicate on the "outbox" field.
func PasswordHash ¶
PasswordHash applies equality check predicate on the "passwordHash" field. It's identical to PasswordHashEQ.
func PasswordHashEQ ¶
PasswordHashEQ applies the EQ predicate on the "passwordHash" field.
func PasswordHashGT ¶
PasswordHashGT applies the GT predicate on the "passwordHash" field.
func PasswordHashGTE ¶
PasswordHashGTE applies the GTE predicate on the "passwordHash" field.
func PasswordHashIn ¶
PasswordHashIn applies the In predicate on the "passwordHash" field.
func PasswordHashIsNil ¶
PasswordHashIsNil applies the IsNil predicate on the "passwordHash" field.
func PasswordHashLT ¶
PasswordHashLT applies the LT predicate on the "passwordHash" field.
func PasswordHashLTE ¶
PasswordHashLTE applies the LTE predicate on the "passwordHash" field.
func PasswordHashNEQ ¶
PasswordHashNEQ applies the NEQ predicate on the "passwordHash" field.
func PasswordHashNotIn ¶
PasswordHashNotIn applies the NotIn predicate on the "passwordHash" field.
func PasswordHashNotNil ¶
PasswordHashNotNil applies the NotNil predicate on the "passwordHash" field.
func PrivacyLevelEQ ¶
func PrivacyLevelEQ(v PrivacyLevel) predicate.User
PrivacyLevelEQ applies the EQ predicate on the "privacyLevel" field.
func PrivacyLevelIn ¶
func PrivacyLevelIn(vs ...PrivacyLevel) predicate.User
PrivacyLevelIn applies the In predicate on the "privacyLevel" field.
func PrivacyLevelNEQ ¶
func PrivacyLevelNEQ(v PrivacyLevel) predicate.User
PrivacyLevelNEQ applies the NEQ predicate on the "privacyLevel" field.
func PrivacyLevelNotIn ¶
func PrivacyLevelNotIn(vs ...PrivacyLevel) predicate.User
PrivacyLevelNotIn applies the NotIn predicate on the "privacyLevel" field.
func PrivacyLevelValidator ¶
func PrivacyLevelValidator(pl PrivacyLevel) error
PrivacyLevelValidator is a validator for the "privacyLevel" field enum values. It is called by the builders before save.
func PrivateKey ¶
PrivateKey applies equality check predicate on the "privateKey" field. It's identical to PrivateKeyEQ.
func PrivateKeyEQ ¶
PrivateKeyEQ applies the EQ predicate on the "privateKey" field.
func PrivateKeyGT ¶
PrivateKeyGT applies the GT predicate on the "privateKey" field.
func PrivateKeyGTE ¶
PrivateKeyGTE applies the GTE predicate on the "privateKey" field.
func PrivateKeyIn ¶
PrivateKeyIn applies the In predicate on the "privateKey" field.
func PrivateKeyIsNil ¶
PrivateKeyIsNil applies the IsNil predicate on the "privateKey" field.
func PrivateKeyLT ¶
PrivateKeyLT applies the LT predicate on the "privateKey" field.
func PrivateKeyLTE ¶
PrivateKeyLTE applies the LTE predicate on the "privateKey" field.
func PrivateKeyNEQ ¶
PrivateKeyNEQ applies the NEQ predicate on the "privateKey" field.
func PrivateKeyNotIn ¶
PrivateKeyNotIn applies the NotIn predicate on the "privateKey" field.
func PrivateKeyNotNil ¶
PrivateKeyNotNil applies the NotNil predicate on the "privateKey" field.
func PublicKey ¶
PublicKey applies equality check predicate on the "publicKey" field. It's identical to PublicKeyEQ.
func PublicKeyActor ¶
PublicKeyActor applies equality check predicate on the "publicKeyActor" field. It's identical to PublicKeyActorEQ.
func PublicKeyActorContains ¶
PublicKeyActorContains applies the Contains predicate on the "publicKeyActor" field.
func PublicKeyActorContainsFold ¶
PublicKeyActorContainsFold applies the ContainsFold predicate on the "publicKeyActor" field.
func PublicKeyActorEQ ¶
PublicKeyActorEQ applies the EQ predicate on the "publicKeyActor" field.
func PublicKeyActorEqualFold ¶
PublicKeyActorEqualFold applies the EqualFold predicate on the "publicKeyActor" field.
func PublicKeyActorGT ¶
PublicKeyActorGT applies the GT predicate on the "publicKeyActor" field.
func PublicKeyActorGTE ¶
PublicKeyActorGTE applies the GTE predicate on the "publicKeyActor" field.
func PublicKeyActorHasPrefix ¶
PublicKeyActorHasPrefix applies the HasPrefix predicate on the "publicKeyActor" field.
func PublicKeyActorHasSuffix ¶
PublicKeyActorHasSuffix applies the HasSuffix predicate on the "publicKeyActor" field.
func PublicKeyActorIn ¶
PublicKeyActorIn applies the In predicate on the "publicKeyActor" field.
func PublicKeyActorLT ¶
PublicKeyActorLT applies the LT predicate on the "publicKeyActor" field.
func PublicKeyActorLTE ¶
PublicKeyActorLTE applies the LTE predicate on the "publicKeyActor" field.
func PublicKeyActorNEQ ¶
PublicKeyActorNEQ applies the NEQ predicate on the "publicKeyActor" field.
func PublicKeyActorNotIn ¶
PublicKeyActorNotIn applies the NotIn predicate on the "publicKeyActor" field.
func PublicKeyAlgorithm ¶
PublicKeyAlgorithm applies equality check predicate on the "publicKeyAlgorithm" field. It's identical to PublicKeyAlgorithmEQ.
func PublicKeyAlgorithmContains ¶
PublicKeyAlgorithmContains applies the Contains predicate on the "publicKeyAlgorithm" field.
func PublicKeyAlgorithmContainsFold ¶
PublicKeyAlgorithmContainsFold applies the ContainsFold predicate on the "publicKeyAlgorithm" field.
func PublicKeyAlgorithmEQ ¶
PublicKeyAlgorithmEQ applies the EQ predicate on the "publicKeyAlgorithm" field.
func PublicKeyAlgorithmEqualFold ¶
PublicKeyAlgorithmEqualFold applies the EqualFold predicate on the "publicKeyAlgorithm" field.
func PublicKeyAlgorithmGT ¶
PublicKeyAlgorithmGT applies the GT predicate on the "publicKeyAlgorithm" field.
func PublicKeyAlgorithmGTE ¶
PublicKeyAlgorithmGTE applies the GTE predicate on the "publicKeyAlgorithm" field.
func PublicKeyAlgorithmHasPrefix ¶
PublicKeyAlgorithmHasPrefix applies the HasPrefix predicate on the "publicKeyAlgorithm" field.
func PublicKeyAlgorithmHasSuffix ¶
PublicKeyAlgorithmHasSuffix applies the HasSuffix predicate on the "publicKeyAlgorithm" field.
func PublicKeyAlgorithmIn ¶
PublicKeyAlgorithmIn applies the In predicate on the "publicKeyAlgorithm" field.
func PublicKeyAlgorithmLT ¶
PublicKeyAlgorithmLT applies the LT predicate on the "publicKeyAlgorithm" field.
func PublicKeyAlgorithmLTE ¶
PublicKeyAlgorithmLTE applies the LTE predicate on the "publicKeyAlgorithm" field.
func PublicKeyAlgorithmNEQ ¶
PublicKeyAlgorithmNEQ applies the NEQ predicate on the "publicKeyAlgorithm" field.
func PublicKeyAlgorithmNotIn ¶
PublicKeyAlgorithmNotIn applies the NotIn predicate on the "publicKeyAlgorithm" field.
func PublicKeyEQ ¶
PublicKeyEQ applies the EQ predicate on the "publicKey" field.
func PublicKeyGT ¶
PublicKeyGT applies the GT predicate on the "publicKey" field.
func PublicKeyGTE ¶
PublicKeyGTE applies the GTE predicate on the "publicKey" field.
func PublicKeyIn ¶
PublicKeyIn applies the In predicate on the "publicKey" field.
func PublicKeyLT ¶
PublicKeyLT applies the LT predicate on the "publicKey" field.
func PublicKeyLTE ¶
PublicKeyLTE applies the LTE predicate on the "publicKey" field.
func PublicKeyNEQ ¶
PublicKeyNEQ applies the NEQ predicate on the "publicKey" field.
func PublicKeyNotIn ¶
PublicKeyNotIn applies the NotIn predicate on the "publicKey" field.
func URIContains ¶
URIContains applies the Contains predicate on the "uri" field.
func URIContainsFold ¶
URIContainsFold applies the ContainsFold predicate on the "uri" field.
func URIEqualFold ¶
URIEqualFold applies the EqualFold predicate on the "uri" field.
func URIHasPrefix ¶
URIHasPrefix applies the HasPrefix predicate on the "uri" field.
func URIHasSuffix ¶
URIHasSuffix applies the HasSuffix predicate on the "uri" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAdministeredServers ¶
func ByAdministeredServers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAdministeredServers orders the results by administeredServers terms.
func ByAdministeredServersCount ¶
func ByAdministeredServersCount(opts ...sql.OrderTermOption) OrderOption
ByAdministeredServersCount orders the results by administeredServers count.
func ByAuthoredNotes ¶
func ByAuthoredNotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAuthoredNotes orders the results by authoredNotes terms.
func ByAuthoredNotesCount ¶
func ByAuthoredNotesCount(opts ...sql.OrderTermOption) OrderOption
ByAuthoredNotesCount orders the results by authoredNotes count.
func ByAvatarImageField ¶
func ByAvatarImageField(field string, opts ...sql.OrderTermOption) OrderOption
ByAvatarImageField orders the results by avatarImage field.
func ByBiography ¶
func ByBiography(opts ...sql.OrderTermOption) OrderOption
ByBiography orders the results by the biography field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDisplayName ¶
func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
ByDisplayName orders the results by the displayName field.
func ByFeatured ¶
func ByFeatured(opts ...sql.OrderTermOption) OrderOption
ByFeatured orders the results by the featured field.
func ByFollowers ¶
func ByFollowers(opts ...sql.OrderTermOption) OrderOption
ByFollowers orders the results by the followers field.
func ByFollowing ¶
func ByFollowing(opts ...sql.OrderTermOption) OrderOption
ByFollowing orders the results by the following field.
func ByHeaderImageField ¶
func ByHeaderImageField(field string, opts ...sql.OrderTermOption) OrderOption
ByHeaderImageField orders the results by headerImage field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInbox ¶
func ByInbox(opts ...sql.OrderTermOption) OrderOption
ByInbox orders the results by the inbox field.
func ByIndexable ¶
func ByIndexable(opts ...sql.OrderTermOption) OrderOption
ByIndexable orders the results by the indexable field.
func ByIsRemote ¶
func ByIsRemote(opts ...sql.OrderTermOption) OrderOption
ByIsRemote orders the results by the isRemote field.
func ByMentionedNotes ¶
func ByMentionedNotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMentionedNotes orders the results by mentionedNotes terms.
func ByMentionedNotesCount ¶
func ByMentionedNotesCount(opts ...sql.OrderTermOption) OrderOption
ByMentionedNotesCount orders the results by mentionedNotes count.
func ByModeratedServers ¶
func ByModeratedServers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByModeratedServers orders the results by moderatedServers terms.
func ByModeratedServersCount ¶
func ByModeratedServersCount(opts ...sql.OrderTermOption) OrderOption
ByModeratedServersCount orders the results by moderatedServers count.
func ByOutbox ¶
func ByOutbox(opts ...sql.OrderTermOption) OrderOption
ByOutbox orders the results by the outbox field.
func ByPrivacyLevel ¶
func ByPrivacyLevel(opts ...sql.OrderTermOption) OrderOption
ByPrivacyLevel orders the results by the privacyLevel field.
func ByPublicKeyActor ¶
func ByPublicKeyActor(opts ...sql.OrderTermOption) OrderOption
ByPublicKeyActor orders the results by the publicKeyActor field.
func ByPublicKeyAlgorithm ¶
func ByPublicKeyAlgorithm(opts ...sql.OrderTermOption) OrderOption
ByPublicKeyAlgorithm orders the results by the publicKeyAlgorithm field.
func ByServers ¶
func ByServers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByServers orders the results by servers terms.
func ByServersCount ¶
func ByServersCount(opts ...sql.OrderTermOption) OrderOption
ByServersCount orders the results by servers count.
func ByURI ¶
func ByURI(opts ...sql.OrderTermOption) OrderOption
ByURI orders the results by the uri field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsername ¶
func ByUsername(opts ...sql.OrderTermOption) OrderOption
ByUsername orders the results by the username field.
type PrivacyLevel ¶
type PrivacyLevel string
PrivacyLevel defines the type for the "privacyLevel" enum field.
const ( PrivacyLevelPublic PrivacyLevel = "public" PrivacyLevelRestricted PrivacyLevel = "restricted" PrivacyLevelPrivate PrivacyLevel = "private" )
PrivacyLevel values.
func (PrivacyLevel) String ¶
func (pl PrivacyLevel) String() string