user

package
v0.0.0-...-02ad720 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultPrivacyLevel = PrivacyLevelPublic

PrivacyLevelPublic is the default value of the PrivacyLevel enum.

Variables

View Source
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"}
)
View Source
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
)

Columns holds all SQL columns for user fields.

View Source
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 And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func Biography

func Biography(v string) predicate.User

Biography applies equality check predicate on the "biography" field. It's identical to BiographyEQ.

func BiographyContains

func BiographyContains(v string) predicate.User

BiographyContains applies the Contains predicate on the "biography" field.

func BiographyContainsFold

func BiographyContainsFold(v string) predicate.User

BiographyContainsFold applies the ContainsFold predicate on the "biography" field.

func BiographyEQ

func BiographyEQ(v string) predicate.User

BiographyEQ applies the EQ predicate on the "biography" field.

func BiographyEqualFold

func BiographyEqualFold(v string) predicate.User

BiographyEqualFold applies the EqualFold predicate on the "biography" field.

func BiographyGT

func BiographyGT(v string) predicate.User

BiographyGT applies the GT predicate on the "biography" field.

func BiographyGTE

func BiographyGTE(v string) predicate.User

BiographyGTE applies the GTE predicate on the "biography" field.

func BiographyHasPrefix

func BiographyHasPrefix(v string) predicate.User

BiographyHasPrefix applies the HasPrefix predicate on the "biography" field.

func BiographyHasSuffix

func BiographyHasSuffix(v string) predicate.User

BiographyHasSuffix applies the HasSuffix predicate on the "biography" field.

func BiographyIn

func BiographyIn(vs ...string) predicate.User

BiographyIn applies the In predicate on the "biography" field.

func BiographyIsNil

func BiographyIsNil() predicate.User

BiographyIsNil applies the IsNil predicate on the "biography" field.

func BiographyLT

func BiographyLT(v string) predicate.User

BiographyLT applies the LT predicate on the "biography" field.

func BiographyLTE

func BiographyLTE(v string) predicate.User

BiographyLTE applies the LTE predicate on the "biography" field.

func BiographyNEQ

func BiographyNEQ(v string) predicate.User

BiographyNEQ applies the NEQ predicate on the "biography" field.

func BiographyNotIn

func BiographyNotIn(vs ...string) predicate.User

BiographyNotIn applies the NotIn predicate on the "biography" field.

func BiographyNotNil

func BiographyNotNil() predicate.User

BiographyNotNil applies the NotNil predicate on the "biography" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.User

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.User

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.User

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DisplayName

func DisplayName(v string) predicate.User

DisplayName applies equality check predicate on the "displayName" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.User

DisplayNameContains applies the Contains predicate on the "displayName" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.User

DisplayNameContainsFold applies the ContainsFold predicate on the "displayName" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.User

DisplayNameEQ applies the EQ predicate on the "displayName" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.User

DisplayNameEqualFold applies the EqualFold predicate on the "displayName" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.User

DisplayNameGT applies the GT predicate on the "displayName" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.User

DisplayNameGTE applies the GTE predicate on the "displayName" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.User

DisplayNameHasPrefix applies the HasPrefix predicate on the "displayName" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.User

DisplayNameHasSuffix applies the HasSuffix predicate on the "displayName" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.User

DisplayNameIn applies the In predicate on the "displayName" field.

func DisplayNameIsNil

func DisplayNameIsNil() predicate.User

DisplayNameIsNil applies the IsNil predicate on the "displayName" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.User

DisplayNameLT applies the LT predicate on the "displayName" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.User

DisplayNameLTE applies the LTE predicate on the "displayName" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.User

DisplayNameNEQ applies the NEQ predicate on the "displayName" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.User

DisplayNameNotIn applies the NotIn predicate on the "displayName" field.

func DisplayNameNotNil

func DisplayNameNotNil() predicate.User

DisplayNameNotNil applies the NotNil predicate on the "displayName" field.

func Featured(v string) predicate.User

Featured applies equality check predicate on the "featured" field. It's identical to FeaturedEQ.

func FeaturedContains

func FeaturedContains(v string) predicate.User

