Documentation ¶
Index ¶
- Constants
- Variables
- func AccessToken(v []byte) predicate.Account
- func AccessTokenEQ(v []byte) predicate.Account
- func AccessTokenGT(v []byte) predicate.Account
- func AccessTokenGTE(v []byte) predicate.Account
- func AccessTokenIn(vs ...[]byte) predicate.Account
- func AccessTokenLT(v []byte) predicate.Account
- func AccessTokenLTE(v []byte) predicate.Account
- func AccessTokenNEQ(v []byte) predicate.Account
- func AccessTokenNotIn(vs ...[]byte) predicate.Account
- func And(predicates ...predicate.Account) predicate.Account
- func CreateTime(v time.Time) predicate.Account
- func CreateTimeEQ(v time.Time) predicate.Account
- func CreateTimeGT(v time.Time) predicate.Account
- func CreateTimeGTE(v time.Time) predicate.Account
- func CreateTimeIn(vs ...time.Time) predicate.Account
- func CreateTimeLT(v time.Time) predicate.Account
- func CreateTimeLTE(v time.Time) predicate.Account
- func CreateTimeNEQ(v time.Time) predicate.Account
- func CreateTimeNotIn(vs ...time.Time) predicate.Account
- func HasNodes() predicate.Account
- func HasNodesWith(preds ...predicate.Node) predicate.Account
- func HasRegistrationToken() predicate.Account
- func HasRegistrationTokenWith(preds ...predicate.RegistrationToken) predicate.Account
- func HasServers() predicate.Account
- func HasServersWith(preds ...predicate.Server) predicate.Account
- func ID(id int) predicate.Account
- func IDEQ(id int) predicate.Account
- func IDGT(id int) predicate.Account
- func IDGTE(id int) predicate.Account
- func IDIn(ids ...int) predicate.Account
- func IDLT(id int) predicate.Account
- func IDLTE(id int) predicate.Account
- func IDNEQ(id int) predicate.Account
- func IDNotIn(ids ...int) predicate.Account
- func Not(p predicate.Account) predicate.Account
- func Or(predicates ...predicate.Account) predicate.Account
- func RefreshToken(v []byte) predicate.Account
- func RefreshTokenEQ(v []byte) predicate.Account
- func RefreshTokenGT(v []byte) predicate.Account
- func RefreshTokenGTE(v []byte) predicate.Account
- func RefreshTokenIn(vs ...[]byte) predicate.Account
- func RefreshTokenLT(v []byte) predicate.Account
- func RefreshTokenLTE(v []byte) predicate.Account
- func RefreshTokenNEQ(v []byte) predicate.Account
- func RefreshTokenNotIn(vs ...[]byte) predicate.Account
- func RegistrationTokenID(v int) predicate.Account
- func RegistrationTokenIDEQ(v int) predicate.Account
- func RegistrationTokenIDIn(vs ...int) predicate.Account
- func RegistrationTokenIDIsNil() predicate.Account
- func RegistrationTokenIDNEQ(v int) predicate.Account
- func RegistrationTokenIDNotIn(vs ...int) predicate.Account
- func RegistrationTokenIDNotNil() predicate.Account
- func UpdateTime(v time.Time) predicate.Account
- func UpdateTimeEQ(v time.Time) predicate.Account
- func UpdateTimeGT(v time.Time) predicate.Account
- func UpdateTimeGTE(v time.Time) predicate.Account
- func UpdateTimeIn(vs ...time.Time) predicate.Account
- func UpdateTimeLT(v time.Time) predicate.Account
- func UpdateTimeLTE(v time.Time) predicate.Account
- func UpdateTimeNEQ(v time.Time) predicate.Account
- func UpdateTimeNotIn(vs ...time.Time) predicate.Account
- func Username(v string) predicate.Account
- func UsernameContains(v string) predicate.Account
- func UsernameContainsFold(v string) predicate.Account
- func UsernameEQ(v string) predicate.Account
- func UsernameEqualFold(v string) predicate.Account
- func UsernameGT(v string) predicate.Account
- func UsernameGTE(v string) predicate.Account
- func UsernameHasPrefix(v string) predicate.Account
- func UsernameHasSuffix(v string) predicate.Account
- func UsernameIn(vs ...string) predicate.Account
- func UsernameLT(v string) predicate.Account
- func UsernameLTE(v string) predicate.Account
- func UsernameNEQ(v string) predicate.Account
- func UsernameNotIn(vs ...string) predicate.Account
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNodesCount(opts ...sql.OrderTermOption) OrderOption
- func ByRegistrationTokenField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRegistrationTokenID(opts ...sql.OrderTermOption) OrderOption
- func ByServers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByServersCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the account type in the database. Label = "account" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldAccessToken holds the string denoting the access_token field in the database. FieldAccessToken = "access_token" // FieldRefreshToken holds the string denoting the refresh_token field in the database. FieldRefreshToken = "refresh_token" // FieldRegistrationTokenID holds the string denoting the registration_token_id field in the database. FieldRegistrationTokenID = "registration_token_id" // EdgeServers holds the string denoting the servers edge name in mutations. EdgeServers = "servers" // EdgeNodes holds the string denoting the nodes edge name in mutations. EdgeNodes = "nodes" // EdgeRegistrationToken holds the string denoting the registration_token edge name in mutations. EdgeRegistrationToken = "registration_token" // Table holds the table name of the account in the database. Table = "accounts" // ServersTable is the table that holds the servers relation/edge. ServersTable = "servers" // ServersInverseTable is the table name for the Server entity. // It exists in this package in order to avoid circular dependency with the "server" package. ServersInverseTable = "servers" // ServersColumn is the table column denoting the servers relation/edge. ServersColumn = "account_servers" // NodesTable is the table that holds the nodes relation/edge. NodesTable = "nodes" // NodesInverseTable is the table name for the Node entity. // It exists in this package in order to avoid circular dependency with the "node" package. NodesInverseTable = "nodes" // NodesColumn is the table column denoting the nodes relation/edge. NodesColumn = "account_nodes" // RegistrationTokenTable is the table that holds the registration_token relation/edge. RegistrationTokenTable = "accounts" // RegistrationTokenInverseTable is the table name for the RegistrationToken entity. // It exists in this package in order to avoid circular dependency with the "registrationtoken" package. RegistrationTokenInverseTable = "registration_tokens" // RegistrationTokenColumn is the table column denoting the registration_token relation/edge. RegistrationTokenColumn = "registration_token_id" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // AccessTokenValidator is a validator for the "access_token" field. It is called by the builders before save. AccessTokenValidator func([]byte) error // RefreshTokenValidator is a validator for the "refresh_token" field. It is called by the builders before save. RefreshTokenValidator func([]byte) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldUsername, FieldAccessToken, FieldRefreshToken, FieldRegistrationTokenID, }
Columns holds all SQL columns for account fields.
Functions ¶
func AccessToken ¶
AccessToken applies equality check predicate on the "access_token" field. It's identical to AccessTokenEQ.
func AccessTokenEQ ¶
AccessTokenEQ applies the EQ predicate on the "access_token" field.
func AccessTokenGT ¶
AccessTokenGT applies the GT predicate on the "access_token" field.
func AccessTokenGTE ¶
AccessTokenGTE applies the GTE predicate on the "access_token" field.
func AccessTokenIn ¶
AccessTokenIn applies the In predicate on the "access_token" field.
func AccessTokenLT ¶
AccessTokenLT applies the LT predicate on the "access_token" field.
func AccessTokenLTE ¶
AccessTokenLTE applies the LTE predicate on the "access_token" field.
func AccessTokenNEQ ¶
AccessTokenNEQ applies the NEQ predicate on the "access_token" field.
func AccessTokenNotIn ¶
AccessTokenNotIn applies the NotIn predicate on the "access_token" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasNodesWith ¶
HasNodesWith applies the HasEdge predicate on the "nodes" edge with a given conditions (other predicates).
func HasRegistrationToken ¶
HasRegistrationToken applies the HasEdge predicate on the "registration_token" edge.
func HasRegistrationTokenWith ¶
func HasRegistrationTokenWith(preds ...predicate.RegistrationToken) predicate.Account
HasRegistrationTokenWith applies the HasEdge predicate on the "registration_token" edge with a given conditions (other predicates).
func HasServers ¶
HasServers applies the HasEdge predicate on the "servers" edge.
func HasServersWith ¶
HasServersWith applies the HasEdge predicate on the "servers" edge with a given conditions (other predicates).
func RefreshToken ¶
RefreshToken applies equality check predicate on the "refresh_token" field. It's identical to RefreshTokenEQ.
func RefreshTokenEQ ¶
RefreshTokenEQ applies the EQ predicate on the "refresh_token" field.
func RefreshTokenGT ¶
RefreshTokenGT applies the GT predicate on the "refresh_token" field.
func RefreshTokenGTE ¶
RefreshTokenGTE applies the GTE predicate on the "refresh_token" field.
func RefreshTokenIn ¶
RefreshTokenIn applies the In predicate on the "refresh_token" field.
func RefreshTokenLT ¶
RefreshTokenLT applies the LT predicate on the "refresh_token" field.
func RefreshTokenLTE ¶
RefreshTokenLTE applies the LTE predicate on the "refresh_token" field.
func RefreshTokenNEQ ¶
RefreshTokenNEQ applies the NEQ predicate on the "refresh_token" field.
func RefreshTokenNotIn ¶
RefreshTokenNotIn applies the NotIn predicate on the "refresh_token" field.
func RegistrationTokenID ¶
RegistrationTokenID applies equality check predicate on the "registration_token_id" field. It's identical to RegistrationTokenIDEQ.
func RegistrationTokenIDEQ ¶
RegistrationTokenIDEQ applies the EQ predicate on the "registration_token_id" field.
func RegistrationTokenIDIn ¶
RegistrationTokenIDIn applies the In predicate on the "registration_token_id" field.
func RegistrationTokenIDIsNil ¶
RegistrationTokenIDIsNil applies the IsNil predicate on the "registration_token_id" field.
func RegistrationTokenIDNEQ ¶
RegistrationTokenIDNEQ applies the NEQ predicate on the "registration_token_id" field.
func RegistrationTokenIDNotIn ¶
RegistrationTokenIDNotIn applies the NotIn predicate on the "registration_token_id" field.
func RegistrationTokenIDNotNil ¶
RegistrationTokenIDNotNil applies the NotNil predicate on the "registration_token_id" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 Account queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNodes ¶
func ByNodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNodes orders the results by nodes terms.
func ByNodesCount ¶
func ByNodesCount(opts ...sql.OrderTermOption) OrderOption
ByNodesCount orders the results by nodes count.
func ByRegistrationTokenField ¶
func ByRegistrationTokenField(field string, opts ...sql.OrderTermOption) OrderOption
ByRegistrationTokenField orders the results by registration_token field.
func ByRegistrationTokenID ¶
func ByRegistrationTokenID(opts ...sql.OrderTermOption) OrderOption
ByRegistrationTokenID orders the results by the registration_token_id 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 ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUsername ¶
func ByUsername(opts ...sql.OrderTermOption) OrderOption
ByUsername orders the results by the username field.