Documentation
¶
Index ¶
- Constants
- Variables
- func APITokenID(v int64) predicate.OAuthRefreshToken
- func APITokenIDEQ(v int64) predicate.OAuthRefreshToken
- func APITokenIDIn(vs ...int64) predicate.OAuthRefreshToken
- func APITokenIDNEQ(v int64) predicate.OAuthRefreshToken
- func APITokenIDNotIn(vs ...int64) predicate.OAuthRefreshToken
- func And(predicates ...predicate.OAuthRefreshToken) predicate.OAuthRefreshToken
- func ClientID(v int64) predicate.OAuthRefreshToken
- func ClientIDEQ(v int64) predicate.OAuthRefreshToken
- func ClientIDIn(vs ...int64) predicate.OAuthRefreshToken
- func ClientIDNEQ(v int64) predicate.OAuthRefreshToken
- func ClientIDNotIn(vs ...int64) predicate.OAuthRefreshToken
- func CreatedAt(v time.Time) predicate.OAuthRefreshToken
- func CreatedAtEQ(v time.Time) predicate.OAuthRefreshToken
- func CreatedAtGT(v time.Time) predicate.OAuthRefreshToken
- func CreatedAtGTE(v time.Time) predicate.OAuthRefreshToken
- func CreatedAtIn(vs ...time.Time) predicate.OAuthRefreshToken
- func CreatedAtLT(v time.Time) predicate.OAuthRefreshToken
- func CreatedAtLTE(v time.Time) predicate.OAuthRefreshToken
- func CreatedAtNEQ(v time.Time) predicate.OAuthRefreshToken
- func CreatedAtNotIn(vs ...time.Time) predicate.OAuthRefreshToken
- func ExpiresAt(v time.Time) predicate.OAuthRefreshToken
- func ExpiresAtEQ(v time.Time) predicate.OAuthRefreshToken
- func ExpiresAtGT(v time.Time) predicate.OAuthRefreshToken
- func ExpiresAtGTE(v time.Time) predicate.OAuthRefreshToken
- func ExpiresAtIn(vs ...time.Time) predicate.OAuthRefreshToken
- func ExpiresAtLT(v time.Time) predicate.OAuthRefreshToken
- func ExpiresAtLTE(v time.Time) predicate.OAuthRefreshToken
- func ExpiresAtNEQ(v time.Time) predicate.OAuthRefreshToken
- func ExpiresAtNotIn(vs ...time.Time) predicate.OAuthRefreshToken
- func HasAPIToken() predicate.OAuthRefreshToken
- func HasAPITokenWith(preds ...predicate.ApiToken) predicate.OAuthRefreshToken
- func HasClient() predicate.OAuthRefreshToken
- func HasClientWith(preds ...predicate.OAuthClient) predicate.OAuthRefreshToken
- func ID(id int64) predicate.OAuthRefreshToken
- func IDEQ(id int64) predicate.OAuthRefreshToken
- func IDGT(id int64) predicate.OAuthRefreshToken
- func IDGTE(id int64) predicate.OAuthRefreshToken
- func IDIn(ids ...int64) predicate.OAuthRefreshToken
- func IDLT(id int64) predicate.OAuthRefreshToken
- func IDLTE(id int64) predicate.OAuthRefreshToken
- func IDNEQ(id int64) predicate.OAuthRefreshToken
- func IDNotIn(ids ...int64) predicate.OAuthRefreshToken
- func Not(p predicate.OAuthRefreshToken) predicate.OAuthRefreshToken
- func Or(predicates ...predicate.OAuthRefreshToken) predicate.OAuthRefreshToken
- func TokenHash(v string) predicate.OAuthRefreshToken
- func TokenHashContains(v string) predicate.OAuthRefreshToken
- func TokenHashContainsFold(v string) predicate.OAuthRefreshToken
- func TokenHashEQ(v string) predicate.OAuthRefreshToken
- func TokenHashEqualFold(v string) predicate.OAuthRefreshToken
- func TokenHashGT(v string) predicate.OAuthRefreshToken
- func TokenHashGTE(v string) predicate.OAuthRefreshToken
- func TokenHashHasPrefix(v string) predicate.OAuthRefreshToken
- func TokenHashHasSuffix(v string) predicate.OAuthRefreshToken
- func TokenHashIn(vs ...string) predicate.OAuthRefreshToken
- func TokenHashLT(v string) predicate.OAuthRefreshToken
- func TokenHashLTE(v string) predicate.OAuthRefreshToken
- func TokenHashNEQ(v string) predicate.OAuthRefreshToken
- func TokenHashNotIn(vs ...string) predicate.OAuthRefreshToken
- func UpdatedAt(v time.Time) predicate.OAuthRefreshToken
- func UpdatedAtEQ(v time.Time) predicate.OAuthRefreshToken
- func UpdatedAtGT(v time.Time) predicate.OAuthRefreshToken
- func UpdatedAtGTE(v time.Time) predicate.OAuthRefreshToken
- func UpdatedAtIn(vs ...time.Time) predicate.OAuthRefreshToken
- func UpdatedAtLT(v time.Time) predicate.OAuthRefreshToken
- func UpdatedAtLTE(v time.Time) predicate.OAuthRefreshToken
- func UpdatedAtNEQ(v time.Time) predicate.OAuthRefreshToken
- func UpdatedAtNotIn(vs ...time.Time) predicate.OAuthRefreshToken
- func UsedAt(v time.Time) predicate.OAuthRefreshToken
- func UsedAtEQ(v time.Time) predicate.OAuthRefreshToken
- func UsedAtGT(v time.Time) predicate.OAuthRefreshToken
- func UsedAtGTE(v time.Time) predicate.OAuthRefreshToken
- func UsedAtIn(vs ...time.Time) predicate.OAuthRefreshToken
- func UsedAtIsNil() predicate.OAuthRefreshToken
- func UsedAtLT(v time.Time) predicate.OAuthRefreshToken
- func UsedAtLTE(v time.Time) predicate.OAuthRefreshToken
- func UsedAtNEQ(v time.Time) predicate.OAuthRefreshToken
- func UsedAtNotIn(vs ...time.Time) predicate.OAuthRefreshToken
- func UsedAtNotNil() predicate.OAuthRefreshToken
- func ValidColumn(column string) bool
- type OrderOption
- func ByAPITokenField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAPITokenID(opts ...sql.OrderTermOption) OrderOption
- func ByClientField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByClientID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByTokenHash(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the oauthrefreshtoken type in the database. Label = "oauth_refresh_token" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldTokenHash holds the string denoting the token_hash field in the database. FieldTokenHash = "token_hash" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldUsedAt holds the string denoting the used_at field in the database. FieldUsedAt = "used_at" // FieldClientID holds the string denoting the client_id field in the database. FieldClientID = "client_id" // FieldAPITokenID holds the string denoting the api_token_id field in the database. FieldAPITokenID = "api_token_id" // EdgeClient holds the string denoting the client edge name in mutations. EdgeClient = "client" // EdgeAPIToken holds the string denoting the api_token edge name in mutations. EdgeAPIToken = "api_token" // Table holds the table name of the oauthrefreshtoken in the database. Table = "oauth_refresh_tokens" // ClientTable is the table that holds the client relation/edge. ClientTable = "oauth_refresh_tokens" // ClientInverseTable is the table name for the OAuthClient entity. // It exists in this package in order to avoid circular dependency with the "oauthclient" package. ClientInverseTable = "oauth_clients" // ClientColumn is the table column denoting the client relation/edge. ClientColumn = "client_id" // APITokenTable is the table that holds the api_token relation/edge. APITokenTable = "oauth_refresh_tokens" // APITokenInverseTable is the table name for the ApiToken entity. // It exists in this package in order to avoid circular dependency with the "apitoken" package. APITokenInverseTable = "api_tokens" // APITokenColumn is the table column denoting the api_token relation/edge. APITokenColumn = "api_token_id" )
Variables ¶
var ( // 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 // TokenHashValidator is a validator for the "token_hash" field. It is called by the builders before save. TokenHashValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldTokenHash, FieldExpiresAt, FieldUsedAt, FieldClientID, FieldAPITokenID, }
Columns holds all SQL columns for oauthrefreshtoken fields.
Functions ¶
func APITokenID ¶
func APITokenID(v int64) predicate.OAuthRefreshToken
APITokenID applies equality check predicate on the "api_token_id" field. It's identical to APITokenIDEQ.
func APITokenIDEQ ¶
func APITokenIDEQ(v int64) predicate.OAuthRefreshToken
APITokenIDEQ applies the EQ predicate on the "api_token_id" field.
func APITokenIDIn ¶
func APITokenIDIn(vs ...int64) predicate.OAuthRefreshToken
APITokenIDIn applies the In predicate on the "api_token_id" field.
func APITokenIDNEQ ¶
func APITokenIDNEQ(v int64) predicate.OAuthRefreshToken
APITokenIDNEQ applies the NEQ predicate on the "api_token_id" field.
func APITokenIDNotIn ¶
func APITokenIDNotIn(vs ...int64) predicate.OAuthRefreshToken
APITokenIDNotIn applies the NotIn predicate on the "api_token_id" field.
func And ¶
func And(predicates ...predicate.OAuthRefreshToken) predicate.OAuthRefreshToken
And groups predicates with the AND operator between them.
func ClientID ¶
func ClientID(v int64) predicate.OAuthRefreshToken
ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientIDEQ ¶
func ClientIDEQ(v int64) predicate.OAuthRefreshToken
ClientIDEQ applies the EQ predicate on the "client_id" field.
func ClientIDIn ¶
func ClientIDIn(vs ...int64) predicate.OAuthRefreshToken
ClientIDIn applies the In predicate on the "client_id" field.
func ClientIDNEQ ¶
func ClientIDNEQ(v int64) predicate.OAuthRefreshToken
ClientIDNEQ applies the NEQ predicate on the "client_id" field.
func ClientIDNotIn ¶
func ClientIDNotIn(vs ...int64) predicate.OAuthRefreshToken
ClientIDNotIn applies the NotIn predicate on the "client_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.OAuthRefreshToken
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.OAuthRefreshToken
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.OAuthRefreshToken
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.OAuthRefreshToken
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.OAuthRefreshToken
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.OAuthRefreshToken
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.OAuthRefreshToken
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.OAuthRefreshToken
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.OAuthRefreshToken
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.OAuthRefreshToken
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.OAuthRefreshToken
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.OAuthRefreshToken
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.OAuthRefreshToken
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.OAuthRefreshToken
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.OAuthRefreshToken
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.OAuthRefreshToken
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.OAuthRefreshToken
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.OAuthRefreshToken
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func HasAPIToken ¶
func HasAPIToken() predicate.OAuthRefreshToken
HasAPIToken applies the HasEdge predicate on the "api_token" edge.
func HasAPITokenWith ¶
func HasAPITokenWith(preds ...predicate.ApiToken) predicate.OAuthRefreshToken
HasAPITokenWith applies the HasEdge predicate on the "api_token" edge with a given conditions (other predicates).
func HasClient ¶
func HasClient() predicate.OAuthRefreshToken
HasClient applies the HasEdge predicate on the "client" edge.
func HasClientWith ¶
func HasClientWith(preds ...predicate.OAuthClient) predicate.OAuthRefreshToken
HasClientWith applies the HasEdge predicate on the "client" edge with a given conditions (other predicates).
func ID ¶
func ID(id int64) predicate.OAuthRefreshToken
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int64) predicate.OAuthRefreshToken
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.OAuthRefreshToken
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.OAuthRefreshToken
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.OAuthRefreshToken
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.OAuthRefreshToken
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.OAuthRefreshToken
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.OAuthRefreshToken
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.OAuthRefreshToken
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.OAuthRefreshToken) predicate.OAuthRefreshToken
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.OAuthRefreshToken) predicate.OAuthRefreshToken
Or groups predicates with the OR operator between them.
func TokenHash ¶
func TokenHash(v string) predicate.OAuthRefreshToken
TokenHash applies equality check predicate on the "token_hash" field. It's identical to TokenHashEQ.
func TokenHashContains ¶
func TokenHashContains(v string) predicate.OAuthRefreshToken
TokenHashContains applies the Contains predicate on the "token_hash" field.
func TokenHashContainsFold ¶
func TokenHashContainsFold(v string) predicate.OAuthRefreshToken
TokenHashContainsFold applies the ContainsFold predicate on the "token_hash" field.
func TokenHashEQ ¶
func TokenHashEQ(v string) predicate.OAuthRefreshToken
TokenHashEQ applies the EQ predicate on the "token_hash" field.
func TokenHashEqualFold ¶
func TokenHashEqualFold(v string) predicate.OAuthRefreshToken
TokenHashEqualFold applies the EqualFold predicate on the "token_hash" field.
func TokenHashGT ¶
func TokenHashGT(v string) predicate.OAuthRefreshToken
TokenHashGT applies the GT predicate on the "token_hash" field.
func TokenHashGTE ¶
func TokenHashGTE(v string) predicate.OAuthRefreshToken
TokenHashGTE applies the GTE predicate on the "token_hash" field.
func TokenHashHasPrefix ¶
func TokenHashHasPrefix(v string) predicate.OAuthRefreshToken
TokenHashHasPrefix applies the HasPrefix predicate on the "token_hash" field.
func TokenHashHasSuffix ¶
func TokenHashHasSuffix(v string) predicate.OAuthRefreshToken
TokenHashHasSuffix applies the HasSuffix predicate on the "token_hash" field.
func TokenHashIn ¶
func TokenHashIn(vs ...string) predicate.OAuthRefreshToken
TokenHashIn applies the In predicate on the "token_hash" field.
func TokenHashLT ¶
func TokenHashLT(v string) predicate.OAuthRefreshToken
TokenHashLT applies the LT predicate on the "token_hash" field.
func TokenHashLTE ¶
func TokenHashLTE(v string) predicate.OAuthRefreshToken
TokenHashLTE applies the LTE predicate on the "token_hash" field.
func TokenHashNEQ ¶
func TokenHashNEQ(v string) predicate.OAuthRefreshToken
TokenHashNEQ applies the NEQ predicate on the "token_hash" field.
func TokenHashNotIn ¶
func TokenHashNotIn(vs ...string) predicate.OAuthRefreshToken
TokenHashNotIn applies the NotIn predicate on the "token_hash" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.OAuthRefreshToken
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.OAuthRefreshToken
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.OAuthRefreshToken
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.OAuthRefreshToken
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.OAuthRefreshToken
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.OAuthRefreshToken
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.OAuthRefreshToken
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.OAuthRefreshToken
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.OAuthRefreshToken
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UsedAt ¶
func UsedAt(v time.Time) predicate.OAuthRefreshToken
UsedAt applies equality check predicate on the "used_at" field. It's identical to UsedAtEQ.
func UsedAtEQ ¶
func UsedAtEQ(v time.Time) predicate.OAuthRefreshToken
UsedAtEQ applies the EQ predicate on the "used_at" field.
func UsedAtGT ¶
func UsedAtGT(v time.Time) predicate.OAuthRefreshToken
UsedAtGT applies the GT predicate on the "used_at" field.
func UsedAtGTE ¶
func UsedAtGTE(v time.Time) predicate.OAuthRefreshToken
UsedAtGTE applies the GTE predicate on the "used_at" field.
func UsedAtIn ¶
func UsedAtIn(vs ...time.Time) predicate.OAuthRefreshToken
UsedAtIn applies the In predicate on the "used_at" field.
func UsedAtIsNil ¶
func UsedAtIsNil() predicate.OAuthRefreshToken
UsedAtIsNil applies the IsNil predicate on the "used_at" field.
func UsedAtLT ¶
func UsedAtLT(v time.Time) predicate.OAuthRefreshToken
UsedAtLT applies the LT predicate on the "used_at" field.
func UsedAtLTE ¶
func UsedAtLTE(v time.Time) predicate.OAuthRefreshToken
UsedAtLTE applies the LTE predicate on the "used_at" field.
func UsedAtNEQ ¶
func UsedAtNEQ(v time.Time) predicate.OAuthRefreshToken
UsedAtNEQ applies the NEQ predicate on the "used_at" field.
func UsedAtNotIn ¶
func UsedAtNotIn(vs ...time.Time) predicate.OAuthRefreshToken
UsedAtNotIn applies the NotIn predicate on the "used_at" field.
func UsedAtNotNil ¶
func UsedAtNotNil() predicate.OAuthRefreshToken
UsedAtNotNil applies the NotNil predicate on the "used_at" 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 OAuthRefreshToken queries.
func ByAPITokenField ¶
func ByAPITokenField(field string, opts ...sql.OrderTermOption) OrderOption
ByAPITokenField orders the results by api_token field.
func ByAPITokenID ¶
func ByAPITokenID(opts ...sql.OrderTermOption) OrderOption
ByAPITokenID orders the results by the api_token_id field.
func ByClientField ¶
func ByClientField(field string, opts ...sql.OrderTermOption) OrderOption
ByClientField orders the results by client field.
func ByClientID ¶
func ByClientID(opts ...sql.OrderTermOption) OrderOption
ByClientID orders the results by the client_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTokenHash ¶
func ByTokenHash(opts ...sql.OrderTermOption) OrderOption
ByTokenHash orders the results by the token_hash field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsedAt ¶
func ByUsedAt(opts ...sql.OrderTermOption) OrderOption
ByUsedAt orders the results by the used_at field.