FeaturedContains applies the Contains predicate on the "featured" field.

func FeaturedContainsFold

func FeaturedContainsFold(v string) predicate.User

FeaturedContainsFold applies the ContainsFold predicate on the "featured" field.

func FeaturedEQ

func FeaturedEQ(v string) predicate.User

FeaturedEQ applies the EQ predicate on the "featured" field.

func FeaturedEqualFold

func FeaturedEqualFold(v string) predicate.User

FeaturedEqualFold applies the EqualFold predicate on the "featured" field.

func FeaturedGT

func FeaturedGT(v string) predicate.User

FeaturedGT applies the GT predicate on the "featured" field.

func FeaturedGTE

func FeaturedGTE(v string) predicate.User

FeaturedGTE applies the GTE predicate on the "featured" field.

func FeaturedHasPrefix

func FeaturedHasPrefix(v string) predicate.User

FeaturedHasPrefix applies the HasPrefix predicate on the "featured" field.

func FeaturedHasSuffix

func FeaturedHasSuffix(v string) predicate.User

FeaturedHasSuffix applies the HasSuffix predicate on the "featured" field.

func FeaturedIn

func FeaturedIn(vs ...string) predicate.User

FeaturedIn applies the In predicate on the "featured" field.

func FeaturedLT

func FeaturedLT(v string) predicate.User

FeaturedLT applies the LT predicate on the "featured" field.

func FeaturedLTE

func FeaturedLTE(v string) predicate.User

FeaturedLTE applies the LTE predicate on the "featured" field.

func FeaturedNEQ

func FeaturedNEQ(v string) predicate.User

FeaturedNEQ applies the NEQ predicate on the "featured" field.

func FeaturedNotIn

func FeaturedNotIn(vs ...string) predicate.User

FeaturedNotIn applies the NotIn predicate on the "featured" field.

func Followers

func Followers(v string) predicate.User

Followers applies equality check predicate on the "followers" field. It's identical to FollowersEQ.

func FollowersContains

func FollowersContains(v string) predicate.User

FollowersContains applies the Contains predicate on the "followers" field.

func FollowersContainsFold

func FollowersContainsFold(v string) predicate.User

FollowersContainsFold applies the ContainsFold predicate on the "followers" field.

func FollowersEQ

func FollowersEQ(v string) predicate.User

FollowersEQ applies the EQ predicate on the "followers" field.

func FollowersEqualFold

func FollowersEqualFold(v string) predicate.User

FollowersEqualFold applies the EqualFold predicate on the "followers" field.

func FollowersGT

func FollowersGT(v string) predicate.User

FollowersGT applies the GT predicate on the "followers" field.

func FollowersGTE

func FollowersGTE(v string) predicate.User

FollowersGTE applies the GTE predicate on the "followers" field.

func FollowersHasPrefix

func FollowersHasPrefix(v string) predicate.User

FollowersHasPrefix applies the HasPrefix predicate on the "followers" field.

func FollowersHasSuffix

func FollowersHasSuffix(v string) predicate.User

FollowersHasSuffix applies the HasSuffix predicate on the "followers" field.

func FollowersIn

func FollowersIn(vs ...string) predicate.User

FollowersIn applies the In predicate on the "followers" field.

func FollowersLT

func FollowersLT(v string) predicate.User

FollowersLT applies the LT predicate on the "followers" field.

func FollowersLTE

func FollowersLTE(v string) predicate.User

FollowersLTE applies the LTE predicate on the "followers" field.

func FollowersNEQ

func FollowersNEQ(v string) predicate.User

FollowersNEQ applies the NEQ predicate on the "followers" field.

func FollowersNotIn

func FollowersNotIn(vs ...string) predicate.User

FollowersNotIn applies the NotIn predicate on the "followers" field.

func Following

func Following(v string) predicate.User

Following applies equality check predicate on the "following" field. It's identical to FollowingEQ.

func FollowingContains

func FollowingContains(v string) predicate.User

FollowingContains applies the Contains predicate on the "following" field.

func FollowingContainsFold

func FollowingContainsFold(v string) predicate.User

FollowingContainsFold applies the ContainsFold predicate on the "following" field.

func FollowingEQ

func FollowingEQ(v string) predicate.User

FollowingEQ applies the EQ predicate on the "following" field.

func FollowingEqualFold

func FollowingEqualFold(v string) predicate.User

FollowingEqualFold applies the EqualFold predicate on the "following" field.

func FollowingGT

func FollowingGT(v string) predicate.User

FollowingGT applies the GT predicate on the "following" field.

func FollowingGTE

func FollowingGTE(v string) predicate.User

FollowingGTE applies the GTE predicate on the "following" field.

func FollowingHasPrefix

func FollowingHasPrefix(v string) predicate.User

FollowingHasPrefix applies the HasPrefix predicate on the "following" field.

func FollowingHasSuffix

func FollowingHasSuffix(v string) predicate.User

FollowingHasSuffix applies the HasSuffix predicate on the "following" field.

func FollowingIn

func FollowingIn(vs ...string) predicate.User

FollowingIn applies the In predicate on the "following" field.

func FollowingLT

func FollowingLT(v string) predicate.User

FollowingLT applies the LT predicate on the "following" field.

func FollowingLTE

func FollowingLTE(v string) predicate.User

FollowingLTE applies the LTE predicate on the "following" field.

func FollowingNEQ

func FollowingNEQ(v string) predicate.User

FollowingNEQ applies the NEQ predicate on the "following" field.

func FollowingNotIn

func FollowingNotIn(vs ...string) predicate.User

FollowingNotIn applies the NotIn predicate on the "following" field.

func HasAdministeredServers

func HasAdministeredServers() predicate.User

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

func HasAuthoredNotes() predicate.User

HasAuthoredNotes applies the HasEdge predicate on the "authoredNotes" edge.

func HasAuthoredNotesWith

func HasAuthoredNotesWith(preds ...predicate.Note) predicate.User

HasAuthoredNotesWith applies the HasEdge predicate on the "authoredNotes" edge with a given conditions (other predicates).

func HasAvatarImage

func HasAvatarImage() predicate.User

HasAvatarImage applies the HasEdge predicate on the "avatarImage" edge.

func HasAvatarImageWith

func HasAvatarImageWith(preds ...predicate.Image) predicate.User

HasAvatarImageWith applies the HasEdge predicate on the "avatarImage" edge with a given conditions (other predicates).

func HasHeaderImage

func HasHeaderImage() predicate.User

HasHeaderImage applies the HasEdge predicate on the "headerImage" edge.

func HasHeaderImageWith

func HasHeaderImageWith(preds ...predicate.Image) predicate.User

HasHeaderImageWith applies the HasEdge predicate on the "headerImage" edge with a given conditions (other predicates).

func HasMentionedNotes

func HasMentionedNotes() predicate.User

HasMentionedNotes applies the HasEdge predicate on the "mentionedNotes" edge.

func HasMentionedNotesWith

func HasMentionedNotesWith(preds ...predicate.Note) predicate.User

HasMentionedNotesWith applies the HasEdge predicate on the "mentionedNotes" edge with a given conditions (other predicates).

func HasModeratedServers

func HasModeratedServers() predicate.User

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

func HasServers() predicate.User

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 ID

func ID(id uuid.UUID) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func Inbox

func Inbox(v string) predicate.User

Inbox applies equality check predicate on the "inbox" field. It's identical to InboxEQ.

func InboxContains

func InboxContains(v string) predicate.User

InboxContains applies the Contains predicate on the "inbox" field.

func InboxContainsFold

func InboxContainsFold(v string) predicate.User

InboxContainsFold applies the ContainsFold predicate on the "inbox" field.

func InboxEQ

func InboxEQ(v string) predicate.User

InboxEQ applies the EQ predicate on the "inbox" field.

func InboxEqualFold

func InboxEqualFold(v string) predicate.User

InboxEqualFold applies the EqualFold predicate on the "inbox" field.

func InboxGT

func InboxGT(v string) predicate.User

InboxGT applies the GT predicate on the "inbox" field.

func InboxGTE

func InboxGTE(v string) predicate.User

InboxGTE applies the GTE predicate on the "inbox" field.

func InboxHasPrefix

func InboxHasPrefix(v string) predicate.User

InboxHasPrefix applies the HasPrefix predicate on the "inbox" field.

func InboxHasSuffix

func InboxHasSuffix(v string) predicate.User

InboxHasSuffix applies the HasSuffix predicate on the "inbox" field.

func InboxIn

func InboxIn(vs ...string) predicate.User

InboxIn applies the In predicate on the "inbox" field.

func InboxLT

func InboxLT(v string) predicate.User

InboxLT applies the LT predicate on the "inbox" field.

func InboxLTE

func InboxLTE(v string) predicate.User

InboxLTE applies the LTE predicate on the "inbox" field.

func InboxNEQ

func InboxNEQ(v string) predicate.User

InboxNEQ applies the NEQ predicate on the "inbox" field.

func InboxNotIn

func InboxNotIn(vs ...string) predicate.User

InboxNotIn applies the NotIn predicate on the "inbox" field.

func Indexable

func Indexable(v bool) predicate.User

Indexable applies equality check predicate on the "indexable" field. It's identical to IndexableEQ.

func IndexableEQ

func IndexableEQ(v bool) predicate.User

IndexableEQ applies the EQ predicate on the "indexable" field.

func IndexableNEQ

func IndexableNEQ(v bool) predicate.User

IndexableNEQ applies the NEQ predicate on the "indexable" field.

func IsRemote

func IsRemote(v bool) predicate.User

IsRemote applies equality check predicate on the "isRemote" field. It's identical to IsRemoteEQ.

func IsRemoteEQ

func IsRemoteEQ(v bool) predicate.User

IsRemoteEQ applies the EQ predicate on the "isRemote" field.

func IsRemoteNEQ

func IsRemoteNEQ(v bool) predicate.User

IsRemoteNEQ applies the NEQ predicate on the "isRemote" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups predicates with the OR operator between them.

func Outbox

func Outbox(v string) predicate.User

Outbox applies equality check predicate on the "outbox" field. It's identical to OutboxEQ.

func OutboxContains

func OutboxContains(v string) predicate.User

OutboxContains applies the Contains predicate on the "outbox" field.

func OutboxContainsFold

func OutboxContainsFold(v string) predicate.User

OutboxContainsFold applies the ContainsFold predicate on the "outbox" field.

func OutboxEQ

func OutboxEQ(v string) predicate.User

OutboxEQ applies the EQ predicate on the "outbox" field.

func OutboxEqualFold

func OutboxEqualFold(v string) predicate.User

OutboxEqualFold applies the EqualFold predicate on the "outbox" field.

func OutboxGT

func OutboxGT(v string) predicate.User

OutboxGT applies the GT predicate on the "outbox" field.

func OutboxGTE

func OutboxGTE(v string) predicate.User

OutboxGTE applies the GTE predicate on the "outbox" field.

func OutboxHasPrefix

func OutboxHasPrefix(v string) predicate.User

OutboxHasPrefix applies the HasPrefix predicate on the "outbox" field.

func OutboxHasSuffix

func OutboxHasSuffix(v string) predicate.User

OutboxHasSuffix applies the HasSuffix predicate on the "outbox" field.

func OutboxIn

func OutboxIn(vs ...string) predicate.User

OutboxIn applies the In predicate on the "outbox" field.

func OutboxLT

func OutboxLT(v string) predicate.User

OutboxLT applies the LT predicate on the "outbox" field.

func OutboxLTE

func OutboxLTE(v string) predicate.User

OutboxLTE applies the LTE predicate on the "outbox" field.

func OutboxNEQ

func OutboxNEQ(v string) predicate.User

OutboxNEQ applies the NEQ predicate on the "outbox" field.

func OutboxNotIn

func OutboxNotIn(vs ...string) predicate.User

OutboxNotIn applies the NotIn predicate on the "outbox" field.

func PasswordHash

func PasswordHash(v []byte) predicate.User

PasswordHash applies equality check predicate on the "passwordHash" field. It's identical to PasswordHashEQ.

func PasswordHashEQ

func PasswordHashEQ(v []byte) predicate.User

PasswordHashEQ applies the EQ predicate on the "passwordHash" field.

func PasswordHashGT

func PasswordHashGT(v []byte) predicate.User

PasswordHashGT applies the GT predicate on the "passwordHash" field.

func PasswordHashGTE

func PasswordHashGTE(v []byte) predicate.User

PasswordHashGTE applies the GTE predicate on the "passwordHash" field.

func PasswordHashIn

func PasswordHashIn(vs ...[]byte) predicate.User

PasswordHashIn applies the In predicate on the "passwordHash" field.

func PasswordHashIsNil

func PasswordHashIsNil() predicate.User

PasswordHashIsNil applies the IsNil predicate on the "passwordHash" field.

func PasswordHashLT

func PasswordHashLT(v []byte) predicate.User

PasswordHashLT applies the LT predicate on the "passwordHash" field.

func PasswordHashLTE

func PasswordHashLTE(v []byte) predicate.User

PasswordHashLTE applies the LTE predicate on the "passwordHash" field.

func PasswordHashNEQ

func PasswordHashNEQ(v []byte) predicate.User

PasswordHashNEQ applies the NEQ predicate on the "passwordHash" field.

func PasswordHashNotIn

func PasswordHashNotIn(vs ...[]byte) predicate.User

PasswordHashNotIn applies the NotIn predicate on the "passwordHash" field.

func PasswordHashNotNil

func PasswordHashNotNil() predicate.User

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

func PrivateKey(v []byte) predicate.User

PrivateKey applies equality check predicate on the "privateKey" field. It's identical to PrivateKeyEQ.

func PrivateKeyEQ

func PrivateKeyEQ(v []byte) predicate.User

PrivateKeyEQ applies the EQ predicate on the "privateKey" field.

func PrivateKeyGT

func PrivateKeyGT(v []byte) predicate.User

PrivateKeyGT applies the GT predicate on the "privateKey" field.

func PrivateKeyGTE

func PrivateKeyGTE(v []byte) predicate.User

PrivateKeyGTE applies the GTE predicate on the "privateKey" field.

func PrivateKeyIn

func PrivateKeyIn(vs ...[]byte) predicate.User

PrivateKeyIn applies the In predicate on the "privateKey" field.

func PrivateKeyIsNil

func PrivateKeyIsNil() predicate.User

PrivateKeyIsNil applies the IsNil predicate on the "privateKey" field.

func PrivateKeyLT

func PrivateKeyLT(v []byte) predicate.User

PrivateKeyLT applies the LT predicate on the "privateKey" field.

func PrivateKeyLTE

func PrivateKeyLTE(v []byte) predicate.User

PrivateKeyLTE applies the LTE predicate on the "privateKey" field.

func PrivateKeyNEQ

func PrivateKeyNEQ(v []byte) predicate.User

PrivateKeyNEQ applies the NEQ predicate on the "privateKey" field.

func PrivateKeyNotIn

func PrivateKeyNotIn(vs ...[]byte) predicate.User

PrivateKeyNotIn applies the NotIn predicate on the "privateKey" field.

func PrivateKeyNotNil

func PrivateKeyNotNil() predicate.User

PrivateKeyNotNil applies the NotNil predicate on the "privateKey" field.

func PublicKey

func PublicKey(v []byte) predicate.User

PublicKey applies equality check predicate on the "publicKey" field. It's identical to PublicKeyEQ.

func PublicKeyActor

func PublicKeyActor(v string) predicate.User

PublicKeyActor applies equality check predicate on the "publicKeyActor" field. It's identical to PublicKeyActorEQ.

func PublicKeyActorContains

func PublicKeyActorContains(v string) predicate.User

PublicKeyActorContains applies the Contains predicate on the "publicKeyActor" field.

func PublicKeyActorContainsFold

func PublicKeyActorContainsFold(v string) predicate.User

PublicKeyActorContainsFold applies the ContainsFold predicate on the "publicKeyActor" field.

func PublicKeyActorEQ

func PublicKeyActorEQ(v string) predicate.User

PublicKeyActorEQ applies the EQ predicate on the "publicKeyActor" field.

func PublicKeyActorEqualFold

func PublicKeyActorEqualFold(v string) predicate.User

PublicKeyActorEqualFold applies the EqualFold predicate on the "publicKeyActor" field.

func PublicKeyActorGT

func PublicKeyActorGT(v string) predicate.User

PublicKeyActorGT applies the GT predicate on the "publicKeyActor" field.

func PublicKeyActorGTE

func PublicKeyActorGTE(v string) predicate.User

PublicKeyActorGTE applies the GTE predicate on the "publicKeyActor" field.

func PublicKeyActorHasPrefix

func PublicKeyActorHasPrefix(v string) predicate.User

PublicKeyActorHasPrefix applies the HasPrefix predicate on the "publicKeyActor" field.

func PublicKeyActorHasSuffix

func PublicKeyActorHasSuffix(v string) predicate.User

PublicKeyActorHasSuffix applies the HasSuffix predicate on the "publicKeyActor" field.

func PublicKeyActorIn

func PublicKeyActorIn(vs ...string) predicate.User

PublicKeyActorIn applies the In predicate on the "publicKeyActor" field.

func PublicKeyActorLT

func PublicKeyActorLT(v string) predicate.User

PublicKeyActorLT applies the LT predicate on the "publicKeyActor" field.

func PublicKeyActorLTE

func PublicKeyActorLTE(v string) predicate.User

PublicKeyActorLTE applies the LTE predicate on the "publicKeyActor" field.

func PublicKeyActorNEQ

func PublicKeyActorNEQ(v string) predicate.User

PublicKeyActorNEQ applies the NEQ predicate on the "publicKeyActor" field.

func PublicKeyActorNotIn

func PublicKeyActorNotIn(vs ...string) predicate.User

PublicKeyActorNotIn applies the NotIn predicate on the "publicKeyActor" field.

func PublicKeyAlgorithm

func PublicKeyAlgorithm(v string) predicate.User

PublicKeyAlgorithm applies equality check predicate on the "publicKeyAlgorithm" field. It's identical to PublicKeyAlgorithmEQ.

func PublicKeyAlgorithmContains

func PublicKeyAlgorithmContains(v string) predicate.User

PublicKeyAlgorithmContains applies the Contains predicate on the "publicKeyAlgorithm" field.

func PublicKeyAlgorithmContainsFold

func PublicKeyAlgorithmContainsFold(v string) predicate.User

PublicKeyAlgorithmContainsFold applies the ContainsFold predicate on the "publicKeyAlgorithm" field.

func PublicKeyAlgorithmEQ

func PublicKeyAlgorithmEQ(v string) predicate.User

PublicKeyAlgorithmEQ applies the EQ predicate on the "publicKeyAlgorithm" field.

func PublicKeyAlgorithmEqualFold

func PublicKeyAlgorithmEqualFold(v string) predicate.User

PublicKeyAlgorithmEqualFold applies the EqualFold predicate on the "publicKeyAlgorithm" field.

func PublicKeyAlgorithmGT

func PublicKeyAlgorithmGT(v string) predicate.User

PublicKeyAlgorithmGT applies the GT predicate on the "publicKeyAlgorithm" field.

func PublicKeyAlgorithmGTE

func PublicKeyAlgorithmGTE(v string) predicate.User

PublicKeyAlgorithmGTE applies the GTE predicate on the "publicKeyAlgorithm" field.

func PublicKeyAlgorithmHasPrefix

func PublicKeyAlgorithmHasPrefix(v string) predicate.User

PublicKeyAlgorithmHasPrefix applies the HasPrefix predicate on the "publicKeyAlgorithm" field.

func PublicKeyAlgorithmHasSuffix

func PublicKeyAlgorithmHasSuffix(v string) predicate.User

PublicKeyAlgorithmHasSuffix applies the HasSuffix predicate on the "publicKeyAlgorithm" field.

func PublicKeyAlgorithmIn

func PublicKeyAlgorithmIn(vs ...string) predicate.User

PublicKeyAlgorithmIn applies the In predicate on the "publicKeyAlgorithm" field.

func PublicKeyAlgorithmLT

func PublicKeyAlgorithmLT(v string) predicate.User

PublicKeyAlgorithmLT applies the LT predicate on the "publicKeyAlgorithm" field.

func PublicKeyAlgorithmLTE

func PublicKeyAlgorithmLTE(v string) predicate.User

PublicKeyAlgorithmLTE applies the LTE predicate on the "publicKeyAlgorithm" field.

func PublicKeyAlgorithmNEQ

func PublicKeyAlgorithmNEQ(v string) predicate.User

PublicKeyAlgorithmNEQ applies the NEQ predicate on the "publicKeyAlgorithm" field.

func PublicKeyAlgorithmNotIn

func PublicKeyAlgorithmNotIn(vs ...string) predicate.User

PublicKeyAlgorithmNotIn applies the NotIn predicate on the "publicKeyAlgorithm" field.

func PublicKeyEQ

func PublicKeyEQ(v []byte) predicate.User

PublicKeyEQ applies the EQ predicate on the "publicKey" field.

func PublicKeyGT

func PublicKeyGT(v []byte) predicate.User

PublicKeyGT applies the GT predicate on the "publicKey" field.

func PublicKeyGTE

func PublicKeyGTE(v []byte) predicate.User

PublicKeyGTE applies the GTE predicate on the "publicKey" field.

func PublicKeyIn

func PublicKeyIn(vs ...[]byte) predicate.User

PublicKeyIn applies the In predicate on the "publicKey" field.

func PublicKeyLT

func PublicKeyLT(v []byte) predicate.User

PublicKeyLT applies the LT predicate on the "publicKey" field.

func PublicKeyLTE

func PublicKeyLTE(v []byte) predicate.User

PublicKeyLTE applies the LTE predicate on the "publicKey" field.

func PublicKeyNEQ

func PublicKeyNEQ(v []byte) predicate.User

PublicKeyNEQ applies the NEQ predicate on the "publicKey" field.

func PublicKeyNotIn

func PublicKeyNotIn(vs ...[]byte) predicate.User

PublicKeyNotIn applies the NotIn predicate on the "publicKey" field.

func URI

func URI(v string) predicate.User

URI applies equality check predicate on the "uri" field. It's identical to URIEQ.

func URIContains

func URIContains(v string) predicate.User

URIContains applies the Contains predicate on the "uri" field.

func URIContainsFold

func URIContainsFold(v string) predicate.User

URIContainsFold applies the ContainsFold predicate on the "uri" field.

func URIEQ

func URIEQ(v string) predicate.User

URIEQ applies the EQ predicate on the "uri" field.

func URIEqualFold

func URIEqualFold(v string) predicate.User

URIEqualFold applies the EqualFold predicate on the "uri" field.

func URIGT

func URIGT(v string) predicate.User

URIGT applies the GT predicate on the "uri" field.

func URIGTE

func URIGTE(v string) predicate.User

URIGTE applies the GTE predicate on the "uri" field.

func URIHasPrefix

func URIHasPrefix(v string) predicate.User

URIHasPrefix applies the HasPrefix predicate on the "uri" field.

func URIHasSuffix

func URIHasSuffix(v string) predicate.User

URIHasSuffix applies the HasSuffix predicate on the "uri" field.

func URIIn

func URIIn(vs ...string) predicate.User

URIIn applies the In predicate on the "uri" field.

func URILT

func URILT(v string) predicate.User

URILT applies the LT predicate on the "uri" field.

func URILTE

func URILTE(v string) predicate.User

URILTE applies the LTE predicate on the "uri" field.

func URINEQ

func URINEQ(v string) predicate.User

URINEQ applies the NEQ predicate on the "uri" field.

func URINotIn

func URINotIn(vs ...string) predicate.User

URINotIn applies the NotIn predicate on the "uri" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.User

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.User

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.User

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.User

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.User

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.User

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.User

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.User

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.User

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func Username

func Username(v string) predicate.User

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.User

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.User

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.User

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.User

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.User

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.User

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.User

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.User

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.User

UsernameIn applies the In predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.User

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.User

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.User

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.User

UsernameNotIn applies the NotIn predicate on the "username" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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

Jump to

Keyboard shortcuts

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